<!-- script for menu rollovers -->

if (document.images) {
ro_about_off = new Image
ro_about_on = new Image
ro_about_off2 = new Image
ro_about_on2 = new Image
ro_employer_off = new Image
ro_employer_on = new Image
ro_employer_off2 = new Image
ro_employer_on2 = new Image
ro_candidate_off = new Image
ro_candidate_on = new Image
ro_candidate_off2 = new Image
ro_candidate_on2 = new Image
ro_contact_off = new Image
ro_contact_on = new Image
ro_contact_off2 = new Image
ro_contact_on2 = new Image


ro_sub_about_mp_off= new Image
ro_sub_about_mp_on= new Image
ro_sub_about_careers_off = new Image
ro_sub_about_careers_on = new Image
ro_sub_about_news_off = new Image
ro_sub_about_news_on = new Image
ro_sub_emp_request_off = new Image
ro_sub_emp_request_on = new Image
ro_sub_emp_testimonials_off = new Image
ro_sub_emp_testimonials_on = new Image
ro_sub_cand_reg_off= new Image
ro_sub_cand_reg_on= new Image
ro_sub_cand_successes_off = new Image
ro_sub_cand_successes_on = new Image
ro_sub_cand_tips_off = new Image
ro_sub_cand_tips_on = new Image
ro_sub_cand_openings_off = new Image
ro_sub_cand_openings_on = new Image
ro_sub_contact_off = new Image
ro_sub_contact_on = new Image

ro_about_off.src = "images/ro_about_off.gif"
ro_about_on.src = "images/ro_about_on.gif"
ro_about_off2.src = "images/ro_about_off2.gif"
ro_about_on2.src = "images/ro_about_on2.gif"
ro_employer_off.src = "images/ro_employer_off.gif"
ro_employer_on.src = "images/ro_employer_on.gif"
ro_employer_off2.src = "images/ro_employer_off2.gif"
ro_employer_on2.src = "images/ro_employer_on2.gif"
ro_candidate_off.src = "images/ro_candidate_off.gif"
ro_candidate_on.src = "images/ro_candidate_on.gif"
ro_candidate_off2.src = "images/ro_candidate_off2.gif"
ro_candidate_on2.src = "images/ro_candidate_on2.gif"
ro_contact_off.src = "images/ro_contact_off.gif"
ro_contact_on.src = "images/ro_contact_on.gif"
ro_contact_off2.src = "images/ro_contact_off2.gif"
ro_contact_on2.src = "images/ro_contact_on2.gif"


ro_sub_about_mp_off.src = "images/ro_sub_about_mp_off.gif"
ro_sub_about_mp_on.src = "images/ro_sub_about_mp_on.gif"
ro_sub_about_careers_off.src= "images/ro_sub_about_careers_off.gif"
ro_sub_about_careers_on.src= "images/ro_sub_about_careers_on.gif"
ro_sub_about_news_off.src= "images/ro_sub_about_news_off.gif"
ro_sub_about_news_on.src= "images/ro_sub_about_news_on.gif"
ro_sub_emp_request_off.src= "images/ro_sub_emp_request_off.gif"
ro_sub_emp_request_on.src= "images/ro_sub_emp_request_on.gif"
ro_sub_emp_testimonials_off.src= "images/ro_sub_emp_testimonials_off.gif"
ro_sub_emp_testimonials_on.src= "images/ro_sub_emp_testimonials_on.gif"
ro_sub_cand_reg_off.src= "images/ro_sub_cand_reg_off.gif"
ro_sub_cand_reg_on.src= "images/ro_sub_cand_reg_on.gif"
ro_sub_cand_successes_off.src = "images/ro_sub_cand_successes_off.gif"
ro_sub_cand_successes_on.src = "images/ro_sub_cand_successes_on.gif"
ro_sub_cand_tips_off.src = "images/ro_sub_cand_tips_off.gif"
ro_sub_cand_tips_on.src = "images/ro_sub_cand_tips_on.gif"
ro_sub_cand_openings_off.src = "images/ro_sub_cand_openings_off.gif"
ro_sub_cand_openings_on.src = "images/ro_sub_cand_openings_on.gif"
ro_sub_contact_off.src = "images/ro_sub_contact_off.gif"
ro_sub_contact_on.src = "images/ro_sub_contact_on.gif"
}
else {
ro_about_off = ""
ro_about_on = ""
ro_about_off2 = ""
ro_about_on2 = ""
ro_candidate_off = ""
ro_candidate_on = ""
ro_candidate_off2 = ""
ro_candidate_on2 = ""
ro_employer_off = ""
ro_employer_on = ""
ro_employer_off2 = ""
ro_employer_on2 = ""
ro_openings_off = ""
ro_openings_on = ""
ro_openings_off2 = ""
ro_openings_on2 = ""
ro_contact_off = ""
ro_contact_on = ""
ro_contact_off2 = ""
ro_contact_on2 = ""


ro_sub_about_mp_off = ""
ro_sub_about_mp_on = ""
ro_sub_about_careers_off = ""
ro_sub_about_careers_on = ""
ro_sub_about_news_off = ""
ro_sub_about_news_on = ""
ro_sub_emp_request_off = ""
ro_sub_emp_request_on = ""
ro_sub_emp_testimonials_off = ""
ro_sub_emp_testimonials_on = ""
ro_sub_cand_reg_off= ""
ro_sub_cand_reg_on= ""
ro_sub_cand_successes_off = ""
ro_sub_cand_successes_on = ""
ro_sub_cand_tips_off = ""
ro_sub_cand_tips_on = ""
ro_sub_cand_openings_off = ""
ro_sub_cand_openings_on = ""
ro_sub_contact_off = ""
ro_sub_contact_on = ""

document.about = ""
document.candidate = ""
document.employer = ""
document.contact = ""
document.openings = ""
document.sub_about_mp = ""
document.sub_about_careers = ""
document.sub_about_news = ""
document.sub_emp_request = ""
document.sub_emp_testimonials = ""
document.sub_cand_register = ""
document.sub_cand_successes = ""
document.sub_cand_tips = ""
document.sub_cand_openings = ""
document.sub_contacts = ""
}
<!-- End script for menu rollovers -->


<!-- form validation of required fields -->

function checkRequired() 
{ var error_string ="";

	// check the first name
	if (window.document.candform.firstname.value == "") 
	{ error_string += "Please enter your first name.\n"; }
	// check the last name
	if (window.document.candform.lastname.value == "") 
	{ error_string += "Please enter your last name.\n"; }
	// check the phone number
	if (window.document.candform.homephone.value == "") 
	{ error_string += "Please enter your home phone number.\n"; }
	// check the email
	if (window.document.candform.email.value == "") 
	{ error_string += "Please enter your email address.\n"; }
	// check the resume
	if (window.document.candform.resume.value == "") 
	{ error_string += "Please paste your ASCII resume.\n"; }
	// if there are no errors, send it through
	if (error_string =="")
	{ return true; }
	// otherwise pop up an alert message telling them what they need to fill out.
	else
	{ error_string = "We found the following omissions in your form: \n" + error_string;
	alert(error_string);
	return false;
	}
}



function checkRequired2() 
{ var error_string ="";

	// check the first name
	if (window.document.empform.firstname.value == "") 
	{ error_string += "Please enter your first name.\n"; }
	// check the last name
	if (window.document.empform.lastname.value == "") 
	{ error_string += "Please enter your last name.\n"; }
	// check the phone number
	if (window.document.empform.workphone.value == "") 
	{ error_string += "Please enter your phone number.\n"; }
	// check the email
	if (window.document.empform.email.value == "") 
	{ error_string += "Please enter your email address.\n"; }
	// if there are no errors, send it through
	if (error_string =="")
	{ return true; }
	// otherwise pop up an alert message telling them what they need to fill out.
	else
	{ error_string = "We found the following omissions in your form: \n" + error_string;
	alert(error_string);
	return false;
	}
}
<!-- end form validation of required fields -->

<!-- begin popup a window with subcontent -->
function newWindow(url) {
popWindow = window.open(url, 'newWindow', 'height=400,width=400,resizable=yes,scrollbars=yes,location=yes')
popWindow.focus()
}
<!-- end popup a window with subcontent -->

