/* Information Request Javascript definitions for www.buildingstar.com */

// Employment Inquiry Validation Script (Aviation & Transportation Support Services)
<!-- 
function checkForm() {
        var msgStr = "";
		//First Name
        if (document.employmentinquiry.firstname.value == ""){
                msgStr += "- Please enter First Name.\n";
		}
        //Last Name
        if (document.employmentinquiry.lastname.value == ""){
                msgStr += "- Please enter Last Name.\n";
		}
        //Address1
        if (document.employmentinquiry.address1.value == ""){
                msgStr += "- Please enter Street Address.\n";
		}
		//City
        if (document.employmentinquiry.city.value == ""){
                msgStr += "- Please enter City.\n";
		}
        //State
		if (document.employmentinquiry.state.options[document.forms[0].state.selectedIndex].value == ""){
			msgStr += "- Please select State.\n";
		}
        //Zip
        if (document.employmentinquiry.zip.value == ""){
                msgStr += "- Please enter Zip Code.\n";
		}
        //Home Phone
        if (document.employmentinquiry.homephone.value == ""){
                msgStr += "- Please enter Home Phone.\n";
		}
        //Email
        if (document.employmentinquiry.email.value == ""){
                msgStr += "- Please enter Email.\n";
		}
        //Office Location
        if (document.employmentinquiry.office_location.value == ""){
                msgStr += "- Please enter an Office Location.\n";
		}
        //Position
        if (document.employmentinquiry.position.value == ""){
                msgStr += "- Please enter a Postition.\n";
		}
        //Month Available To Start
        if (document.employmentinquiry.month_available_to_start.value == ""){
                msgStr += "- Please enter Month Available to Start.\n";
		}
        //Day Available To Start
        if (document.employmentinquiry.day_available_to_start.value == ""){
                msgStr += "- Please enter Day Available to Start.\n";
		}
        //Year Available To Start
        if (document.employmentinquiry.year_available_to_start.value == ""){
                msgStr += "- Please enter Year Available to Start.\n";
			}
        //Schedule Check Boxes
		if (document.employmentinquiry.all_shifts_mon.checked == false &&
			document.employmentinquiry.all_shifts_tue.checked == false &&
			document.employmentinquiry.all_shifts_wed.checked == false &&
			document.employmentinquiry.all_shifts_thu.checked == false &&
			document.employmentinquiry.all_shifts_fri.checked == false &&
			document.employmentinquiry.all_shifts_sat.checked == false &&
			document.employmentinquiry.all_shifts_sun.checked == false &&
			document.employmentinquiry.days_mon.checked == false &&
			document.employmentinquiry.days_tue.checked == false &&
			document.employmentinquiry.days_wed.checked == false &&
			document.employmentinquiry.days_thu.checked == false &&
			document.employmentinquiry.days_fri.checked == false &&
			document.employmentinquiry.days_sat.checked == false &&
			document.employmentinquiry.days_sun.checked == false &&
			document.employmentinquiry.evenings_mon.checked == false &&
			document.employmentinquiry.evenings_tue.checked == false &&
			document.employmentinquiry.evenings_wed.checked == false &&
			document.employmentinquiry.evenings_thu.checked == false &&
			document.employmentinquiry.evenings_fri.checked == false &&
			document.employmentinquiry.evenings_sat.checked == false &&
			document.employmentinquiry.evenings_sun.checked == false &&
			document.employmentinquiry.overnights_mon.checked == false &&
			document.employmentinquiry.overnights_tue.checked == false &&
			document.employmentinquiry.overnights_wed.checked == false &&
			document.employmentinquiry.overnights_thu.checked == false &&
			document.employmentinquiry.overnights_fri.checked == false &&
			document.employmentinquiry.overnights_sat.checked == false &&
			document.employmentinquiry.overnights_sun.checked == false){
			msgStr += "- Please select a shift(s).\n";
			}
			
		//Have you ever been employed by BuildingStar?
		if (document.employmentinquiry.ever_been_employed_by_bstar[0].checked == false && document.employmentinquiry.ever_been_employed_by_bstar[1].checked == false) {
			msgStr += "- Please answer question #1.\n";
		}
		
		//How did you hear about BuildingStar?
		if (document.employmentinquiry.how_you_heard_about_bstar[0].checked == false && document.employmentinquiry.how_you_heard_about_bstar[1].checked == false && document.employmentinquiry.how_you_heard_about_bstar[2].checked == false) {
			msgStr += "- Please answer question #2.\n";
		}
		
		//Have you ever been convicted of a criminal offense?
		if (document.employmentinquiry.convicted_of_criminal_offense[0].checked == false && document.employmentinquiry.convicted_of_criminal_offense[1].checked == false) {
			msgStr += "- Please answer question #3.\n";
		}
		
		//Are you a U.S. citizen or legal resident alien?
		if (document.employmentinquiry.citizen_or_legal_alien[0].checked == false && document.employmentinquiry.citizen_or_legal_alien[1].checked == false) {
			msgStr += "- Please answer question #4.\n";
		}
		
		//Do you possess a valid Driver's License or Non-Driver I.D.?
		if (document.employmentinquiry.license_or_nondriver_id[0].checked == false && document.employmentinquiry.license_or_nondriver_id[1].checked == false) {
			msgStr += "- Please answer question #5.\n";
		}
		
		//Do you possess a valid NYS Security Guard Registration Card?
		if (document.employmentinquiry.nys_security_guard_reg_card[0].checked == false && document.employmentinquiry.nys_security_guard_reg_card[1].checked == false) {
			msgStr += "- Please answer question #6.\n";
		}
		
		//Do you have prior law enforcement experience?
		if (document.employmentinquiry.law_enforce_experience[0].checked == false && document.employmentinquiry.law_enforce_experience[1].checked == false) {
			msgStr += "- Please answer question #7.\n";
		}
		
		//Do you fluently read, write and speak English?
		if (document.employmentinquiry.fluent_english[0].checked == false && document.employmentinquiry.fluent_english[1].checked == false) {
			msgStr += "- Please answer question #8.\n";
		}
		
		//Have you ever served with the U.S. Military?
		if (document.employmentinquiry.served_in_military[0].checked == false && document.employmentinquiry.served_in_military[1].checked == false) {
			msgStr += "- Please answer question #9.\n";
		}
		
		//Do you have a High School Diploma or G.E.D.?
		if (document.employmentinquiry.hs_diploma_or_ged[0].checked == false && document.employmentinquiry.hs_diploma_or_ged[1].checked == false) {
			msgStr += "- Please answer question #10.\n";
		}
		
		//Are you able to pass a background investigation?
		if (document.employmentinquiry.able_to_pass_background_check[0].checked == false && document.employmentinquiry.able_to_pass_background_check[1].checked == false) {
			msgStr += "- Please answer question #11.\n";
		}
		
		//Are you able to pass a pre-employment drug screening test?
		if (document.employmentinquiry.able_to_pass_drug_screen[0].checked == false && document.employmentinquiry.able_to_pass_drug_screen[1].checked == false) {
			msgStr += "- Please answer question #12.\n";
		}
		
		//Are you able to stand and/or walk for an entire 8 hour shift?
		if (document.employmentinquiry.able_to_stand_walk_eight_hours[0].checked == false && document.employmentinquiry.able_to_stand_walk_eight_hours[1].checked == false) {
			msgStr += "- Please answer question #13.\n";
		}

        if (msgStr != ""){
                alert(msgStr);
                return false;
        }
        return true;
}
//-->