function Pop_simple(n,w,h,urlspec) {
	PopWin(n,w,h,urlspec,1,',location=no,directories=no,resizable=0,status=no,scrollbars=no')
}

function Pop_mini(n,w,h,urlspec) {
	PopWin(n,w,h,urlspec,0,',location=no,menubar=no,directories=no,resizable=no,status=no,scrollbars=yes')
}

function Pop_status(n,w,h,urlspec) {
	PopWin(n,w,h,urlspec,1,',resizable=1,directories=no,menubar=yes,toolbar=no,location=no,status=yes,scrollbars=yes')
}

function Pop_full(n,w,h,urlspec) {
	PopWin(n,w,h,urlspec,0,',location=no,directories=no,resizable=0,status=yes,scrollbars=yes')
}






function PopUpWindowStart(n,w,h,urlspec) {
	PopWin(n,w,h,urlspec,0,',location=no,directories=no,resizable=0,status=no,scrollbars=no')
}


function PopUpWindowStart2(n,w,h,urlspec) {
	PopWin(n,w,h,urlspec,0,',location=no,menubar=no,directories=no,resizable=no,status=no,scrollbars=yes')
}

function PopUpWindowRes(n,w,h,urlspec) {
	PopWin(n,w,h,urlspec,1,',resizable=1,directories=no,menubar=yes,toolbar=no,location=no,status=yes,scrollbars=yes')
}



//=== Popup sans fermeture automatique, pas centré
 function popp(n,w,h,urlspec)
 {
 cmd="width="+w+",height="+h+",toolbar=no,menubar=no,location=no,scrollbars=no,resize=no";
 window.open(urlspec,n,cmd);
 }


//=== Popup sans fermeture automatique, centré
function popp2(n,w,h,center,urlspec)
{
cmd="width="+w+",height="+h+",toolbar=no,menubar=no,location=no,scrollbars=no,resize=no";
if (center==1)
{
var ah = screen.availHeight - 30;
var aw = screen.availWidth - 10;
var xc = (aw - w) / 2;
var yc = (ah - h) / 2;
cmd += ",left=" + xc + ",screenX=" + xc;
cmd += ",top=" + yc + ",screenY=" + yc;
}
window.open(urlspec,n,cmd);
if (PopUpWindow != null && ! PopUpWindow.closed)
{
PopUpWindow.focus();
}

}





//============ fonctions apparentement pas utilisees - ŕ verifier

function PopUpWindowStart3(n,w,h,urlspec) {
	PopWin(n,w,h,urlspec,0,',location=no,menubar=no,toolbar=yes,directories=no,resizable=no,status=no,scrollbars=no')
}

function PopUpWindowStart_center(n,w,h,urlspec) {
	PopWin(n,w,h,urlspec,0,',resizable=1,directories=no,toolbar=no,location=no,status=no,scrollbars=yes')
}

function PopUpFullWindow(n,w,h,urlspec) {
	PopWin(n,w,h,urlspec,0,',location=no,directories=no,resizable=0,status=yes,scrollbars=yes')
}





//==============================================================================================================================
var PopUpWindow = null;
var win;
function PopWin(n,w,h,urlspec,center,options) {
	if (PopUpWindow != null && ! PopUpWindow.closed) {
		PopUpWindow.close();
	}
	var str='width='+w+',height='+h+options;
	if (center && window.screen) {
		var ah = screen.availHeight - 30;
		var aw = screen.availWidth - 10;
		var xc = (aw - w) / 2;
		var yc = (ah - h) / 2;
		str += ",left=" + xc + ",screenX=" + xc;
		str += ",top=" + yc + ",screenY=" + yc;
	}
	PopUpWindow = window.open('',n,str);
	if (PopUpWindow != null) {
		if (PopUpWindow.opener == null) PopUpWindow.opener = self;
		PopUpWindow.location.href = urlspec;
	}
}
//==============================================================================================================================
