function popHelpFR (winWidth, winHeight, sTitle, sText) {
	reportWin = window.open("","","width="+winWidth+",height="+winHeight+",toolbar=no,menubar=no,scrollbars=yes");
	var sContent = ("<HTML><HEAD><LINK REL=stylesheet type='text/css' HREF='../files/common/css/toolbox/calculator_tools.css' TITLE=devis></HEAD><body BGCOLOR=#FFFFFF leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><div style='margin-left:10px;margin-right:10px;margin-top:10px;'><p><b>"+sTitle+"</b><br><br>" + sText + "</div><br /><div align=center><a href='javascript:window.close()'>Fermer cette fen&#234;tre</a></div><br />");
	reportWin.document.write(sContent);
	reportWin.document.close();
}

function closeWin(newWindow) {
newWindow.close();
}

function popUpFR (winWidth, winHeight, sTitle, sText) {
        margegauche= (screen.width - winWidth) / 2;
        margehaut = (screen.height - winHeight) / 2;
	reportWin = window.open("","","top="+margehaut+",left="+margegauche+",width="+winWidth+",height="+winHeight+",toolbar=no,menubar=no,scrollbars=yes");
	var sContent = ("<HTML><HEAD><LINK REL=stylesheet type='text/css' HREF='../files/common/css/toolbox/calculator_tools.css' TITLE=devis></HEAD><body BGCOLOR=#FFFFFF leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><div style='margin-left:10px;margin-right:10px;margin-top:10px;'><p><b>"+sTitle+"</b><br><br>" + sText + "</div><br /><div align=center><a href='javascript:window.close()'>Fermer cette fen&#234;tre</a></div><br />");
	reportWin.document.write(sContent);
        setTimeout('closeWin(reportWin)', 7000);
}

function popUpEN (winWidth, winHeight, sTitle, sText) {
        margegauche= (screen.width - winWidth) / 2;
        margehaut = (screen.height - winHeight) / 2;
	reportWin = window.open("","","top="+margehaut+",left="+margegauche+",width="+winWidth+",height="+winHeight+",toolbar=no,menubar=no,scrollbars=yes");
	var sContent = ("<HTML><HEAD><LINK REL=stylesheet type='text/css' HREF='../files/common/css/toolbox/calculator_tools.css' TITLE=devis></HEAD><body BGCOLOR=#FFFFFF leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><div style='margin-left:10px;margin-right:10px;margin-top:10px;'><p><b>"+sTitle+"</b><br><br>" + sText + "</div><br /><div align=center><a href='javascript:window.close()'>Close the window</a></div><br />");
	reportWin.document.write(sContent);
        setTimeout('closeWin(reportWin)', 7000);
}

function popHelp (winWidth, winHeight, sTitle, sText) {
	reportWin = window.open("","","width="+winWidth+",height="+winHeight+",toolbar=no,menubar=no,scrollbars=yes");
	var sContent = ("<HTML><HEAD><LINK REL=stylesheet type='text/css' HREF='../files/common/css/toolbox/calculator_tools.css' TITLE=devis></HEAD><body BGCOLOR=#FFFFFF leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><div style='margin-left:10px;margin-right:10px;margin-top:10px;'><p><b>"+sTitle+"</b><br><br>" + sText + "</div><br /><div align=center><a href='javascript:window.close()'>Close the window</a></div><br />");
	reportWin.document.write(sContent);
	reportWin.document.close();
}

function popBig (sTitle, sText) {
	reportWin = window.open("","","width=533,height=543,toolbar=no,menubar=no,scrollbars=yes");
	var sContent = ("<HTML><HEAD><LINK REL=stylesheet type='text/css' HREF='../files/common/css/toolbox/calculator_tools.css' TITLE=devis></HEAD><body BGCOLOR=#FFFFFF leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><div style='margin-left:10px;margin-right:10px;margin-top:10px;'><p><b>"+sTitle+"</b><br>" + sText + "</div><br /><div align=center><a href='javascript:window.close()'>Close the window</a></div><br />");
	reportWin.document.write(sContent);
	reportWin.document.close();
}


function popBigFR (sTitle, sText) {
	reportWin = window.open("","","width=533,height=543,toolbar=no,menubar=no,scrollbars=yes");
	var sContent = ("<HTML><HEAD><LINK REL=stylesheet type='text/css' HREF='../files/common/css/toolbox/calculator_tools.css' TITLE=devis></HEAD><body BGCOLOR=#FFFFFF leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><div style='margin-left:10px;margin-right:10px;margin-top:10px;'><p><b>"+sTitle+"</b><br>" + sText + "</div><br /><div align=center><a href='javascript:window.close()'>Fermer cette fen&#234;tre</a></div><br />");
	reportWin.document.write(sContent);
	reportWin.document.close();
}

function NewWindow(mypage, myname, w, h) {

var winl = (screen.width - w) / 2;

var wint = (screen.height - h) / 2;

winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,toolbar=yes,location=yes,menubar=yes,status=yes,resizable';

win = window.open(mypage, myname, winprops);

if (parseInt(navigator.appVersion,10) >= 4) { win.window.focus(); }

}

function contestWindow(mypage, myname, w, h) {

var winl = (screen.width - w) / 2;

var wint = (screen.height - h) / 2;

winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,toolbar=no,location=no,menubar=no,status=no,resizable';

win = window.open(mypage, myname, winprops);

if (parseInt(navigator.appVersion,10) >= 4) { win.window.focus(); }

}

function contestWindowRules(mypage, myname, w, h) {

var winl = (screen.width - w) / 2;

var wint = (screen.height - h) / 2;

winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,toolbar=no,location=no,menubar=no,status=no,resizable';

win = window.open(mypage, myname, winprops);

if (parseInt(navigator.appVersion,10) >= 4) { win.window.focus(); }

}

