// JavaScript Document
function popup(url) 
{

    window.open(url, "site", "toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,menubar=0,width=520,height=600");
}
function popup2(url) 
{
    window.open(url, "site", "toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,menubar=0,width=780,height=600");
}
function popup3(url,w,h) 
{
    window.open(url, "site", "toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,menubar=0,width="+w+",height="+h+" ");
}
function show_abo(id){	
	 $('mensuel').style.display = "block";
	 $('annuel').style.display = "none";
}
function show_payment(id){	
	 $('mensuel').style.display = "none";
	 $('annuel').style.display = "block";
}

function aff_cache(id){

	var resu = false;
	if( $(id).style.display == "block"){
		 $(id).style.display = "none";
		 resu = false;
	}
	else {
		$(id).style.display = "block";
		resu = true;
	}
	
	return resu;
}

	function centrage(id_div,w,h){		


	   margin_h=Math.round((screen.availHeight-h)/2);
	   margin_w=Math.round((screen.availWidth-w)/2);

	$(id_div).style.top = margin_h+"px";
	$(id_div).style.left = margin_w+"px";

//		$('selection_compte').style.margin-top = margin_v;

	}//fin fonction calcul_solde

	function centrage2(id_div,w,h){		


	   margin_h=Math.round((screen.availHeight-h)/2);
	   margin_w=Math.round((screen.availWidth-w)/2);

//	$(id_div).style.top = margin_h+"px";
	$(id_div).style.left = margin_w+"px";

//		$('selection_compte').style.margin-top = margin_v;

	}//fin fonction calcul_solde