function checkformindex ( form )
{

  if (form.user.value == "") {
    alert( "Please enter your login." );
    form.user.focus();
    return false ;
  }
  if (form.password.value == "") {
    alert( "Please enter your password." );
    form.password.focus();
    return false ;
  }
  return true ;
}

function checkformsignup ( form )
{

  if (form.user.value == "") {
    alert( "Please enter a user name." );
    form.user.focus();
    return false ;
  }
  if (form.first_name.value == "") {
    alert( "Please enter your first name." );
    form.first_name.focus();
    return false ;
  }
  if (form.last_name.value == "") {
    alert( "Please enter your last name." );
    form.last_name.focus();
    return false ;
  }
  if (form.monthofbirth.value == "") {
    alert( "Please enter your month of birth." );
    form.monthofbirth.focus();
    return false ;
  }
  if (form.dayofbirth.value == "") {
    alert( "Please enter your day of birth." );
    form.dayofbirth.focus();
    return false ;
  }
  if (form.yearofbirth.value == "") {
    alert( "Please enter your year of birth." );
    form.yearofbirth.focus();
    return false ;
  }
  if (form.toscheckbox.value == "") {
    alert( "Please check the box that you agree to the TOS." );
    form.toscheckbox.focus();
    return false ;
  }

  return true ;
}
