function ValidateRequestForm() {	var f = document.CCIRequest;	if (f.firstname.value == '') {		alert('Please fill in the First Name field.');		f.firstname.focus();	} else if (f.lastname.value == '') {		alert('Please fill in the Last Name field.');		f.lastname.focus();	} else if (f.contact_address.value == '') {		alert('Please fill in the Address field in the Contact Information section.');		f.contact_address.focus();	} else if (f.contact_city.value == '') {		alert('Please fill in the City field in the Contact Information section.');		f.contact_city.focus();		} else if (f.contact_state.value == '') {		alert('Please fill in the State field in the Contact Information section.');		f.contact_state.focus();		} else if (f.contact_zipcode.value == '') {		alert('Please fill in the Zip field in the Contact Information section.');		f.contact_zipcode.focus();		} else if (f.contact_phone.value == '') {		alert('Please fill in the Phone field in the Contact Information section.');		f.contact_phone.focus();	} else if (f.contact_phone.value.length < 7) {		alert('Please enter a minimum of 7 numbers in the Phone field in the Contact Information section.');		f.contact_phone.focus();			} else if (f.email.value == '') {		alert('Please fill in the E-mail field in the Contact Information section.');		f.email.focus();		} else if (f.event_info.value == 'Please select one') {		alert('Please select an Event Type in the Event Information section.');		f.event_info.focus();				} else if (f.start_date.value == '') {		alert('Please fill in the Start Date field.');		f.start_date.focus();				} else if (f.end_date.value == '') {		alert('Please fill in the End Date field.');		f.end_date.focus();					} else if (f.hours_per_day.value == '') {		alert('Please fill in the Hours Per Day field.');		f.hours_per_day.focus();					} else if (f.proposal_needed_by.value == '') {		alert('Please fill in the Proposal Needed field.');		f.proposal_needed_by.focus();					} else if (f.expected_attendance.value == '') {		alert('Please fill in the Expected Attendance field.');		f.expected_attendance.focus();							} else {		alert('Thank you. We will be contacting you soon regarding your interest in Central Coast Industries.');		f.submit();	}}function ValidateSaleForm() {	var f = document.CCISale;	if (f.firstname.value == '') {		alert('Please fill in the First Name field.');		f.firstname.focus();	} else if (f.lastname.value == '') {		alert('Please fill in the Last Name field.');		f.lastname.focus();	} else if (f.contact_address.value == '') {		alert('Please fill in the Address field in the Contact Information section.');		f.contact_address.focus();	} else if (f.contact_city.value == '') {		alert('Please fill in the City field in the Contact Information section.');		f.contact_city.focus();		} else if (f.contact_state.value == '') {		alert('Please fill in the State field in the Contact Information section.');		f.contact_state.focus();		} else if (f.contact_zipcode.value == '') {		alert('Please fill in the Zip field in the Contact Information section.');		f.contact_zipcode.focus();		} else if (f.contact_phone.value == '') {		alert('Please fill in the Phone field in the Contact Information section.');		f.contact_phone.focus();	} else if (f.contact_phone.value.length < 7) {		alert('Please enter a minimum of 7 numbers in the Phone field in the Contact Information section.');		f.contact_phone.focus();				} else if (f.contact_email.value == '') {		alert('Please fill in the E-mail field in the Contact Information section.');		f.contact_email.focus();		} else if (f.sale_quantity.value == '') {		alert('Please fill in the Quantity field in the Requested Equipment section.');		f.sale_quantity.focus();				} else {		alert('Thank you. We will be contacting you soon regarding your interest in Central Coast Industries.');		f.submit();	}}function ValidateEmailForm() {	var f = document.CCIEmailRequest;	if (f.firstname.value == '') {		alert('Please fill in the First Name field.');		f.firstname.focus();	} else if (f.lastname.value == '') {		alert('Please fill in the Last Name field.');		f.lastname.focus();	} else if (f.companyname.value == '') {		alert('Please fill in the Company Name field.');		f.companyname.focus();	} else if (f.city.value == '') {		alert('Please fill in the City field.');		f.city.focus();		} else if (f.state.value == '') {		alert('Please fill in the State field.');		f.state.focus();		} else if (f.email.value == '') {		alert('Please fill in the Email field.');		f.email.focus();	} else {		alert('Thank you. We will be contacting you soon regarding your interest in Central Coast Industries.');		f.submit();	}}function ValidateCallForm() {	var f = document.CCICall;	if (f.firstname.value == '') {		alert('Please fill in the First Name field.');		f.firstname.focus();	} else if (f.lastname.value == '') {		alert('Please fill in the Last Name field.');		f.lastname.focus();	} else if (f.companyname.value == '') {		alert('Please fill in the Company Name field.');		f.companyname.focus();	} else if (f.title.value == '') {		alert('Please fill in the Title field.');		f.title.focus();	} else if (f.city.value == '') {		alert('Please fill in the City field.');		f.city.focus();		} else if (f.state.value == '') {		alert('Please fill in the State field.');		f.state.focus();		} else if (f.phone_number.value == '') {		alert('Please fill in the Phone Number field.');		f.phone_number.focus();	} else if (f.phone_number.value.length < 7) {		alert('Please enter a minimum of 7 numbers in the Phone field.');		f.phone_number.focus();			} else if (f.cellphone_number.value == '') {		alert('Please fill in the Cell Phone field.');		f.cellphone_number.focus();			} else if (f.comments.value == '') {		alert('Please describe the reason for this request.');		f.comments.focus();		} else {		alert('Thank you. We will be contacting you soon regarding your interest in Central Coast Industries.');		f.submit();	}}<!-- This script and many more are available free online at --><!-- The JavaScript Source!! http://javascript.internet.com --><!-- Begin IMAGE PRELOADimage1 = new Image();image1.src = "images/main_nav/bg_contact.jpg";image2 = new Image();image2.src = "images/main_nav/bg_jobserv.jpg";image3 = new Image();image3.src = "images/main_nav/bg_emerresp.jpg";image4 = new Image();image4.src = "images/main_nav/bg_emerresp_bot.jpg";image5 = new Image();image5.src = "images/main_nav/bg_emerresp_botdot.jpg";image6 = new Image();image6.src = "images/main_nav/bg_spev.jpg";image7 = new Image();image7.src = "images/main_nav/bg_spev_top.jpg";image8 = new Image();image8.src = "images/main_nav/bg_jobserv2.jpg";image9 = new Image();image9.src = "images/main_nav/bg_emerresp2.jpg";image10 = new Image();image10.src = "images/main_nav/bg_spev2.jpg";image11 = new Image();image11.src = "images/main_nav/bg_spev_top2.jpg";image12 = new Image();image12.src = "images/main_nav/bg_spev_sub.gif";image13 = new Image();image13.src = "images/main_nav/bg_jose_sub.gif";image14 = new Image();image14.src = "images/main_nav/bg_emre_sub.gif";image15 = new Image();image15.src = "images/main_nav/bg_rollover_sub.jpg";image16 = new Image();image16.src = "images/main_nav/bg_rollover.jpg";image17 = new Image();image17.src = "images/main_nav/bg_rollover_top.jpg";image18 = new Image();image18.src = "images/main_nav/bg_rollover_bot.jpg";image19 = new Image();image19.src = "images/blueboxmid.jpg";image20 = new Image();image20.src = "images/blueboxbot.jpg";image21 = new Image();image21.src = "images/blueboxtop.jpg";// End of image preload-->/*This is a very handy function written by Simon Willison:http://simon.incutio.com/archive/2004/05/26/addLoadEventIt allows you to queue up a whole series of events to be triggered when the document loads.If you simply use window.onload = func, then you run the risk of overwriting existing functions that are supposed to run when the onload event is triggered.*/function addLoadEvent(func) {	var oldonload = window.onload;	if (typeof window.onload != 'function') {		window.onload = func;	} else {		window.onload = function() {			if (oldonload) {				oldonload();			}			func();		}	}}