// JavaScript Document

function check_grad_survey(theForm) {

	if (theForm.address.value == "") {
    alert("Please Enter Address");
    theForm.address.focus();
    return (false);
  }
  
  	if (theForm.city.value == "") {
    alert("Please Enter Your City");
    theForm.city.focus();
    return (false);
  }
  	
	if (theForm.state.value == "") {
    alert("Please Enter Your State");
    theForm.state.focus();
    return (false);
  }
  
  	if (theForm.zip.value.length < 5 || theForm.zip.value == "") {
    alert("Please Enter A Valid Zip Code - Ex. 47712");
    theForm.zip.focus();
    return (false);
  }

  if (theForm.county.value == "") {
    alert("Please Choose Your County of Residence");
    theForm.county.focus();
    return (false);
  }
  
  if (theForm.phone.value == "" || theForm.phone.value.length < 10) {
    alert("Please Enter Your Home Phone Number - Ex. (111) 222-3333");
    theForm.phone.focus();
    return (false);
  }
  
  if (theForm.email.value.indexOf(".") == -1 || theForm.email.value.indexOf("@") == -1) {
	alert("Please Enter A Valid Email Address - person@domain.com");
	theForm.email.focus();
	return false;
  }
  
  var radioSelected = false;
  for (i = 0;  i < theForm.services.length;  i++) {
    if (theForm.services[i].checked)
        radioSelected = true;
  }
  if (!radioSelected) {
    alert("Please Answer The Question - Services Used");
    return (false);
  }
  
  if (theForm.employ_search.value == "") {
    alert("Please Answer If You Are Currently Seeking Permanent Employment");
    theForm.employ_search.focus();
    return (false);
  }
  
  if (theForm.registered.value == "") {
    alert("Please Answer If You Are Registered Through MonsterTRAK");
    theForm.registered.focus();
    return (false);
  }
  
  if (theForm.student_exp.value == "") {
    alert("Please Answer If You Participated in Internships, Co-ops, Etc.");
    theForm.student_exp.focus();
    return (false);
  }
  

  if (!theForm.certify.checked) {
    alert("You Must Check The Box Above To Certify Accurate Information");
    return (false);
  }
 
  
  return (true);
}

function check_internshipawardform(theForm) {

	if (theForm.employer.value == "") {
    alert("Please Enter an Employer");
    theForm.employer.focus();
    return (false);
  }
  
  	if (theForm.supervisor.value == "") {
    alert("Please Enter Your Supervisor's Name");
    theForm.supervisor.focus();
    return (false);
  }
  	
	if (theForm.supervisor_title.value == "") {
    alert("Please Enter Your Supervisor's Title");
    theForm.supervisor_title.focus();
    return (false);
  }
  
	if (theForm.employer_address.value == "") {
    alert("Please Enter the Employer's Address");
    theForm.employer_address.focus();
    return (false);
  }
  
	if (theForm.city.value == "") {
    alert("Please Enter the Employer's City");
    theForm.city.focus();
    return (false);
  }
  	
	if (theForm.state.value == "Select" || theForm.state.value == "") {
    alert("Please Enter the Employer's State");
    theForm.state.focus();
    return (false);
  }
    
	if (theForm.zip.value.length < 5 || theForm.zip.value == "") {
    alert("Please Enter A Valid Zip Code - Ex. 47712");
    theForm.zip.focus();
    return (false);
  }

  if (theForm.employer_phone.value == "" || theForm.employer_phone.value.length < 10) {
    alert("Please Enter the Employer's Phone Number - Ex. (812) 222-3333");
    theForm.employer_phone.focus();
    return (false);
  }
  
  if (theForm.semester.value == "" || theForm.semester.value == "null") {
    alert("Please Enter When the Internship Took Place");
    theForm.semester.focus();
    return (false);
  }
  
  if (theForm.student.value == "") {
    alert("Please Enter Your Name");
    theForm.student.focus();
    return (false);
  }
  
  if (theForm.student_phone.value == "" || theForm.student_phone.value.length < 10) {
    alert("Please Enter Your Phone Number - Ex. (812) 222-3333");
    theForm.student_phone.focus();
    return (false);
  }
  
  if (theForm.student_email.value.indexOf(".") == -1 || theForm.student_email.value.indexOf("@") == -1) {
	alert("Please Enter Your Valid Email Address - person@domain.com");
	theForm.student_email.focus();
	return false;
  }
  
  if (theForm.major.value == "") {
    alert("Please Enter Your Major");
    theForm.major.focus();
    return (false);
  }
  
  if (theForm.description.value == "") {
    alert("Please Explain Why You are Nominating This Employer");
    theForm.description.focus();
    return (false);
  }
  
  return (true);
}