// FORUM de Zétacoloc


function FRepondre(sSujet,iMID) {
	sSujet = Replace(sSujet," ","-|-");
	WindowForum("../zetacoloc/frepondre.html?sujet=" + sSujet + "&mid=" + iMID,"Repondre",312,312);
}

function FEditer(iMID) {
	WindowForum("../cgi-bin/zc5.cgi?m=editer&mid=" + iMID,"Editer",312,312);
}

function FSupprimer(iMID) {
	WindowForum("../cgi-bin/zc5.cgi?m=supprimer&mid=" + iMID,"Supprimer",312,312);
}

function WindowForum(sUrl,sName,iWidth,iHeight) {
	W_Popup = window.open(sUrl,sName,"toolbar=0,directories=0,menubar=0,resizable=no,scrollbars=0,width="+iWidth+",height="+iHeight+",screenX=0,screenY=0,top="+ (screen.availHeight - iHeight)/2 +",left="+(screen.availWidth - iWidth)/2);

	//W_Setting = window.open(sUrl,sName,"toolbar=0,directories=0,menubar=0,resizable=no,scrollbars=0,width="+ iWidth +",height="+iHeight+",screenX=0,screenY=0,top="+ (screen.availHeight - iHeight)/2 +",left="+(screen.availWidth - iWidth)/2); // center the window

	if (!W_Popup.opener) {
		W_Popup.opener = self;
	}
}
