function ValidateForm(form)
{



      if(!notEmpty(form.user)) 
   { 
      alert('You have not entered your user name. Please fill in the required field (*).') 
      form.user.focus(); 
      return false; 
   } 
   


   if(!notEmpty(form.password))
   { 
      alert('You have not filled in your password. Please fill in the required field (*).') 
      form.password.focus();
      return false; 
   }

  

}

function notEmpty(elem){
	var str = elem.value;
	if(str.length == 0){
		//alert("You must fill in all required fields (*)");
		return false;
	} else {
		return true;
	}

}
