
//*************************
// IMAGE ROLLOVER FUNCTIONS
//*************************

function rollover(imgname,command) {
	if (imgname) {
		imgname.src = eval(imgname.name + "_" + command + ".src");
		return true; }
}




//*********************************************************************************
// VERIFIES THAT ALL REQUIRED INFORMATION FIELDS HAVE BEEN COMPLETED
//*********************************************************************************

function verify(formname) {
	var msg = "";
	var header = "";
	var line = "---------------------------------------------------------------------------------------\n";


	if (formname == "agencyappt") {
		if (document.agencyappt.yourname.value == "") {
			msg += "* Your Name \n"; }
		if (document.agencyappt.yourtitle.value == "") {
			msg += "* Your Title \n"; }
		if (document.agencyappt.youremail.value == "") {
			msg += "* Your E-Mail \n"; }
		if (document.agencyappt.agencyname.value == "") {
			msg += "* Agency's Name \n"; }
		if (document.agencyappt.agencyaddress.value == "") {
			msg += "* Agency's Address \n"; }
		if (document.agencyappt.agencycity.value == "") {
			msg += "* Agency's City \n"; }
		if (document.agencyappt.agencystate.value == "") {
			msg += "* Agency's State \n"; }
		if (document.agencyappt.agencyzip.value == "") {
			msg += "* Agency's Zip Code \n"; }
		if (document.agencyappt.agencycounty.value == "") {
			msg += "* Agency's County \n"; }
		if (document.agencyappt.phone.value == "") {
			msg += "* Agency's Phone Number \n"; }
		if (document.agencyappt.years.value == "") {
			msg += "* Years in Business \n"; }
		if (document.agencyappt.agencyemail.value == "") {
			msg += "* Agency's E-Mail \n"; }
		if (document.agencyappt.employees.value == "") {
			msg += "* Number of Employees \n"; }
		if (document.agencyappt.premium.value == "") {
			msg += "* Annual Premium \n"; }
		if (document.agencyappt.volume.value == "") {
			msg += "* Workers' Comp. Volume \n"; } }

	else if (formname == "employerapp") {
		if (document.employerapp.yourname.value == "") {
			msg += "* Your Name \n"; }
		if (document.employerapp.yourtitle.value == "") {
			msg += "* Your Title \n"; }
		if (document.employerapp.youremail.value == "") {
			msg += "* Your E-Mail \n"; }
		if (document.employerapp.bizname.value == "") {
			msg += "* Business Name \n"; }
		if (document.employerapp.bizaddress.value == "") {
			msg += "* Business Address \n"; }
		if (document.employerapp.bizcity.value == "") {
			msg += "* Business City \n"; }
		if (document.employerapp.bizstate.value == "") {
			msg += "* Business State \n"; }
		if (document.employerapp.bizzip.value == "") {
			msg += "* Business Zip Code \n"; }
		if (document.employerapp.bizcounty.value == "") {
			msg += "* Business County \n"; }
		if (document.employerapp.phone.value == "") {
			msg += "* Business Phone Number \n"; }
		if (document.employerapp.fax.value == "") {
			msg += "* Business Fax Number \n"; }
		if (document.employerapp.size.value == "") {
			msg += "* Size of Business \n"; }
		if (document.employerapp.description.value == "") {
			msg += "* Business Description \n"; } }

	else if (formname == "customersvc") {
		if (document.customersvc.yourname.value == "") {
			msg += "* Your Name \n"; }
		if (document.customersvc.yourtitle.value == "") {
			msg += "* Your Title \n"; }
		if (document.customersvc.workphone.value == "") {
			msg += "* Work Phone \n"; }
		if (document.customersvc.fax.value == "") {
			msg += "* Fax Number \n"; }
		if (document.customersvc.youremail.value == "") {
			msg += "* Your E-Mail \n"; }
		if (document.customersvc.organization.value == "") {
			msg += "* Organization \n"; }
		if (document.customersvc.url.value == "") {
			msg += "* URL \n"; }
		if (document.customersvc.comments.value == "") {
			msg += "* Comments \n"; } }

	else if (formname == "feedback") {
		if (document.feedback.yourname.value == "") {
			msg += "* Your Name \n"; }
		if (document.feedback.youremail.value == "") {
			msg += "* Your E-Mail \n"; }
		if (document.feedback.messagetype.value == "") {
			msg += "* Message Type \n"; }
		if (document.feedback.subject.value == "") {
			msg += "* Subject \n"; }
		if (document.feedback.subject.value == "(Other)") {
			if (document.feedback.other.value == "") {
				msg += "* Other (Subject) \n"; } }
		if (document.feedback.phone.value == "") {
			msg += "* Phone Number \n"; }
		if (document.feedback.fax.value == "") {
			msg += "* Fax Number \n"; }
		if (document.feedback.comments.text == "") {
			msg += "* Comments \n"; } }


	if (msg == "") { return true; }
	else {
		header = "Before your application can be sent, you must enter \n";
		header = header + "the following: \n";
		alert( line + header + line + msg + line );
		return false;	}
}

