function check_login(){
  if(document.getElementById("email").value==""){
	  alert("Please fill in the email box.");
		document.getElementById("email").focus();
		return false;
	}
	if(document.getElementById("password").value==""){
	  alert("Please supply a password.");
		document.getElementById("password").focus();
		return false;
	}
	
	document.getElementById("login_frm").style.visibility='hidden';
	document.getElementById("loading").style.visibility='visible';

	return true;
	
}