function Validateform1(theForm)
{

if (theForm.password2.value == "")
{
   alert("Please enter a value for the \"Password should be atleast 8 letters\" field.");
   theForm.password2.focus();
   return false;
}
if (theForm.password2.value.length < 8)
{
   alert("Please enter at least 8 characters in the \"Password should be atleast 8 letters\" field.");
   theForm.password2.focus();
   return false;
}
if (theForm.password2.value.length > 20)
{
   alert("Please enter at most 20 characters in the \"Password should be atleast 8 letters\" field.");
   theForm.password2.focus();
   return false;
}
if (theForm.password.value == "")
{
   alert("Should be atleast 8 letters.");
   theForm.password.focus();
   return false;
}
if (theForm.password.value.length < 8)
{
   alert("Should be atleast 8 letters.");
   theForm.password.focus();
   return false;
}
if (theForm.password.value.length > 20)
{
   alert("Should be atleast 8 letters.");
   theForm.password.focus();
   return false;
}
};
