function updateframes(newRightPage, newLeftPage) {

	top.rightFrame.location = newRightPage;

	top.leftFrame.location = newLeftPage;

}

function MM_openBrWindow(theURL,winName,features) { //v2.0

	window.open(theURL,winName,features);

}

function openTPOLogin() {

	//alert('OpenTPOLogin');

	MM_openBrWindow('login.htm','loginWin','width=400,height=300,left=440,top=330')

}

//

// VALIDATION

// copy one of the following lines to add a project

// lines with // at the front are comments and are no longer included

// the first word in quotes is the name of the project to be typed

// the second word in quotes is the link to the "master" page in the project

//

var project_array = new Array();

project_array.push(new Array("wilsoncreek", "prospect_wilsoncreek/prospects.htm"));

project_array.push(new Array("riverroad", "prospect_rr/prospects.htm"));

//project_array.push(new Array("lewistrust", "prospect_hl/prospects.htm"));

// HL is Hidden Lakes Prospect, Lewis Trust is the lease name

//project_array.push(new Array("davis", "prospect_davis/prospects.htm"));

project_array.push(new Array("roberts", "prospect_roberts/prospects.htm"));

//project_array.push(new Array("davis b", "prospect_davis_b/prospects.htm"));

//project_array.push(new Array("davis d", "lease_davis_d/prospects.htm"));

//project_array.push(new Array("fuki", "project_fuki/prospects.htm"));

//

//project_array.push(new Array("lane 3-d", "project_lane3d/prospects.htm"));

project_array.push(new Array("alphabeta", "project_alphabeta/prospects.htm"));

//

//project_array.push(new Array("jellison", "project_jellison/prospects.htm"));

project_array.push(new Array("slicker", "prospect_slicker/prospects.htm"));

project_array.push(new Array("russellb", "prospect_russellb/prospects.htm"));

//

//project_array.push(new Array("zeta", "project_zeta/prospects.htm"));

project_array.push(new Array("deltagz", "project_deltagz/prospects.htm"));

//

project_array.push(new Array("sparks", "project_sparks/prospects.htm"));

project_array.push(new Array("davisroberts", "project_davisroberts/prospects.htm"));

//

//project_array.push(new Array("bosley", "project_bosley/prospects.htm"));

project_array.push(new Array("dunneami", "project_dunneami/prospects.htm"));

project_array.push(new Array("paradise", "project_paradise_north/prospects.htm"));

project_array.push(new Array("zweifel", "project_zweifel/prospects.htm"));

project_array.push(new Array("epsilon", "project_epsilon/prospects.htm"));



function checkfields() {

	var locationFound = false;

	//alert(document.login.ProjectName.value);

	if (document.login.ProjectName.value=="") {

		alert("Enter a project identifier.");

		return false;

	}
	// ES: 8/14
	// Modify this code to open the php?document.login.ProjectName.value.toLowerCase()
	// use a browse.php? file
	// comment the text below out.
	//alert("projectName: " + document.login.ProjectName.value.toLowerCase());
	top.location.href = "browse.php?currentPath=root/" + document.login.ProjectName.value.toLowerCase();
	locationFound = true;
	//updateframes("browse.php?" + document.login.ProjectName.value.toLowerCase(), "left_login.htm");
	//locationFound = true;
	//for (var n=0; n < project_array.length; n++) {

		//alert("project_array["+n+"][0]: "+project_array[n][0]);

		//if (document.login.ProjectName.value.toLowerCase() == project_array[n][0].toLowerCase()) {

			//top.location.href = project_array[n][1];

			//locationFound = true;

			//break;

		//}

	//}

	if (!locationFound) {

		top.rightFrame.location.href="loginfail.htm";

		return false;

	}

}



