function checkForm(theForm) {
//alert(theForm.questiontype.text);
	missinginfo = "";
	if ((theForm.name.value == "") || (theForm.name.value == "Name")){
		missinginfo += "\n     -  Name";	
	}
	if ((theForm.email.value == "") || (theForm.email.value == "Email") ||
		(theForm.email.value.indexOf('@') == -1) || 
		(theForm.email.value.indexOf('.') == -1)) {
		missinginfo += "\n     -  Email Address";
	}
	if ((theForm.questiontype.value == "") || (theForm.questiontype.value == "Type of Question")){
		missinginfo += "\n     -  Question Type";
	}
	if ((theForm.question.value == "") || (theForm.question.value == "Question")) {
		missinginfo += "\n     -  Question";
	}	
	if (missinginfo != "") {
		missinginfo ="_____________________________\n" +
		"You failed to correctly fill in your:\n" +
		missinginfo + "\n_____________________________" +
		"\nPlease re-enter and submit again!";
		alert(missinginfo);
		return false;
	}
		else return true;
}
