

function formCheck(formobj){
	// Enter name of mandatory fields
	var fieldRequired = Array("name", "phone", "email" );
	// Enter field description to appear in the dialog box
	var fieldDescription = Array("Name", "Phone", "Email" );
	// dialog message
	var alertMsg = "Please complete the following required fields:\n";
	
	var l_Msg = alertMsg.length;
	
	for (var i = 0; i < fieldRequired.length; i++){
		var obj = formobj.elements[fieldRequired[i]];
		if (obj){
			switch(obj.type){
			case "select-one":
				if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "text":
			case "textarea":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			default:
			}
			if (obj.type == undefined){
				var blnchecked = false;
				for (var j = 0; j < obj.length; j++){
					if (obj[j].checked){
						blnchecked = true;
					}
				}
				if (!blnchecked){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
			}
		}
	}

	if (alertMsg.length == l_Msg){
		return true;
	}else{
		alert(alertMsg);
		return false;
	}
}

function changecolor(x){

    document.getElementById('menu1').src = "bagimages/alumbuttonviewselectionhigh.png";
    document.getElementById('audiotable').src = "bagimages/audiobackscreen.png";
  	
}

function changehighbutton(x){
    

	if(x=="1"){document.getElementById('menu1').src="images/homepagebttnrollover.png";}
	if(x=="2"){document.getElementById('menu2').src="images/aboutusbttnrollover.png";}
	if(x=="3"){document.getElementById('menu3').src="images/servicesbttnrollover.png";}
	if(x=="4"){document.getElementById('menu4').src="images/specialsbttnrollover.png";}
	if(x=="5"){document.getElementById('menu5').src="images/paymentbttnrollover.png";}
	if(x=="6"){document.getElementById('menu6').src="images/contactbttnrollover.png";}
	if(x=="7"){document.getElementById('menu7').src="images/printpreviewbttnrollover.jpg";}
		if(x=="88"){document.getElementById('menu88').src="images/tirebttnrollover.png";}
}
	  

function changelowbutton(x){

      if(x=="1"){ document.getElementById('menu1').src="images/homepagebttn.png";}
	  if(x=="2"){ document.getElementById('menu2').src="images/aboutusbttn.png";}
	  if(x=="3"){document.getElementById('menu3').src="images/servicesbttn.png";}
	  if(x=="4"){document.getElementById('menu4').src="images/specialsbttn.png";}
	  if(x=="5"){document.getElementById('menu5').src="images/paymentbttn.png";}
	  if(x=="6"){document.getElementById('menu6').src="images/contactbttn.png";}
	  if(x=="7"){document.getElementById('menu7').src="images/printpreviewbttn.jpg";}
	  if(x=="88"){document.getElementById('menu88').src="images/tirebttn.png";}
	     
		 }
		 
		 function changepage(x){

      if(x=="1"){location.href="index.html";}
	  if(x=="2"){location.href="Aboutus.html";}
	  if(x=="3"){location.href="Services.html";}
	  if(x=="4"){location.href="Specials.html";}
	  if(x=="5"){location.href="Paymentmethods.html";}
	  if(x=="6"){location.href="Contactus.html";}
	  if(x=="7"){location.href="Coupon.html";}
	  if(x=="8"){location.href="contact.html";}
	  if(x=="9"){location.href="recycling.html";}
	  if(x=="10"){location.href="yardwaist.html";}
	    if(x=="11"){location.href="bulkitems.html";}
		  if(x=="12"){location.href="HolidaySchedule.html";}
		    if(x=="13"){location.href="events.html";}
			  if(x=="14"){location.href="aboutus.html";}
			    if(x=="88"){location.href="tirespecial.html";}
	  
	   }



