var ie= (document.all) ? 1:0
function openWinX(pageIe, pageNs, w, h, parametre) {
	if(w==null)w=480;
	if(h==null)h=500;
	if(parametre==null)parametre="";
	var param="fullscreen=1,menubar=0,toolbar=0,directories=0,location=0,status=0,scrollbars=1,width=" + w + ",height=" + h + ",resizable="
	param+= (ie) ? "0":"1"
	if (ie && pageIe!=''){
	var winX=window.open(pageIe+parametre, "es", param, true)
	winX.resizeTo(w, h)
	winX.moveTo(Math.round((screen.width-w)/2) , Math.round((screen.height-h)/2))
	winX.focus();
	} else if(pageNs!=''){
	winX = window.open(pageNs+parametre, "es","scrollbars=1,width="+(w)+",height="+(h-19)+"");
	}
}

function centerWindow(new_URL,new_width,new_height,scroll,resize,name) {
var popName;
if (name!=""){popName=name}else{popName="pop"}
if (document.all){
var xMax = screen.width, yMax = screen.height;
}else
if (document.layers){
var xMax = window.outerWidth, yMax = window.outerHeight;
}else{
var xMax = 800, yMax=600;
}
var xOffset = (xMax - new_width)/2, yOffset = (yMax - new_height)/2;
window.open(new_URL,popName,'scrollbars='+scroll+',toolbar=no,titlebar=no,menubar=no,directories=no,dependent=no,resizable='+resize+',width='+new_width+',height='+new_height+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
}