
// this is used for ALL of the signup forms, except the Free Ranking Report
function submitForm(theForm) {
	
		var warningText = "Please complete the following information:\n"
		var warningTrack = 0
		selectWhichField = ""
		


		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 (theForm.url.value == "")	{
			warningText += "URL\n"
			warningTrack++
			if (selectWhichField == "") {	selectWhichField = theForm.url	}
		}
		if (theForm.keywords.value == "")	{
			warningText += "Keywords\n"
			warningTrack++
			if (selectWhichField == "") {	selectWhichField = theForm.keywords	}
		}


		if (warningTrack>0)	{
			alert(warningText)
			
			// it will only be "" if How did you hear about us? was not checked
			if (selectWhichField != "") {
				selectWhichField.focus()
			}
				
		}	else	{
			//now, submit the form
			theForm.submit()

		}
		return true	// needed to make it not display an error in Netscape
}


