function alertSize() {
	if (!window.innerWidth) {
		alert(document.body.clientWidth);
		alert(document.body.clientHeight);
	}
else {
	alert(window.outerWidth);
	alert(window.outerHeight);
	}
}

function replace(sURL) {
	location.replace(sURL);
}

function changeSizeTo(x, y){
	window.resizeTo(x,y);
}

function maximize()
{
if (window.screen) {
    var aw = screen.availWidth;
    var ah = screen.availHeight;
    window.moveTo(0, 0);
    window.resizeTo(aw, ah);
  }
}


function resizeOuterW(x) {
	
	window.resizeTo(x,hauteur_fenetre());

}

function resizeOuterH(y) {
	
	window.resizeTo(largeur_fenetre(),y);

}


function largeur_fenetre()
{
 if (window.innerWidth) return window.innerWidth;
 else if (document.body && document.body.offsetWidth) return document.body.offsetWidth;
 else return 0;
}

function hauteur_fenetre()
{
 if (window.innerHeight) return window.innerWidth;
 else if (document.body && document.body.offsetHeight) return document.body.offsetHeight;
 else return 0;
}


function popup(surl, x,y,s) {
		window.open(surl, s, config='height=' + y + ', width=' + x + ', toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no');
}
