// JavaScript Document
var url = "login.php";
var what = "LoginStatus(req.responseText)";
function log1()
{
	if (document.frm.username.value=="")
	{
		alert("Please enter your Username.");
		document.frm.username.focus();
	}
	else if(document.frm.password.value=="")
	{
		alert("Please enter your Password.");
		document.frm.password.focus();
	}
	else
	{
		ip=document.frm.hid.value;
		username = document.frm.username.value;
		password = document.frm.password.value;
		DoCallback("username="+username+"&password="+password+"&ip="+ip);
	}
}
function LoginStatus(Status)
{
	if(Status == 0)
	{
		alert("Username and Password Missmatch!!");
		document.frm.password.value="";
		document.frm.password.focus();
	}
	else if(Status==1)
	{
		document.frm.action="members_area/members_area.php";
		document.frm.submit();
	}
	
	else if(Status=='A')
	{
		document.frm.action="non_member.php";
		document.frm.submit();
	}
	else if(Status=='B')
	{
		document.frm.action="time_ex.php";
		document.frm.submit();
	}
	else 
	{
		document.frm.action="non_members_login.php?id="+Status;
		document.frm.submit();
	}
	
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}