function ajax_login()
{
	document.getElementById('loginsubmit').value = "Checking Login...";
	document.getElementById('loginsubmit').disabled = true;
	
	userName = document.getElementById('loginuserName').value;
	password = document.getElementById('loginpassword').value;
	if(!(userName && password))
	{
		document.getElementById('filler').innerHTML = "Invalid Login";
		document.getElementById('loginsubmit').value = "Submit";
		document.getElementById('loginsubmit').disabled = false;
		document.getElementById('loginuserName').className='redform';
		document.getElementById('loginpassword').className='redform';		
		return false;
	}
	url="/login/Default.asp?func=login&loginuserName="+userName+"&loginpassword="+password;
	xmlhttp.open("GET",url,true);
	xmlhttp.onreadystatechange=function() 
	{
		if (xmlhttp.readyState==4) 
		{

			if(xmlhttp.responseText == "1")
			{
				//document.getElementById('leftContent').removeChild(document.getElementById('loginbox'));
				window.location="/account/";
			}
			else if(xmlhttp.responseText =="-1")
			{
				document.getElementById('filler').innerHTML = "Connection Failure";
				document.getElementById('loginsubmit').value = "Submit";
				document.getElementById('loginsubmit').disabled = false;
			
			}
			else
			{
				document.getElementById('filler').innerHTML = "Invalid Login";
				document.getElementById('loginsubmit').value = "Submit";
				document.getElementById('loginsubmit').disabled = false;
				document.getElementById('loginuserName').className='redform';
				document.getElementById('loginpassword').className='redform';		
			}
		}
	}
	xmlhttp.setRequestHeader('Accept','message/x-jl-formresult');
	xmlhttp.send(null);
	return false;
}