function OpenSurvey(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=620,height=525");
}
function LoadWebsite() {
	varQueryString=location.search.substring(1,location.search.length)	
	intPrint = varQueryString.search("Print=ON")
	if (intPrint == -1) {
	rotateBoard_1();
   }
	ReadCookie('fontSize');
}
function Start(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=600,height=600")
if (parseInt(navigator.appVersion) >= 4) { OpenWin.focus(); }
}
function OpenWindow(page, dimensions) {
OpenWin = this.open(page, "CtrlWindow", dimensions)
if (parseInt(navigator.appVersion) >= 4) { OpenWin.focus(); }
}
function myUnobtrusiveBehavior(xDisplay, xNoDisplay) {
if (document.getElementById) { // include all feature tests needed for your DOM script
   setElementStyleById(xDisplay, "display", "block");
   setElementStyleById(xNoDisplay, "display", "none");
   }
}
function myUnobtrusiveBehavior_Hide(xDisplay) {
if (document.getElementById) { // include all feature tests needed for your DOM script
   setElementStyleById(xDisplay, "display", "none");
   }
}
function IndividualformHandler(Individualform){
var URL = document.Individualform.Profile.options[document.Individualform.Profile.selectedIndex].value;
window.location.href = URL;
}
function LoadSelectedValueURL(SelectedObject){
var URL = SelectedObject.options[SelectedObject.selectedIndex].value;
window.location.href = URL;
}
function RegionalformHandler(RegionalForm){
var URL = document.RegionalForm.Region.options[document.RegionalForm.Region.selectedIndex].value;
window.location.href = URL;
}
function OpenRegion()
{
	window.open("region.asp#Map","CensusMap",
	"resizable=yes,scrollbars=yes,toolbar=no,location=no,directories=no," +
	"status=no,menubar=no,width=518,height=600,top=25,left=0")
}

function OpenAbstract(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=640,height=460");
}

function OpenRating(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=300,height=300")
if (parseInt(navigator.appVersion) >= 4) { OpenWin.focus(); }
}

function formCheck(formobj){

// dialog message
	var alertMsg = "Please complete the following:\n";
	
	var l_Msg = alertMsg.length;
	
	for (var i = 0; i < formobj.elements.length; i++){
		var obj = formobj.elements[i];
		if (obj){
			switch(obj.type){
			case "select-one":
				if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
					alertMsg += " - " + obj.errorName + "\n";
				}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + obj.errorName + "\n";
				}
				break;
			case "file":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + obj.errorName + "\n";
				}
				break;
			case "text":
			case "textarea":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " +  obj.errorName + "\n";
				}
				break;
			default:
			}
			if ((obj.type == "undefined") || (obj.type == "radio") || (obj.type == "checkbox")) {
				if (typeof(obj.errorName) != "undefined")
				{
					var obj = (typeof(obj.length) == 'undefined') ? eval("document." + obj.form.name + "." + obj.name) : obj;
					if (typeof(obj.length) != 'undefined')
						{
							var blnchecked = false;
							for (var j = 0; j < obj.length; j++){
								if (obj[j].checked){
									blnchecked = true;
								}
							}
							if (!blnchecked){
								alertMsg += " - " +  obj[0].errorName + "\n";
							}
						}
					else
					{
						if (!obj.checked) 
							{
								alertMsg += " - " +  obj.errorName + "\n";
							}
					}
				}
			}
		}
	}
	if (alertMsg.length == l_Msg){
		return true;
	}else{
		alert(alertMsg);
		return false;
	}
}




