function formCheck() {

	var path = document.forms[1].elements; //This is just to save space in the if statements...

	if (path[0].value=="") {
		window.alert("Please enter your first name");
		return false;
		} //This creates a pop up box if the First Name field is blank...
	
	if (path[1].value=="") {
		window.alert("Please enter your last name");
		return false;
		} //This creates a pop up box if the Last Name field is blank...

	if (path[3].value=="" || path[3].value.indexOf("@") == -1 || path[3].value.indexOf(".") == -1 ) {
		window.alert("Please enter your Valid Email Address");
		return false;
		}  //This creates a pop up box if the Email field is blank...
	
	if (path[4].value=="") {
		window.alert("Please enter your street address");
		return false;
		} //This creates a pop up box if the Street Address field is blank...

	if (path[5].value=="") {
		window.alert("Please enter your city");
		return false;
		} //This creates a pop up box if the City field is blank...
		
	if (path[6].selectedIndex == 0) {
		window.alert("Please enter your State");
		return false;
		} //This creates a pop up box if the State field is blank...
		
	if (path[7].value=="") {
		window.alert("Please enter your zip code");
		return false;
		} //This creates a pop up box if the Zip Code field is blank...
		
	if (isNaN(path[8].value) || path[8].value.length < 7) {
		window.alert("Please enter your Telephone Number with area code and no dashes or spaces");
		return false;
		}  //This creates a pop up box if the Telephone Number field is blank...
		
	if (path[19].value=="") {
		window.alert("Please enter your hourly rate");
		return false;
		}	
		
if (path[21].value=="") {
		window.alert("Please enter a Security Code");
		return false;
		}
//If all of the above are filled in correctly, the function will return true and submit...
		
}

//function vanish() {
	
//	var path = document.getElementById; //This is just to save space below...
	
//	for(i=1;i<=6;i++) {
//	path("b" + i).style.display = "none";
//	}
	
//} //When any of the required fields are clicked on, this function hides the red error text...

//function vanish2() {
	
//	var path = document.getElementById; //This is just to save space below...
	
//	for(i=1;i<=6;i++) {
//	path("a" + i).style.display = "none";
//	}
//} //When any of the required fields are clicked on, this function hides the red error text...
