function autoValidate(className, formName) {
	//Find all input fields for given form
	//If it is empty and has the given class name, prompt the user to fill out all required fields and focus on that input field
	var myArray = formName.getElementsByTagName("*");
	for (var i=0; i<myArray.length; i++) {
		obj = myArray[i];
		if (obj.className.match(className) && obj.value=="") {
			alert("Please fill out all the required fields");
			myArray[i].focus();
			return false;
		}
	}
}

