function openAWindow( pageToLoad, winName, width, height, center){

xposition=0; yposition=0;
if ((parseInt(navigator.appVersion) >= 4 ) &&(center)){
 xposition = (screen.width - width) / 8;
 yposition = (screen.height - height) / 3;
}

args = "width=" + width + ","
+ "height=" + height + ","
+ "location=0,"
+ "menubar=0,"
+ "resizable=0,"
+ "scrollbars=0,"
+ "status=0,"
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "," //NN Only
+ "screeny=" + yposition + "," //NN Only
+ "left=" + xposition + "," //IE Only
+ "top=" + yposition; //IE Only

window.open( pageToLoad, winName, args );

}

function validateComplete(objForm)
{
	//objForm.text1.value = ""
	//window.open ("http://zhoum4/usds/information.htm", "", "toolbar=0,width=400,height=300,resizable=0")			
	for (i=0; i<objForm.length;i++) {
	
		var tmpObj=objForm.elements[i];
		if (tmpObj.name.substring(0,1)=="r") {
			if (emptyField(tmpObj)) {
				var tmpString = tmpObj.name.substring(4)
				//objForm.text1.value = tmpString + " must be entered."
				alert(tmpString + " must be entered.")
				tmpObj.focus();
				tmpObj.select();
				return false;
			}
		}// end of if (tmpObj.name.substring(0,1)=="r")
	} // end of for
	objForm.isFormComplete.value = "true"
	return true;
}

function emptyField(txtObj)
{
	if (txtObj.value.length == 0) return true;
	for (var i=0; i<txtObj.value.length; ++i){
		var ch = txtObj.value.charAt(i);
		if (ch != ' ' && ch != '\t') return false;
	}
}
