function check(theForm)
{

if (theForm.status.value == "")
  {
    alert("Sorry,please choose the status.");
    theForm.status.focus();
    return (false);
  }
if (theForm.firstname.value == "")
  {
    alert("Sorry,please enter first name.");
    theForm.firstname.focus();
    return (false);
  }
  
if (theForm.lastname.value == "")
  {
    alert("Sorry,please enter last name.");
    theForm.lastname.focus();
    return (false);
  }

 if (theForm.email.value == "")
  {
    alert("Sorry,please enter email.");
    theForm.email.focus();
    return (false);
  }
 if (theForm.username.value == "")
  {
    alert("Sorry,please select State/Prov.");
    theForm.username.focus();
    return (false);
  } 
 if (theForm.password.value == "")
  {
    alert("Sorry,please enter password.");
    theForm.password.focus();
    return (false);
  }
 if (theForm.confirm_password.value == "")
  {
    alert("Sorry,please enter confirm_password");
    theForm.confirm_password.focus();
    return (false);
  }
  
  if (theForm.password.value != theForm.confirm_password.value)
  {
    alert("Sorry,confirm password failure.");
    theForm.confirm_password.focus();
    return (false);
  }


}

