function newWindow(PopUp) {
	popUp = window.open (PopUp, 'pop');
	popUp.focus();
}

function indexWindow(PopUp) {
popUp = window.open (PopUp, 'pop', 'width=700, scrollbars=yes,resizable=yes');//height=600,
popUp.focus();
}

function SubmitContact(Contact){
	/*alert("Script Called");
	return false;*/

	var blnResult = true;
	var strAlert = "The following are required fields:\n\n";
	var strError = "";

	if (Contact.contactEmail.value == ""){
		blnResult = false;
		strError += "   Email Address\n";
	}
	if (Contact.contactMessage.value == ""){
		blnResult = false;
		strError += "   Message\n";
	}
	
	if( !blnResult ){
		alert(strAlert + strError);
		return blnResult;
	}
	
	//Proper email format
	re1 = /([\w\.\-]+)(\@)(\w+\.)(\w[\w\.\-]+)/
	re2 = /([\w\.\-]+)(\@)(\w+\-\w+)(\.|\-)(\w\w+|\.\w\w+)+/
	check1 = re1.exec(Contact.contactEmail.value)
	check2 = re2.exec(Contact.contactEmail.value)
	if (check1 == null && check2 == null){
		alert("The email address appears to be incorrect\n "+Contact.contactEmail.value)
		Contact.contactEmail.focus();
		Contact.contactEmail.select();
		return false;
	}
}
