function openSearchWindow() {
	var searchWindow = window.open('search.htm','searchWindow','height=580,width=980,resizable=yes,scrollbars=yes');

}

function openSchoolWindow() {
	var schoolWindow = window.open('schools.htm','schoolsWindow','height=580,width=980,resizable=yes,scrollbars=yes');

}

function openMortgageWindow() {
	var mortgageWindow = window.open('http://www.carnegiemtg.com','mortgageWindow','height=580,width=980,resizable=yes,scrollbars=yes');

}

function openNJTransitWindow() {
	var transitWindow = window.open('transit.htm','transitWindow','height=580,width=980,resizable=yes,scrollbars=yes');

}

function openWWWindow() {
	var WWWindow = window.open('westwindsor.htm','westWindsor','height=580,width=980,resizable=yes,scrollbars=yes');
}

function openPlWindow() {
	var PlWindow = window.open('plainsboro.htm','plainsboro','height=580,width=980,resizable=yes,scrollbars=yes');
}

function openPrWindow() {
	var PrWindow = window.open('princeton.htm','princeton','height=580,width=980,resizable=yes,scrollbars=yes');
}

function openMoWindow() {
	var MoWindow = window.open('montgomery.htm','montgomery','height=580,width=980,resizable=yes,scrollbars=yes');
}

function openRoWindow() {
	var RoWindow = window.open('robbinsville.htm','robbinsville','height=580,width=980,resizable=yes,scrollbars=yes');
}

function openEWWindow() {
	var EWWindow = window.open('eastwindsor.htm','eastWindsor','height=580,width=980,resizable=yes,scrollbars=yes');
}

function openSBWindow() {
	var SBWindow = window.open('southbrunswick.htm','southbrunswick','height=580,width=980,resizable=yes,scrollbars=yes');
}

function openCrWindow() {
	var CrWindow = window.open('cranbury.htm','cranbury','height=580,width=980,resizable=yes,scrollbars=yes');
}


function validateForm() {
	if (document.forms[0].Name) {
		if (document.searchForm.Name.value == '') {
			alert("Please enter your name.");
			document.forms[0].Name.focus();
			return false;
		}
	}
	
	if (document.forms[0].UserEmail) {
		if (document.searchForm.UserEmail.value == '') {
			alert("Please enter your email address.");
			document.forms[0].UserEmail.focus();
			return false;
		}
	}
	
	return true;
}