			function validUsername()
			{
				if (document.mtform.username.value != "") {
					return true;
				} else {
					alert("Please tell us your name");
					return false;
				}
			}

			function validEmail()
			{
				if (document.mtform.email.value!= "") {
					return true;
				} else {
					alert("Please tell us your email address");
					return false;
				}
			}

			function validComment() 
			{
				if (document.mtform.comment.value == "Type here.") {
					alert("Please provide a question, concern or comment");
					return false;
				} else {
					return true;
				}
			}
		
			function validStatus() 
			{
				if (document.mtform.status.selectedIndex==0) {
					alert("Please tell us who you are");
					return false;
				} else if ( (document.mtform.status.selectedIndex==1) &&
					(document.mtform.reshall.selectedIndex==0) ) {
					alert("Please tell us where you live");
					return false;
				} else if ( (document.mtform.status.selectedIndex==1) &&
					(document.mtform.reshall.selectedIndex != 0) &&
					(document.mtform.grad.selectedIndex==0) ) {
					alert("Please tell us when you will graduate");
					return false;
				} else if ( (document.mtform.status.selectedIndex==1) &&
					(document.mtform.reshall.selectedIndex != 0) &&
					(document.mtform.grad.selectedIndex !=0) &&
					(document.mtform.stint[0].checked !=true) &&
				    	(document.mtform.stint[1].checked !=true) &&
				     	(document.mtform.stint[2].checked !=true) &&
				     	(document.mtform.stint[3].checked !=true) ) {
					alert("Please tell us what you're interested in");
					return false; 
				} else if ( (document.mtform.status.selectedIndex==2) &&
					(document.mtform.alint[0].checked !=true) &&
				     	(document.mtform.alint[1].checked !=true)  &&
				     	(document.mtform.alint[2].checked !=true)  &&
				     	(document.mtform.alint[3].checked !=true)  &&
				     	(document.mtform.alint[4].checked !=true) ) {
					alert("Please tell us what you're interested in");
					return false; 
				} else if ( (document.mtform.status.selectedIndex==3) && 
					(document.mtform.school.value ="") ) {
					alert("Please tell us wher eyou attend school");
					return false;
				} else if ( (document.mtform.status.selectedIndex==3) && 
					(document.mtform.school.value !="") &&
					(document.mtform.osint[0].checked !=true) &&
				     	(document.mtform.osint[1].checked !=true) &&
				     	(document.mtform.osint[2].checked !=true) ) {
					alert("Please tell us what you're interested in");
					return false;
				} else if ( (document.mtform.status.selectedIndex==4) &&
					(document.mtform.psint[0].checked !=true) &&
				     	(document.mtform.psint[1].checked !=true) &&
				     	(document.mtform.psint[2].checked !=true) &&
				     	(document.mtform.psint[3].checked !=true) ) {
					alert("Please tell us what you're interested in");
					return false; 
				} else {
					return true;
				}
			}

							
			function validForm()	
			{
				var n = window.document.mtform.username.value;
				if (	validUsername() &&
					validEmail() &&
					validStatus() &&
					validComment() ) {
					  alert("Thank you for contacting our Mock Trial team, " + n + "!");
					  return true;
				} else {
					  return false; 
				}
			}

			function validAnonComment() 
			{
				if (document.mtform2.anoncomm.value == "Type anonymous comment here.") {
					alert("Please provide a question, concern or comment");
					return false;
				} else {
					return true;
				}
			}

