function displayLargeMap() {
	var map = window.open("map.html","Map","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no,resizable=no, copyhistory=no, width=234, height=288, left=30, top=30");
	map.focus();
}

function displayShoe(shoeId) {
	var shoe = window.open("shoeDetails.php?shoeId="+shoeId,"shoe"+shoeId,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no,resizable=no, copyhistory=no, width=660, height=503, left=30, top=30");
	shoe.focus();
}

function defaultOnLoad() {
	if (typeof(document.fLogin) != 'undefined')
	{
		if (typeof(document.fLogin.txUserName) != 'undefined')
		{
			document.fLogin.txUserName.focus();
		}
	}
}

function loginValidation() {
	if (document.fLogin.txUserName.value == "")
	{
		alert("The username is required.\n\nPlease enter a username.");
		document.fLogin.txUserName.focus();
		return false;
	}

	if (document.fLogin.txPassword.value == "")
	{
		alert("The password is required.\n\nPlease enter a password.");
		document.fLogin.txPassword.focus();
		return false;
	} else {
		var password = String(document.fLogin.txPassword.value);
		if (password.length < 4)
		{
			alert("The password has a minimum length of 4 characters.\n\nPlease verify you entered the correct password.");
			document.fLogin.txPassword.focus();
			document.fLogin.txPassword.select();
			return false;
		}
	}

	return true;
}