var Mynav = navigator.appName;
var ie = (Mynav == 'Microsoft Internet Explorer') ? 1:0;
function closeSup()
{
if(document.getElementById)
{
document.getElementById("pub").style.width = 1;
document.getElementById("pub").style.height = 1;
document.getElementById("pub").innerHTML = '';
}
}
var larg = screen.width;
if(ie)larg=parseInt(larg)-28;
var haut = screen.height;
///////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
var html_haut ='
';
function geodivpage(obj)
{
var xhr = createXHR();
xhr.onreadystatechange = function()
{
if(xhr.readyState != 4)
{
html_mil = '';
document.getElementById("pub").style.width = Math.round(larg)+'px';
document.getElementById("pub").style.height = Math.round(haut)+'px';
document.getElementById("pub").innerHTML = html_haut+html_mil+html_bas;
}
if(xhr.readyState == 4)
{
if(xhr.status == 200) {
html_mil = '';
document.getElementById("pub").style.width = Math.round(larg)+'px';
document.getElementById("pub").style.height = Math.round(haut)+'px';
document.getElementById("pub").innerHTML = html_haut+html_mil+html_bas;
}
}
};
var script = "/geodiv.php"; // local script
xhr.open("POST", script, true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send("obj=" + obj );
}