// Update status bar with text
function StatusBar(text)
{
	window.status = text;
	return true;
}

// Validate username and password
function validate( username, password )
{
	if ( username == "username" && password == "password" )
	{
		return true;
	}
	return false;
}

//Check form for valid entries in LoginID and password fields
function new_check(ID, pwd)
{
	if ( ID.value.length == 0 )
	{
		alert("Login ID is required");
		ID.focus();
		return false;
	}
	if ( pwd.value.length == 0 )
	{
		alert("Password is required");
		pwd.focus();
		return false;
	}

//	frmVisible.submit();
	return true;
}


//Check form for valid entries in LoginID and password fields
function check(ID, pwd)
{
	if ( ID.value.length == 0 )
	{
		alert("Login ID is required");
		ID.focus();
		return false;
	}
	if ( pwd.value.length == 0 )
	{
		alert("Password is required");
		pwd.focus();
		return false;
	}

	if ( validate(ID.value, pwd.value) == true )
	{
//		form.submit();
		x = window.location.href.indexOf("NewLogin.htm");
		window.location.href = window.location.href.substring(0,x) + "MembersOnly.php";
	}
	else
	{
		alert("Invalid Username or Password");
	}
}


