function addToFavorites(anchor){if (window.external){window.external.AddFavorite(anchor.getAttribute('href'), anchor.getAttribute('title'));}}
function verifMail(theForm,theMail){
	theObject=eval("document."+theForm+"."+theMail+"");longueur = theObject.value.length;position = theObject.value.indexOf("@");left_str = theObject.value.substring(0,position);	right_str = theObject.value.substring(position+1,longueur);	left_len = left_str.length;	right_len = right_str.length;right_longueur = right_str.length;	right_position = right_str.lastIndexOf(".");	l_right_str = right_str.substring(0,right_position);	r_right_str = right_str.substring(right_position+1,right_longueur);	l_right_len = l_right_str.length;	r_right_len = r_right_str.length;var Mod1 = /[#|,\/'éèà`~&"{(\[\\ç^)\]=}¨^$£¤%ù*µ!§:;?<> ]/i;var Mod2 = /[#|,\/'éèà`~&"{(\[\\ç^)\]=}¨^$£¤%ù*µ!§:;?<> ]/g;
	if (Mod1.test(theObject.value) == true){theObject.focus();return false;}	
	if (Mod2.test(theObject.value) == true){theObject.focus();return false;}	
	if (theObject.value.indexOf("@")==-1){theObject.focus();return false;}
	if ((left_len==0) || (right_len==0)){theObject.focus();	return false;}
	if (right_str.indexOf(".")==-1){theObject.focus();return false;}
	if ((r_right_len < 2)||(r_right_len > 4)){theObject.focus();return false;}
	if (l_right_len==0){theObject.focus();return false;}
	return true;
}
function verifFormnews(obj){testMail = verifMail(obj.name,'mail_user');if(testMail == false){alert('Votre mail n\'est pas correct');obj.mail_user.focus();return false;}else{return true;}}
function divInfoClose(nomdiv) {thediv = eval("document.getElementById('"+nomdiv+"')");thediv.style.display='none';}
function popupcentree(page,nom,largeur,hauteur,options){var top=(screen.height-hauteur)/2;var left=(screen.width-largeur)/2;var thepopup = window.open(page,nom,"top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);}