//Display the form help window.

function help(){
window.open("../html/help.html","_blank","width=1000, height=400")
}

//The function checks to see whether or not the form fields have been filled-in correctly and if not then it displays a message telling the user to fill-in that information.
function ValidateInputs(objForm) {
	//objForm. is used for Firefox validation purposes
        var sName = objForm.full_name.value;
	var sEmail = objForm.email.value;
	var sErr = "";
	var sInstr = "";
	
	//Check the fields
	
//Checks if a name has been entered in to the correct field
        if (sName == "") {
		sErr = "You must enter a full name!\n";
	}
       
//Checks if the email address contains the correct characters
        if (sEmail == "" || sEmail.indexOf("@") == -1) {
       sErr = sErr + "Your email address is not valid!\n";
       }
	
	if (sErr == "")	{
		return true;
	}
	else {
		sInstr = "The following errors were found with your submission."
		sInstr = sInstr + "\nPlease correct them and try again.\n\n"
		sErr = sInstr + sErr

		//inform the user of the problem
		alert(sErr);
		return false;
	}

}
