function validateForm(passForm) {
			if(passForm.position.value == "") {
					alert("Please enter the name of this position");
				passForm.position.focus();
					return false;}
					
					if(passForm.area_of_industry.value == "1") {
					alert("Please select the area of industry");
				passForm.area_of_industry.focus();
					return false;}
					
					if(passForm.area_of_industry.value == "Other") {
						if(passForm.other_industry.value == "") {
								alert("Please enter the area of industry");
								passForm.other_industry.focus();
								return false;}
					}
					
					myOption = -1;
						for (i=passForm.job_type.length-1; i > -1; i--) {
						if (passForm.job_type[i].checked) {
						myOption = i;
						}
						}
						if (myOption == -1) {
						alert("Please select the hours for this job");
						return false;
					}
					
					
					if(passForm.city.value == "") {
					alert("Please enter the city");
				passForm.city.focus();
					return false;}
					
					if(passForm.state.value == "1") {
					alert("Please select state");
				passForm.state.focus();
					return false;}
					
					if(passForm.state.value == "Other") {
						if(passForm.other_state.value == "") {
								alert("Please enter the state");
								passForm.other_state.focus();
								return false;}
								
					}

					if(passForm.country.value == "1") {
					alert("Please enter the country");
				passForm.country.focus();
					return false;}
					

					if(passForm.company.value == "") {
					alert("Please enter the company");
				passForm.company.focus();
					return false;}
					

					if(passForm.job_description.value == "") {
					alert("Please enter the job description");
				passForm.job_description.focus();
					return false;}
					
					
					if(passForm.start_date.value == "") {
					alert("Please enter the start date");
				passForm.start_date.focus();
					return false;}
					
					
					if(passForm.end_date.value == "") {
					alert("Please enter the end date");
				passForm.end_date.focus();
					return false;}
					
					
					// look at the mail, fax, and email checkboxes to see if at least one of them is checked
					
					if(passForm.method[0].checked != true &&
					   passForm.method[1].checked != true &&
					   passForm.method[2].checked != true){
						alert("Please select how the application needs to be submitted");
						return false;}
						
					// if an item is checked, make sute that the proper information is also added
					if(passForm.method[0].checked == true){
						if(passForm.address.value == "") {
						alert("Please enter the address");
						passForm.address.focus();
						return false;}
					}
						
						
					if(passForm.method[1].checked == true){
						if(passForm.fax_number.value == "") {
						alert("Please enter the fax number");
						passForm.fax_number.focus();
						return false;}
					}
						
					if(passForm.method[2].checked == true){
						if(passForm.email_address.value == "") {
						alert("Please enter the email address");
						passForm.email_address.focus();
						return false;}
						else {
							if(isEmail(trim(passForm.email_address.value)) == false) {
					alert("You have entered an invalid e-mail address.\n\nPlease enter a valid e-mail address.");
				passForm.email_address.focus();
					return false;}
						}
					}
					
					if(passForm.document_format.value == "") {
					alert("Please enter the document format");
				passForm.document_format.focus();
					return false;}
					
					
				if(passForm.application_deadline.value == "") {
					alert("Please enter the application deadline");
				passForm.application_deadline.focus();
					return false;}
					
													
				
					
}