/* <![CDATA[ */
function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){oldonload();func();}}}
/* ]]> */


function validation_comment()    
{         
if ((document.form1.elements["commentBody"].value=='') )        
  {  alert("Veuillez inscrire un commentaire. \n \n ");    

  return false;        
  }
/**/   if ((document.form1.elements["nom_post"].value=='') )        
  {  alert("Veuillez inscrire votre nom. \n \n ");             
  return false;        
  } 
if ((document.form1.elements["courriel_post"].value=='') )        
  {  alert("Veuillez inscrire votre adresse courriel. \n \n ");
  return false;        
  }
 var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
   var address = document.form1.elements["courriel_post"].value;
   if(reg.test(address) == false) {
      alert('Veuillez inscrire une adresse courriel valide');
      return false;
   }
   if ((document.form1.elements["pw"].value=='') )        
  {  alert("Veuillez inscrire votre mot de passe. \n \n ");
  return false;        
  }
return true;
}


<!--
function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

//-->
