 function chkBday(p) {

   a = GetAge(p.value);

   if (a == '')
     {
      alert(p.name+MsgMandatory);
      p.focus();
      return false;
     }
   return true;
 }  

 function chkField(p,l)
 {
   if(p.value.length < l)
     {
      alert(p.name+MsgMandatory);
      p.focus();
      return false;
     }
   return true;
 }  
 
 function chkEMail(p)
 {
     if ((p.value.length <5) || (p.value.indexOf('@') == -1) || (p.value.indexOf('.') == -1)) 
      {
        alert(p.name+MsgWrongEMail);
        p.focus();
        return false;
      }
 }

 function CompPW(p,t)
 {
   if( p.value != t.value )
     {
      alert(MsgPassNoMatch);
      p.focus();
      return false;
     }
   return true;
 }  
