
function validate_form(theForm)
{

if (theForm.logintype.value == 'atmail_os/index.html')	{
    if (navigator.appVersion.indexOf('MSIE 5') > 0) {           
//      document.login.submit();                                  
    } else {                                                    
    alert('The WebOS version requires Internet Explorer 5.0 on a Win95/98/NT/Mac machine. We recommend you use the 4 frame option.');
      return(false);
}
    }

  if (theForm.username.value == "")
  {
    alert("Please enter a value for the \"Username\" field." + theForm.logintype.selectedIndex.value);
    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.pop3host.value == "")
  {
    alert("Please enter a value for the \"pop3host\" field.");
    theForm.pop3host.focus();
    return (false);
  }

  return (true);
}

