<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin

wake = new Image();
wake.src = "images/wake_off.gif";

weather = new Image();
weather.src = "images/weather_on.gif";

time = new Image();
time.src = "images/time_on.gif";

home = new Image();
home.src = "images/home_on.gif";

contact = new Image();
contact.src = "images/contact_on.gif";

// End -->

function popUp(url) {
sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=450');
self.name="mainWin";
}

function isFilled_login(elm) {
  if (elm.value == "" || 
      elm.value == null)
  return false;
  else return true;
}

function validate_login(theForm) {
  if (isFilled_login(theForm.username)==false) {
    theForm.username.focus();
    alert("Please enter a value for the \"Username\" field.");
    return false;
  }
  
  if (isFilled_login(theForm.password)==false) {
    theForm.password.focus();
    alert("Please enter a valid password.");
    return false;
  }
  
  return true;
}