// VERSION 1.0

// TOUS LES SITES
function juridique() {
var top=(screen.height-500)/2-100;
var left=(screen.width-520)/2;
w=window.open("menu.php?page=menu&rubrique=juridique&externe=y","juridique","width=520,height=500,top="+top+",left="+left+",location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=no" )
}
// FFMKR
function bulletin() {
var top=(screen.height-500)/2-100;
var left=(screen.width-500)/2;
w=window.open("rejoindre.php","bulletin","width=500,height=500,top="+top+",left="+left+",location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=no" )
}
// SYNDICATS
function rejoindre(dept) {
var top=(screen.height-500)/2-100;
var left=(screen.width-500)/2;
w=window.open("rejoindre.php?ch_dept="+dept+"&etape=2","bulletin","width=500,height=500,top="+top+",left="+left+",location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=no" )
}
//TOUS LES SITES

function pass(site) {
var top=(screen.height-250)/2;
var left=(screen.width-400)/2;
var url=document.referrer;
url=url.substring(0,16);
	if (url=="http://127.0.0.1"){
	lepath ="http://127.0.0.1/ffmkr/ffmkr/";
	}else{
	lepath ="http://www.ffmkr.org/";
	}

	if (site!="ffmkr"){
		w=window.open(lepath+"password.php?action=password","password","width=400,height=250,top="+top+",left="+left+",location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no" )
	}else{
		w=window.open("password.php?action=password","password","width=400,height=250,top="+top+",left="+left+",location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no" )
	}

}

// KA
function aide() {
var top=(screen.height-500)/2-100;
var left=(screen.width-500)/2;
w=window.open("help.php","aide","width=500,height=500,top="+top+",left="+left+",location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=no" )
}
// KA
function abonnement(data) {
var top=(screen.height-500)/2-100;
var left=(screen.width-500)/2;
w=window.open("abonnement.php?d="+data,"abonnement","width=500,height=500,top="+top+",left="+left+",location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=no" )
}
// KS
function pdf(doc) {
var top=(screen.height-500)/2-100;
var left=(screen.width-500)/2;
w=window.open("_pdf/"+doc+".pdf","abonnement","width=500,height=500,top="+top+",left="+left+",location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=no" )
}