function ChangeLG(larg,haut,currentLang,idSsess){
	var top  = (screen.height-haut)/2;
	var left = (screen.width-larg)/2;
	window.open("switch_lang.php?lg="+currentLang+"&idSess="+idSsess+"&pg=<? echo $pg ?>","ChangeLanguage","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,width="+larg+",height="+haut+",left="+left+",top="+top+"");	
}


function RingTone(page){
	window.open(page,"window","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,width=380,height=270,left=0,top=0");
}

function Mention(){
	var larg = 425;
	var haut = 450;
	var top  = (screen.height-haut)/2;
	var left = (screen.width-larg)/2;
	window.open("popupMention.php","mention","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=0,width="+larg+",height="+haut+",left="+left+",top="+top+"");
}


function PhoneChat(){
	var larg = 424;
	var haut = 482;
	var top  = (screen.height-haut)/2;
	var left = (screen.width-larg)/2;

    window.open("popup_Phone.php","PhoneChatSms","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,width="+larg+",height="+haut+",left="+left+",top="+top+"");
}


function SMS(){
	var larg = 424;
	var haut = 482;
	var top  = (screen.height-haut)/2;
	var left = (screen.width-larg)/2;
	window.open("popup_SMS.php","PhoneChatSms","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,width="+larg+",height="+haut+",left="+left+",top="+top+"");
}


function ClearField(){
	if(document.FormPhone.Tel_or_Pseudo.value == 'Saisissez le Pseudo ou le N° de tél...'){
	   document.FormPhone.Tel_or_Pseudo.value = "";
	}
}

function Disco(){
	PhoneChatSms.window.close();
	alert('Déconnexion ...');
}


function CV(){
 var larg = 655;
 var haut = 755;
 var top  = (screen.height-haut)/2;
 var left = (screen.width-larg)/2;
 window.open("cv.php","cv","toolbar=no,location=no,directories=no,status=no,menubar=no,personalbar=no,resizable=yes,scrollbars=yes,width="+larg+",height="+haut+",left="+left+",top="+top+"");
 //document.formulaire.submit();
}



function setObservers ()
{
 $('deleteBut').observe('click', Modalbox.hide.bindAsEventListener(Modalbox));
 $('cancelBut').observe('click', Modalbox.hide.bindAsEventListener(Modalbox));
}


function removeObservers ()
{
 $('deleteBut').stopObserving('click', Modalbox.hide.bindAsEventListener(Modalbox));
 $('cancelBut').stopObserving('click', Modalbox.hide.bindAsEventListener(Modalbox));
}



