<!--
function kelmail(){
if((!document.newsf.news2.value || document.newsf.news2.value=="mon nom")&&(!document.newsf.news3.value || document.newsf.news3.value=="mon prénom"))  {nom=0;nomt=unescape("\nVous n'avez pas indiqu%E9 votre nom ou prénom.");}else{nom=1;nomt="";}
if(!document.newsf.news4.value || document.newsf.news4.value=="mon e-mail"){pre=0;pret=unescape("\nVous n'avez pas indiqu%E9 votre  e-mail.");}else{pre=1;pret="";}
if(nom==0 || pre==0){ alert(nomt+pret);return false;}}

function isEmail(string) {
   if (!string) return false;
   var iChars = "*|,\"<:>[]{}`\';()&$#%";
   for (var i = 0; i < string.length; i++) {
      if (iChars.indexOf(string.charAt(i)) != -1)
         return false;
   }
   return true;
}                      
function isProper(string) {
   if (!string) return false;
   var iChars = "*|,\"<:>[]{}`\';()@&$#%";
   for (var i = 0; i < string.length; i++) {
      if (iChars.indexOf(string.charAt(i)) != -1)
         return false;
   }
   return true;
}                      
function isReady(form) {
    if (isEmail(document.newsf[form].value) == false) {
        alert("E-mail incorrecte.");
        newsf[form].focus();
        return false;
    }

    return true;
}

function isEmail(string) {
    if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
        return true;
    else
        return false;
}

function isProper(string) {
    if (string.search(/^\w+( \w+)?$/) != -1)
        return true;
    else
        return false;
}
// -->