function FrontPage_Form1_Validator(theForm)
{

  if (theForm.username.value == "")
  {
    alert("Please enter a value for the \"username\" field.");
    theForm.username.focus();
    return (false);
  }

  if (theForm.username.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"username\" field.");
    theForm.username.focus();
    return (false);
  }

  if (theForm.Password.value == "")
  {
    alert("Please enter a value for the \"Password\" field.");
    theForm.Password.focus();
    return (false);
  }

  if (theForm.Password.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Password\" field.");
    theForm.Password.focus();
    return (false);
  }
  return (true);
}
