	function checkform() {
        var serviceform = document.forms[0];
        
        // Access the text boxes 
        var contact_name = serviceform.contact_name.value;
        var phone = serviceform.phone.value;
        var company = serviceform.company.value;
        var email = serviceform.email.value;
        var address = serviceform.address.value;
        var zip = serviceform.zip.value;
        var city = serviceform.city.value;
        
        // Which drop down item is selected?
        var stateIdx = serviceform.state.selectedIndex
        var state = serviceform.state.options[stateIdx].value;
        
        // Check if any fields are blank
        if ((contact_name == "") || (phone == "") ||
            (state == "None") || (company == "") ||
            (email == "") || (address == "")  ||
            (zip == "") || (city == "")) {
            alert("Please fill out all required fields.");
            return false;
        } else {
            return true;
        }
    }
	
	function enhanceClasses()
	{
		var allTags, classes, i, j, k;
		if(document.all)
		{
			allTags = document.all
		}
		else
		{
			allTags = document.getElementsByTagName("*");
		}
		for(i=0;i<allTags.length;i++)
		{
			// This "if" block is necessary because Opera 9 sometimes breaks on className.split(). For some reason, className can be a null or "undefined" object in Opera. Other browsers don't have this problem.
			if(allTags[i].className)
			{
				classes = allTags[i].className.split(" ");
			}
			else
			{
				classes = new Array();
				classes[0] = "";
			}
			for(j=0;j<classes.length;j++)
			{
				if(classes[j] == "textbox" && allTags[i].parentNode.className != "textboxright")
				{
					var tempElement = document.createElement("div");
					tempElement.className = "textboxouter";
					var tempElement2 = document.createElement("div");
					tempElement2.className = "textboxleft";
					var tempElement3 = document.createElement("div");
					tempElement3.className = "textboxright";
					
					tempElement.appendChild(tempElement2);
					tempElement2.appendChild(tempElement3);
					tempElement3.appendChild(allTags[i].cloneNode(true));
					
					allTags[i].parentNode.replaceChild(tempElement, allTags[i]);
				}
				if((classes[j] == "activenav" || classes[j] == "inactivenav") && allTags[i].childNodes[0].className != "activenavleft")
				{
					var tempElement = document.createElement("div");
					tempElement.className = "activenavleft";
					var tempElement2 = document.createElement("div");
					tempElement2.className = "activenavright";
					
					tempElement.appendChild(tempElement2);
					
					for(k=0;k<allTags[i].childNodes.length;k++)
					{
						tempElement2.appendChild(allTags[i].childNodes[k].cloneNode(true));
					}
					
					tempElement2.style.paddingTop = "0";
					tempElement2.style.paddingRight = "10px";
					tempElement2.style.paddingBottom = "0";
					tempElement2.style.paddingLeft = "10px";

					var tempElement3 = allTags[i].cloneNode(false);
					tempElement3.appendChild(tempElement);
					tempElement3.style.paddingTop = "0";
					tempElement3.style.paddingRight = "0";
					tempElement3.style.paddingBottom = "0";
					tempElement3.style.paddingLeft = "0";
					
					allTags[i].parentNode.replaceChild(tempElement3, allTags[i]);
				}
			}
		}		
	}
      window.onload = enhanceClasses;