
/* myPassword.jsp */
function ITCvalidate(form)
{
   if(isEmpty(form.OldPwd))
   {
      alert('You must enter your old password') ;
      form.OldPwd.focus();
      return false;
   }

   if(isEmpty(form.NewPwd))
   {
      alert('You must enter a new password') ;
      form.LastName.focus(); 
      return false;
   }

   if(isEmpty(form.NewPwd2))
   { 
      alert('You must confirm your new password') ;
      form.NewPwd2.focus(); 
      return false; 
   }

   if (form.NewPwd.value.equals( form.NewPwd2.value) == false)
   {
      alert('The new password must match the confirmation password') ;
      form.NewPwd.focus();
      return false;
   }

   return true;
}
