

function submitForm(theForm) {
	
		
		var warningText = "Please complete the following information:\n"
		var warningTrack = 0
		selectWhichField = ""
		
		//	For each required field, use the code below with the following changes:
		//		change FIELDNAME to whatever the name of this field is (alpha-numeric and underscore only... it must start with a letter)
		//		change DISPLAY MESSAGE to whatever you want the user to see for this
		//		make sure you remove the // at the beginning of the line
		
		//	if (theForm.FIELDNAME.value == "")	{
		//		warningText += "DISPLAY MESSAGE\n"
		//		warningTrack++
		//		if (selectWhichField == "") {	selectWhichField = theForm.FIELDNAME	}
		//	}


		if (theForm.fname.value == "")	{
			warningText += "First Name\n"
			warningTrack++
			if (selectWhichField == "") {	selectWhichField = theForm.fname	}
		}
		if (theForm.lname.value == "")	{
			warningText += "Last Name\n"
			warningTrack++
			if (selectWhichField == "") {	selectWhichField = theForm.lname	}
		}
		if (theForm.email.value == "")	{
			warningText += "Email Address\n"
			warningTrack++
			if (selectWhichField == "") {	selectWhichField = theForm.email	}
		}
		


		if (warningTrack>0)	{
			
			// display the warning
			alert(warningText)
			
			// select the first empty field
			if (selectWhichField != "") {
				selectWhichField.focus()
			}
				
		}	else	{
			
			//now, submit the form
			theForm.submit()
			
		}
		
		return true	// needed to make it not display an error in Netscape
}


