<!--
var newwindow = ' '
var newwindow2 = ' '
var winl2 = (screen.width - 600) / 2;
var wint2 = 0;

function popupWin(url, Wwidth, Hheight, top, scrollbar) {
var winl = (screen.width - Wwidth) / 2;
var wint = 0
if (top == 0) {
	wint = 0;
}
else {
	wint = 	(screen.height - Hheight) / 2;
}

if (newwindow.location && !newwindow.closed) {
    newwindow.location.href = url; 
    newwindow.focus(); } 
else { 
	
    newwindow=window.open(url,'htmlname','width=' + Wwidth + ',height=' + Hheight+',resizable=0,scrollbars ='+ scrollbar+',left=' +  winl + ',top=' + wint);} 
}
function closedPopup() {
if (newwindow.location && !newwindow.closed) { 
   newwindow.close(); } 
}

function popupWin2(url) {
if (newwindow2.location && !newwindow2.closed) {
    newwindow2.location.href = url; 
    newwindow2.focus(); } 
else { 
	
    newwindow2=window.open(url,'htmlname','width=600,height=700,resizable=0,left=' +  winl2 + ',top=' + wint2);} 
}

function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Adresse du courriel est invalide")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Adresse du courriel est invalide")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Adresse du courriel est invalide")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Adresse du courriel est invalide")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Adresse du courriel est invalide")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Adresse du courriel est invalide")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Adresse du courriel est invalide")
		    return false
		 }

 		 return true					
	}

function ValidateForm(){
	var emailID=document.formSaisie.email
	
	if ((emailID.value == null)||(emailID.value == "")){
		alert("Veuillez entrer votre adresse email!")
		emailID.focus()
		return false
	}
	if (echeck(emailID.value) == false){
		//emailID.value=""
		emailID.focus()
		return false
	}
	return true
 }
 
 
//-->


