function ouvrir(ref,w,h,z) {
statut = "'width="+w+",height="+h+",scrollbars=no,resizable=no'";
window.open(ref,z,eval(statut));
}

function open_w(file, name, param)
	{
	window.open(file,name,param);
	}

function openclose1()
	{
	if (document.layers)
		{
		window.close();
		}
	}

function openclose2()
	{
	if (!document.layers)
		{
		window.close();
		}
	}
function open_cuisine(url, name, width, height, param) {
  
    var ah = screen.availHeight;
    var aw = screen.availWidth;

	var str = param + ",height=" + height + ",innerHeight=" + height;
  	str += ",width=" + width + ",innerWidth=" + width;
	
    var xc = (aw - width) / 2;
    var yc = (ah - height) / 2;

    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;

	window.open(url, name, str);
}
function open_w(url, name, width, height, param) {
  
    var ah = screen.availHeight;
    var aw = screen.availWidth;

	var str = param + ",height=" + height + ",innerHeight=" + height;
  	str += ",width=" + width + ",innerWidth=" + width;
	
    var xc = (aw - width) / 2;
    var yc = (ah - height) / 2;

    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;

	window.open(url, name, str);
}

function bouge() {
	//alert(document.body.offsetHeight);
	
//if(document.body.offsetHeight < 795){
//	document.getElementById('pdp').style.top = '795px';
//}else{
	//alert(document.getElementById('pdp').style.top);
	//document.getElementById('pdp').style.top = '10000px';
//	document.getElementById('pdp').style.top = document.body.offsetHeight+'px';
//}

if(document.getElementById('eker').offsetTop < 795){
	document.getElementById('pdp').style.top = '795px';
}else{
	//alert(document.getElementById('pdp').style.top);
	//document.getElementById('pdp').style.top = '10000px';
	document.getElementById('pdp').style.top = document.getElementById('eker').offsetTop+'px';
}

}
