function LoginSubmit() {
	if (document.getElementById("username").value=="")  {
		alert("You gotta enter a username first mate!");
		document.getElementById("username").focus();
		return false
	}
	
	if (document.getElementById("password").value=="") {
		alert("You forgot to enter your password");
		document.getElementById("password").focus();
		return false
	}	
}

function GetXmlHttpObject() {
	var xmlHttp=null;
	try
	{
		  // Firefox, Opera 8.0+, Safari
		  xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		  // Internet Explorer
		  try
		  {
		    	xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		  }
		  catch (e)
		  {
		    	xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		  }
	}
	return xmlHttp;
}