function Popup(largeur,hauteur) {

var top=(screen.height-hauteur)/2;
var left=(screen.width-largeur)/2;

var win = window.open('','popup','top='+top+',left='+left+',resizable=yes, location=no, menubar=no, status=no, scrollbars=no, menubar=no, width='+largeur+',height='+hauteur);
win.location.reload(true);
win.focus();
}

function ouvrir() {
	var index=document.forms[0].elements[0].options.selectedIndex;
	if (index>0) {
		var page=document.forms[0].elements[0].options[index].value;
		location.href=page;
	}
}

function matchRegularExpression(valeur){// Accepte une adresse email. Ex : toto@toto.com
	var regExpEmailAdress=/^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$/g;
	var resultat = valeur.match(regExpEmailAdress);
	if(resultat!=null && resultat.length==1) return true;
	else return false;
}

function isNotEmailAdress(valeur){
	if(matchRegularExpression(valeur)) return false;
	else return true;
}

function Control_form() {
	
	if (document.forms[0].elements['nom'].value.length<2) {
	alert("Saisissez votre nom");
	return false; }
		
	if(isNotEmailAdress(document.forms[0].elements['email'].value)){
	alert("E-Mail invalide");
	return false;
	}
	if (document.forms[0].elements['message'].value.length<2) {
	alert("Saisissez votre message");
	return false; }
		
return true;
}



function droite(e)
	{
	if ((!document.all && e.which == 3) || (document.all && event.button==2))
		{
		// CLIC DROIT DETECTE, ON AFFICHE UN PETIT MESSAGE
		alert('Clic droit désactivé');
		}
	return true;
}
document.onmousedown = droite;
