<!--
function LinkSSMenu(){
	var newStyle = "txtssMenuVisite" ;
	var urlrep = document.location.href ;
	urlrep = urlrep.toLowerCase();
	for( var i=0 ;  i < document.links.length ; i++)
	{
		var idRubCurrent = document.links[i].id.toLowerCase() ;
		if( idRubCurrent != "" && urlrep.indexOf(idRubCurrent) != -1 ){
			document.links[i].className = newStyle ;	
		}

	}

}


function Valid_Email(adresse, msg){
 var checkStr = adresse.toLowerCase();
 var checkNOK = ",;<>*|'`&$!&\":#[{}[]()'=éèàïîù";
 var checkNSP = '';
 var allValid = true;
 var err_msg = 'Adresse E-mail incorrecte.' ;
 var i = 0 ;
 var j = 0 ;
 if (msg != null) {err_msg = msg ;}
 
  for (i = 0;  i < checkStr.length;  i++)
   {
   ch = checkStr.charAt(i);
   if (ch != ' ') { checkNSP += ch; }
   }
 adresse = checkNSP ;
 checkStr = checkNSP ;
 
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkNOK.length;  j++)
      if (ch == checkNOK.charAt(j)) { 
		 allValid = false ; break ; }
    if (allValid == false) {break; } else {j = 0;}
  }
  
  if ( allValid == false || i < 4 
       || checkStr.indexOf('.',0) == -1 
       || checkStr.indexOf('@',0) == -1 
       || checkStr.indexOf('www.',0) != -1 )
   { 
   // alert(err_msg + ((j >23) ? '\n(caractères accentués non admis)' : ' '));
    adresse = '';
   }

   return(adresse)

}

function chiffre(valeur,type)
  {
		var checkOK = "0123456789";
		if (type=="Tel"){checkOK = "(+) 0123456789";}
		if (type=="Date"){checkOK = "/. 0123456789";}
		var checkStr = valeur;
  		var allValid = true;
   
  		for (i = 0;  i < checkStr.length;  i++)
  		{
  		  ch = checkStr.charAt(i);
  		  for (j = 0;  j < checkOK.length;  j++)
   		   if (ch == checkOK.charAt(j))
        break;
  		  if (j == checkOK.length)
   		 {
    		  allValid = false;
    		  return(false);
			  break;
    	 }
        }
		if (allValid){return(true);}
}

//-->
