var formElements = new Array(); formElements.push(["application_id","Application Security ID is required.",1]); formElements.push(["applicationType","Applying for field is required.",1]); formElements.push(["applicantFirstName","Applicant's first name is required.",1]); formElements.push(["applicantMiddleName","Applicant's middle name is required.",1]); formElements.push(["applicantLastName","Applicant's last name is required.",1]); formElements.push(["applicantStreet","Applicant's street Address is required.",1]); formElements.push(["applicantCity","Applicant's City is required.",1]); formElements.push(["applicantState","Applicant's State is required.",1]); formElements.push(["applicantZip","Applicant's zip code is required.",1]); formElements.push(["applicantHomePhone","Applicant's Home Phone is required.",1]); formElements.push(["applicantSSN","Applicant's Social Security Number",0]); formElements.push(["applicantSubdivision","Applicant's subdivision is required.",1]); formElements.push(["applicantCounty","Applicant's County is required.",1]); formElements.push(["applicationGrade","Grade applying for is required.",1]); formElements.push(["desiredStartDate","Desired Start Date",0]); formElements.push(["applicantDob","Applicant's date of birth is required.",1]); formElements.push(["applicantAge","Applicant's age",0]); formElements.push(["applicantCitizenship","Applicant's citizenship status is required.",1]); formElements.push(["applicantBirthCity","Applicant's city of birth is required.",1]); formElements.push(["applicantBirthState","Applicant's state of birth is required.",1]); formElements.push(["applicantBirthCountry","Applicant's country of birth is required.",1]); formElements.push(["applicantReligion","Applicant's religion",0]); formElements.push(["applicantEthnicity","Applicant's Ethnicity",0]); formElements.push(["applicantEthnicityOther","Applicant's Ethnicity (other)",0]); formElements.push(["applicantSex","Applicant's sex is required.",1]); formElements.push(["FatherGuardianPrefix","Father's Title is required.",1]); formElements.push(["FatherGuardianFullName","Father's first name is required.",1]); formElements.push(["FatherGuardianLastName","Father's last name is required.",1]); formElements.push(["FatherGuardianOccupation","Father's occupation is required.",1]); formElements.push(["FatherGuardianTitle","Father's Title is required.",0]); formElements.push(["FatherGuardianEmployer","Father's Employer is required.",1]); formElements.push(["FatherGuardianWorkAddress","Father's work address is required.",1]); formElements.push(["FatherGuardianWorkCityStateZip","Father's work city, state, zip is required.",1]); formElements.push(["FatherGuardianWorkPhone","Father's work phone is required.",1]); formElements.push(["FatherGuardianCellPhone","Father's cell phone is required.",1]); formElements.push(["FatherGuardianWorkHours","Father's work hours is required.",1]); formElements.push(["FatherGuardianEmail","Father's email is required.",1]); formElements.push(["MotherGuardianPrefix","Guardian's title is required.",1]); formElements.push(["MotherGuardianRelationship","Guardian's relationship is required.",1]); formElements.push(["MotherGuardianFullName","Mother's first name is required.",1]); formElements.push(["MotherGuardianLastName","Mother's last name is required.",1]); formElements.push(["MotherGuardianOccupation","Mother's occupation is required.",1]); formElements.push(["MotherGuardianTitle","Mother's title is required.",0]); formElements.push(["MotherGuardianEmployer","Mother's employer is required.",1]); formElements.push(["MotherGuardianWorkAddress","Mother's work address is required.",1]); formElements.push(["MotherGuardianWorkCityStateZip","Mother's work city, state, zip is required.",1]); formElements.push(["MotherGuardianWorkPhone","Mother's work phone is required.",1]); formElements.push(["MotherGuardianCellPhone","Mother's cell phone is required.",1]); formElements.push(["MotherGuardianWorkHours","Mother's work hours is required.",1]); formElements.push(["MotherGuardianEmail","Mother's email is required.",1]); formElements.push(["applicantParentStatus","Parent's marital status is required.",1]); formElements.push(["applicantParentLimitations","Parent's limitations is required.",1]); formElements.push(["applicantSocialConcerns","Social Concerns is required.",1]); formElements.push(["applicantPhysician","Physician is required.",1]); formElements.push(["applicantPhysicianPractice","Physician's practice",0]); formElements.push(["applicantPhysicianAddress","Physician's address",0]); formElements.push(["applicantPhysicianCityStateZip","physicians city, state, zip",0]); formElements.push(["applicantPhysicianPhoneNumber","Physicians phone number",0]); formElements.push(["applicantHealthHistory","Health history is required.",1]); formElements.push(["applicantInsuranceCompany","Insurance Company is required.",1]); formElements.push(["applicantInsuranceId","Insurance ID is required.",1]); formElements.push(["applicantInsuranceNameOnCard","Name on insurance card is required.",1]); formElements.push(["applicantEmotionalConcerns","Emotional concerns is required.",1]); formElements.push(["applicantAllergies","Allergies is required.",1]); formElements.push(["applicantMedication","Medication is required.",1]); formElements.push(["applicantSpecialNeedsYesNo","Special needs",0]); formElements.push(["applicantSpecialNeedsDetails","Special needs details",0]); formElements.push(["applicantAsthmaTriggers","Asthma triggers",0]); formElements.push(["applicant12MonthAsthmaUrgentCare","Asthma 12 month urgent care",0]); formElements.push(["applicant3MonthAsthmaUrgentCare","Asthma 3 month urgent care",0]); formElements.push(["applicantPottyTrained","Potty trained status",0]); formElements.push(["contact1contactFullName","One emergency contact's full name is required.",1]); formElements.push(["contact1contactRelationship","One emergency contact's relationship is required.",1]); formElements.push(["contact1contactAddress","One emergency contact's address is required.",1]); formElements.push(["contact1ContactPhone","One emergency contact's phone is required.",1]); formElements.push(["contact2contactFullName","Contact's full name",0]); formElements.push(["contact2contactRelationship","Contact's relationship",0]); formElements.push(["contact2contactAddress","Contact's address",0]); formElements.push(["contact2ContactPhone","Contact's phone",0]); formElements.push(["contact3contactFullName","One release authorization's full name is required.",1]); formElements.push(["contact3contactRelationship","One release authorization's relationship is required.",1]); formElements.push(["contact3contactAddress","One release authorization's address is required.",1]); formElements.push(["contact3ContactPhone","One release authorization's phone is required.",1]); formElements.push(["contact4contactFullName","Contact's full name",0]); formElements.push(["contact4contactRelationship","Contact's relationship",0]); formElements.push(["contact4contactAddress","Contact's address",0]); formElements.push(["contact4ContactPhone","Contact's phone",0]); formElements.push(["school1SchoolName","Information on at least one previous school is required.",1]); formElements.push(["school1SchoolDatesAttended","Dates attended is required.",1]); formElements.push(["school1SchoolReasonLeft","Reason for leaving is required.",1]); formElements.push(["school2SchoolName","School name",0]); formElements.push(["school2SchoolDatesAttended","Dates attended",0]); formElements.push(["school2SchoolReasonLeft","Reason for leaving",0]); formElements.push(["school3SchoolName","School name",0]); formElements.push(["school3SchoolDatesAttended","Dates attended",0]); formElements.push(["school3SchoolReasonLeft","Reason for leaving",0]); formElements.push(["sib1Name","Sibling's name",0]); formElements.push(["sib1Age","Sibling's age",0]); formElements.push(["sib1Schools","Sibling's schools attended",0]); formElements.push(["sib2Name","Sibling's name",0]); formElements.push(["sib2Age","Sibling's age",0]); formElements.push(["sib2Schools","Sibling's schools attended",0]); formElements.push(["sib3Name","Sibling's name",0]); formElements.push(["sib3Age","Sibling's age",0]); formElements.push(["sib3Schools","Sibling's schools attended",0]); formElements.push(["applicationBeforeAfterOption","After school option.",0]); formElements.push(["applicationPlansToAttendUntil","until what grade the child will atend.",0]); formElements.push(["applicationVerification","the Digital Signature checkmark indicating all information is valid. is required.",1]); formElements.push(["formSubmiter","Name of person submitting application is required.",1]); formElements.push(["applicationAdditionalInfo","Additional information",0]); function clearSiblingTextArea(object){ if (object.value.indexOf("School 1, start date - end date, Reason for leaving") >= 0) object.value = ""; } function setSameAddress(which){ var who = (which == 0)? "Father": "Mother"; var theApp = document.application; theApp[who+"GuardianHomeAddress"].value = theApp.applicantStreet.value; theApp[who+"GuardianHomeCityStateZip"].value = theApp.applicantCity.value + ', ' + theApp.applicantState.value + ', ' + theApp.applicantZip.value; } function setSameContacts(){ var theApp = document.application; theApp.contact3contactFullName.value = theApp.contact1contactFullName.value; theApp.contact3contactRelationship.value = theApp.contact1contactRelationship.value; theApp.contact3contactAddress.value = theApp.contact1contactAddress.value; theApp.contact3ContactPhone.value = theApp.contact1ContactPhone.value; theApp.contact4contactFullName.value = theApp.contact2contactFullName.value; theApp.contact4contactRelationship.value = theApp.contact2contactRelationship.value; theApp.contact4contactAddress.value = theApp.contact2contactAddress.value; theApp.contact4ContactPhone.value = theApp.contact2ContactPhone.value; } function checkApplication(){ //checkAppRadioButtons(); //return; var theApp = document.application; for(i=0; i