// JavaScript Document
 function openpopup(){
	window.open('', 'popup', 'width=666,height=558,scrollbars=0,left=' + ((screen.width - 666)/2) + ',top=' + ((screen.height - 558)/2) );	
	}
	

function openpopup1(){
	window.open('', 'popup1', 'width=375,height=558,scrollbars=0,left=' + ((screen.width - 375)/2) + ',top=' + ((screen.height - 558)/2) );	
	}
	

function openpopup2(){
	window.open('', 'popup2', 'width=775,height=433,scrollbars=0,left=' + ((screen.width - 775)/2) + ',top=' + ((screen.height - 433)/2) );	
	}
	

function openpopup3(){
	window.open('', 'popup3', 'width=900,height=241,scrollbars=0,left=' + ((screen.width - 900)/2) + ',top=' + ((screen.height - 241)/2) );	
	}
	

function openpopup4(){
	window.open('', 'popup4', 'width=666,height=579,scrollbars=0,left=' + ((screen.width - 666)/2) + ',top=' + ((screen.height - 579)/2) );	
	}
function openpopup5(){
	window.open('', 'popup5', 'width=700,height=681,scrollbars=0,left=' + ((screen.width - 700)/2) + ',top=' + ((screen.height - 681)/2) );	
	}
		

function verification()
{
	email=true;
	tel=true;
	
if (document.forms["testform"].email.value.indexOf("@") == "-1" || document.forms["testform"].email.value.indexOf(".") == "-1" || document.forms["testform"].email.value == "" )
	{email=false;}	
	
if (document.forms["testform"].tel.value=="")
	{tel=false;}
	
if ((email==true) || (tel==true )){
	document.testform.submit();
	}else{
	alert ("Veuillez saisir un email valide ou votre téléphone !");
	}
}
