//Javascript 
<!--
	var PATH = 'http://www.koenplumbing.com/';
	var errBG = "#FFCCCC";
	function cont()
	{
		var url = PATH+'contsub.php';
		var pars = 'name='+$('name').value;
		pars += '&city='+$('city').value;
		pars += '&phone='+$('phone').value;
		pars += '&addy='+$('addy').value;
		pars += '&descr='+$('descr').value;
		pars += '&date='+$('date').value;
		pars += '&time='+$('time').value;
		for(i=0; i<document.contform.hearus.length; i++) {
			if (document.contform.hearus[i].checked)
				pars += '&hearus'+i+'='+document.contform.hearus[i].value;
		}
		if (document.contform.hearus[7].checked)
				pars += '&hearus_other='+$('hearus_other').value;
		var myAjax = new Ajax.Request(  
			url, 
			{ 
				method: 'get', 
				parameters: pars,
				onFailure: reportError,
				onComplete: showResult });
	}

	function reportError(request)
	{
		alert('Sorry. There was an error.');
	}
	
	function showResult(request)
	{
		$('t_name').style.backgroundColor = "#FFFFFF";
		$('t_city').style.backgroundColor = "#FFFFFF";
		$('t_phone').style.backgroundColor = "#FFFFFF";
		$('t_email').style.backgroundColor = "#FFFFFF";
		$('t_descr').style.backgroundColor = "#FFFFFF";
		var response = request.responseText;
		if (response.indexOf('Error') == -1) {
			$('err').innerHTML = "";
			$('contform').innerHTML = "<strong>Thank you for contacting us. We will respond shortly.<br>- Koen Plumbing</strong>";
		} else {
			if (response.indexOf('name') != -1) {
				$('t_name').style.backgroundColor = errBG;
				$('name').focus();
			}
			if (response.indexOf('city') != -1) {
				$('t_city').style.backgroundColor = errBG;
				$('city').focus();
			}
			if (response.indexOf('phone') != -1) {
				$('t_phone').style.backgroundColor = errBG;
				$('phone').focus();
			}
			if (response.indexOf('email') != -1) {
				$('t_email').style.backgroundColor = errBG;
				$('addy').focus();
			}
			if (response.indexOf('description') != -1) {
				$('t_descr').style.backgroundColor = errBG;
				$('descr').focus();
			}
			$('err').innerHTML = "<img src=\"images/warning_icon.gif\" align=\"left\"> <strong class=\"red\">"+response+"</strong>";
		}
	}
	
	function showService(it)
	{
		var myDiv = document.getElementById(it);
		if (myDiv.style.display == "none") {
			myDiv.style.display = "inline";
			createService(it);
		} else {
			destroyService(it);
			myDiv.style.display = "none";
		}
	}
	
	function createService(service)
	{
		var d = document;
		if (service == "leaks") {
			var div = document.getElementById(service);
			div.appendChild(createList(service,'Leaks and Drips','leaksanddrips.htm','','','','','','','',''));
		}
		if (service == "waterheater") {
			var div = document.getElementById(service);
			div.appendChild(createList(service,'Water Heater Sizing Aid','waterheatersizing.htm','Testing Your T&P Valve','testingyourtandpvalve.htm','Water Heater Temperature Chart','waterheatertemperature.htm','Dust Bunny','dustbunny.htm','',''));
		}
		if (service == "stubornclogs") {
			var div = document.getElementById(service);
			div.appendChild(createList(service,'Toilet Paper Dissolvency Chart','toiletpaper.htm','Squishy Carpet - Smelly Water','squishycarpet.htm','','','','','',''));
		}
		if (service == "watercirculation") {
			var div = document.getElementById(service);
			div.appendChild(createList(service,'Water Heater Sizing Aid','waterheatersizing.htm','Testing Your T&P Valve','testingyourtandpvalve.htm','Water Heater Temperature Chart','waterheatertemperature.htm','','','',''));
		}
		if (service == "toilets") {
			var div = document.getElementById(service);
			div.appendChild(createList(service,'Throw Away Your Plunger Now','throwawayyourplunger.htm','Squishy Carpet - Smelly Water','squishycarpet.htm','Toilet Paper Dissolvency Chart','toiletpaper.htm','Leaks & Drips','leaksanddrips.htm','Water Alarm','wateralarm.htm'));
		}
	}
	
	function destroyService(service)
	{
		var d = document;
		var mydiv = d.getElementById(service);
		var div_d = d.getElementById(service+'_d');
		mydiv.removeChild(div_d);
	}
	
	function createList(service,l1,a1,l2,a2,l3,a3,l4,a4,l5,a5)
	{
		var d = document;
		var div = d.getElementsByTagName("body")[0].appendChild(d.createElement("div"));;
		div.id = service+'_d';
		var ul = div.appendChild(d.createElement('ul'));
		ul.className = "services_list";
		var lia1 = ul.appendChild(d.createElement('a'));
		var li1 = lia1.appendChild(d.createElement('li'));
		li1.innerHTML = l1;
		lia1.href = a1;
		if(l2 != '') {
			var lia2 = ul.appendChild(d.createElement('a'));
			var li2 = lia2.appendChild(d.createElement('li'));
			li2.innerHTML = l2;
			lia2.href = a2;
		}
		if(l3 != '') {
			var lia3 = ul.appendChild(d.createElement('a'));
			var li3 = lia3.appendChild(d.createElement('li'));
			li3.innerHTML = l3;
			lia3.href = a3;
		}
		if(l4 != '') {
			var lia4 = ul.appendChild(d.createElement('a'));
			var li4 = lia4.appendChild(d.createElement('li'));
			li4.innerHTML = l4;
			lia4.href = a4;
		}
		if(l5 != '') {
			var lia5 = ul.appendChild(d.createElement('a'));
			var li5 = lia5.appendChild(d.createElement('li'));
			li5.innerHTML = l5;
			lia5.href = a5;
		}
		return div;
	}
-->