function openCenteredWindow(url,theWidth,theHeight) {
		var theTop		= (screen.height/2)-(theHeight/2);
		var theLeft		= (screen.width/2)-(theWidth/2);
		var features 		= 'height='+theHeight+',width='+theWidth+',top='+theTop+',left='+theLeft+",scrollbars=yes";
		theWin			= window.open(url,'',features);
}
	
function openCenteredWindowNSB(url,theWidth,theHeight) {
		var theTop		= (screen.height/2)-(theHeight/2);
		var theLeft		= (screen.width/2)-(theWidth/2);
		var features 		= 'height='+theHeight+',width='+theWidth+',top='+theTop+',left='+theLeft+",scrollbars=no";
		theWin			= window.open(url,'',features);
}
	

function openLinkWindow(url,theWidth,theHeight) {
		var theTop		= (screen.height/2)-(theHeight/2);
		var theLeft		= (screen.width/2)-(theWidth/2);
		var features 		= 'height='+theHeight+',width='+theWidth+',top='+theTop+',left='+theLeft+",scrollbars=yes";
		theWin			= window.open(url,'',features);
}
	
 function validateForm()
{
	var f = document.inquiry;
	var isOK = true;
	var errMsg = "The following fields are required:\n\n"
	
	if ((f.PersonName.value == null) || (f.PersonName.value == "")) {
		errMsg += "   First Name\n";
		isOK = false;
	}
	
		if ((f.EmailAddress.value == null) || (f.EmailAddress.value == "")) {
		errMsg += "   Last Name\n";
		isOK = false;
	}
	
		if ((f.Subject.value == null) || (f.Subject.value == "")) {
		errMsg += "   Telephone\n";
		isOK = false;
	}
	
		if ((f.TextArea.value == null) || (f.TextArea.value == "")) {
		errMsg += "   Email Address\n";
		isOK = false;
	}
	// If required fields are ok then submit the form, otherwise alert the user...
	if (isOK) {
		f.submit();
	} else {
		alert(errMsg);
	}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
