function setOver(id,nameon){
	if(document.getElementById){
		imgElem=document.getElementById(id);
		imgElem.setAttribute("src","images/" + nameon);
	}
}

function setOut(id,nameoff){
	if(document.getElementById){
		imgElem=document.getElementById(id);
		imgElem.setAttribute("src","images/" + nameoff);
	}
}

function subnav_off(id) {
	document.getElementById(id).className = 'off';
}

function subnav_on(id) {
	document.getElementById(id).className = 'on';
}

function valFields () {

  var val=0;

 

  val = ((document.frmContact.txtFirstName.value == "") +

  		 (document.frmContact.txtLastName.value == "") +

  		 (document.frmContact.txtAddress.value == "") +

  		 (document.frmContact.txtCity.value == "") +
  		  
  		 (document.frmContact.phone.value == "") +

  		 (document.frmContact.selState.value== "empty") +

  		 (document.frmContact.txtZip.value == "") +

  		 (document.frmContact.reason_for_contact.value == ""));

  

  if (val) {

  	alert("Please fill out all of the required fields to submit your order.");

  	return;

}



//everything went okay, so submit the form.

document.frmContact.submit();


}
