
/*
function:  		chkForm() 
purpose:  		Check that required fields are completed 
author:  		Glynn Robbins 
date:   		July 29, 2007 
parameters:  	None 
*/ 
 function chkForm(){  
	var intFields = 4    // holds the number of fields we want to check    
	for (i = 0; i < intFields; i++){   
		if (document.forms[0].elements[i].value == ""){    
			alert("Please enter your " + document.forms[0].elements[i].id + ".");
			document.forms[0].elements[i].focus();    
			return false;
		}
	}

	if (document.forms[0].txtPassword.value != document.forms[0].txtConfPassword.value) {
		alert("The passwords do not match.");
		document.forms[0].txtPassword.focus();
		document.forms[0].txtPassword.value="";
		document.forms[0].txtConfPassword.value="";
		return false;
   	} 
  return true; 
 }  

/* stuff I didn't write */
/* drop down menu stuff from  http://alistapart.com/articles/dropdowns/ */

startList = function() {
	if (document.all&&document.getElementById) {
		var navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			var node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				  }
				  node.onmouseout=function() {
 					 this.className=this.className.replace(" over", "");
 				  }
 			  }
 		 }
	 }
}
window.onload=startList;

/*** end of stuff I didn't write ***/