 function verif(toto,tata) {

if (isNaN(tata)==true)
{alert("Veuillez entrer une valeur numérique.");
toto.value="";
return false;}
else
{return true; }} 

function numcheck(t1,t2,min,max) {
if(t2>max || t2<min)

{alert("Veuiller entrer une valeur numérique comprise entre "+ min + " et " + max +" !");

t1.onfocus==true;
t1.value="";
   return false
		 }

return true
}
function combo(xx) {
if (document.go.elements[xx].checked) {
var xx2=xx + "_other";

  document.go.elements[xx2].style.visibility="visible";
  
}
else {
var xx2=xx + "_other";
 document.go.elements[xx2].style.visibility="hidden";
  
}
}
function echeck(str,stx) {

		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 email non valide !");
		   stx.onfocus==true;	
		   stx.value="";
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Adresse email non valide !");
		   stx.onfocus==true;	
		   stx.value="";
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Adresse email non valide !");
		   stx.onfocus==true;	
		   stx.value="";
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Adresse email non valide !");
		   stx.onfocus==true;	
		   stx.value="";
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Adresse email non valide !");
		   stx.onfocus==true;	
		   stx.value="";
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Adresse email non valide !");
		   stx.onfocus==true;	
		   stx.value="";
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Adresse email non valide !");
		   stx.onfocus==true;	
		   stx.value="";
		    return false
		 }

 		 return true					
	}
function handleEnter (event) {
		var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
		if (keyCode == 13) {
		
			return false;
		} 
		else
		return true;
	} 
 function main(toto)
   {window.open(toto,"","fullscreen=no,toolbar=no,location=no,width=400,height=500,top=100,left=100,scrollbars=yes");
    }  
 function mainx(toto)
   {window.open(toto,"","fullscreen=no,toolbar=no,location=no,width=300,height=200,top=100,left=100,scrollbars=no");
    }  
function mainx2(toto)
   {window.open(toto,"","fullscreen=no,toolbar=no,location=no,width=500,height=400,top=100,left=100,scrollbars=no");
    } 