     <!--

     img1on = new Image(); // Active images
     img1on.src = "/images/home/company2004_.gif";
     img2on = new Image();
     img2on.src = "/images/home/services2004_.gif";
     img3on = new Image();
     img3on.src = "/images/home/products2004_.gif";
     img4on = new Image();
     img4on.src = "/images/home/hints2004_.gif";
     img5on = new Image();
     img5on.src = "/images/home/games2004_.gif";
     img6on = new Image();
     img6on.src = "/images/template/asktheplumber_.gif";
     img7on = new Image();
     img7on.src = "/images/template/contactus_.gif";
     img8on = new Image();
     img8on.src = "/images/template/companystore_.gif";
     img9on = new Image();
     img9on.src = "/images/home/escheduling2004_.gif";
     img10on = new Image();
     img10on.src = "/images/home/pressroom2004_.gif";
     img11on = new Image();
     img11on.src = "/images/home/coupons2004_.gif";
	 img12on = new Image();
     img12on.src = "/images/home/enewsletter2004_.gif";
	 img13on = new Image();
     img13on.src = "/images/home/employment2004_.gif";
	 img14on = new Image();
     img14on.src = "/images/company/talk_on.gif";
	 img15on = new Image();
     img15on.src = "/images/company/cust_survey_on.gif";
	 img16on = new Image();
     img16on.src = "/images/company/site_on.gif";
	 img17on = new Image();
     img17on.src = "/images/company/ask_on.gif";
	 img18on = new Image();
     img18on.src = "/images/company/keycontacts_on.gif";
	 img19on = new Image();
     img19on.src = "/images/company/location_on.gif";
          
     img1off = new Image(); // Inactive images
     img1off.src = "/images/home/company2004.gif";
     img2off = new Image();
     img2off.src = "/images/home/services2004.gif";
     img3off = new Image();
     img3off.src = "/images/home/products2004.gif";
     img4off = new Image();
     img4off.src = "/images/home/hints2004.gif";
     img5off = new Image();
     img5off.src = "/images/home/games2004.gif";
     img6off = new Image();
     img6off.src = "/images/template/asktheplumber.gif";
     img7off = new Image();
     img7off.src = "/images/template/contactus.gif";
     img8off = new Image();
     img8off.src = "/images/template/companystore.gif";
     img9off = new Image();
     img9off.src = "/images/home/escheduling2004.gif";
     img10off = new Image();
     img10off.src = "/images/home/pressroom2004.gif";
     img11off = new Image();
     img11off.src = "/images/home/coupons2004.gif";
	 img12off = new Image();
     img12off.src = "/images/home/enewsletter2004.gif";
	 img13off = new Image();
     img13off.src = "/images/home/employment2004.gif";
	 img14off = new Image();
     img14off.src = "/images/company/talk_off.gif";
	 img15off = new Image();
     img15off.src = "/images/company/cust_survey_off.gif";
	 img16off = new Image();
     img16off.src = "/images/company/site_off.gif";
	 img17off = new Image();
     img17off.src = "/images/company/ask_off.gif";
	 img18off = new Image();
     img18off.src = "/images/company/keycontacts_off.gif";
	 img19off = new Image();
     img19off.src = "/images/company/location_off.gif";
     
     function imgOn(imgName) 
     {
     if (document.images) 
     {
     document[imgName].src = eval(imgName + "on.src");
     }
     }

     function imgOff(imgName) 
     {
     if (document.images) 
     {
     document[imgName].src = eval(imgName + "off.src");
     }
     }
	 
	function popup(url,n,w,h,scroll){
	
	 if(!scroll){scrl="no"}else{scrl=1}
	
	 wind=open(url,n,"width="+w+",height="+h+
	                 ",resizable=no,scrollbars=no"+
	                 ",menubars=no,toolbar=no,directories=no,buttons=no");
	
	 wind.focus();
	}	

function checkChecked(form)
{
 for(i = 0; i < form.answer.length; i++) {
  if(form.answer[i].checked == true) {
    return 1;
  }
 }
 return 0;
}


function openWindow(url) {
  popupWin = window.open(url, 'remote', 'width=350,height=222,scrollbars=no,menubars=no,toolbar=no');
}


function openRoseBowlWindow(url) {
  popupWin = window.open(url, 'remote', 'width=620,height=500,scrollbars=no,menubars=no,toolbar=no');
}


/*
function contestpopup() {
msg=window.open("","msg","height=200,width=200,resizable=no,scrollbars=no,menubars=no,toolbars=no");
msg.document.write("<html><title>Windows!</title>");
msg.document.write("<body bgcolor='white' onblur=window.close()>");
msg.document.write("<center>page content here</center>");
msg.document.write("</body></html><p>");

// If you just want to open an existing HTML page in the 
// new window, you can replace win()'s coding above with:
// window.open("page.html","","height=200,width=200,left=80,top=80");
}*/

/*
function contestpopup() {
	win = window.open("/rose-parade/popup.html","win","left=10,top=10,width=508,height=298,resizable=no,scrollbars=no,menubars=no,toolbar=no");
}
*/


function openResults(form, mode){
 if(mode == "vote") {
  if(!checkChecked(form)) {
    alert("Please check an answer");
    return;
  }
 }
 form.mode.value = mode;
 popup('','p_window',300,300,false);
 form.submit();
}

     //-->
     function setCookie(txt){
    //document.cookie = "myref=" + txt
	document.cookie = "referringsite=" + txt
}

function getCookie(){
    var cookieAfter = document.cookie;
    alert ("String after setting the cookie : " + cookieAfter);

    return cookieAfter;
}

function win(fileName) {
	     myFloater = window.open('','myWindow','scrollbars=no,status=no,width=800,height=640')
	     myFloater.location.href = fileName;
}
	
	
	
function validate(tf)
{
  if(tf.firstname.value == "") {
    alert("Please enter your first name");
    return false;
  }
  if(tf.lastname.value == "") {
    alert("Please enter your last name");
    return false;
  }
  if(tf.email_address.value == "") {
    alert("Please enter your email address name");
    return false;
  }
  
  return true;
}




function validate_survey(tf)
{
  if(tf.firstname.value == "") {
    alert("Please enter your first name");
	tf.firstname.focus();
    return false;
  }
  if(tf.lastname.value == "") {
    alert("Please enter your last name");
	tf.lastname.focus();
    return false;
  }
  if(tf.address.value == "") {
    alert("Please enter your address");
	tf.address.focus();
    return false;
  }  
  if(tf.city.value == "") {
    alert("Please enter your city");
	tf.city.focus();
    return false;
  }
  if(tf.region.value == "") {
    alert("Please enter your state");
	tf.region.focus();
    return false;
  }
  if(tf.zip.value == "") {
    alert("Please enter your zip");
	tf.zip.focus();
    return false;
  }
  if(tf.areacode.value == "") {
    alert("Please enter your area code");
	tf.areacode.focus();
    return false;
  }
  if(tf.telephone.value == "") {
    alert("Please enter your telephone number");
	tf.telephone.focus();
    return false;
  }
  
  if(tf.email_address.value == "") {
    alert("Please enter your email address");
	tf.email_address.focus();
    return false;
  }  

  i = 1;
  isSelected = 0;
  for(i = 1; i < tf.hear.length; i++) {
    if(tf.hear.options[i].selected == true) {
      isSelected = 1;
    }
  }
  if(!isSelected) {
    alert("Please tell us how you heard about us.");
    return false;
  }

  i = 1;
  isSelected = 0;
  for(i = 1; i < tf.likelyhood.length; i++) {
    if(tf.likelyhood.options[i].selected == true) {
      isSelected = 1;
    }
  }
  if(!isSelected) {
    alert("Please tell us how likely you will be to use Roto-Rooter again.");
    return false;
  }

//  return false;  
  return true;
}



function validate_jobapp(tf)
{

	isSelected = 0;
	
	if(tf.firstname.value == "") {
		alert("Please enter your first name");
		tf.firstname.focus();
		return false;
	}
	if(tf.lastname.value == "") {
		alert("Please enter your last name");
		tf.lastname.focus();
		return false;
	}
	
	if(tf.address_1.value == "") {
		alert("Please enter your address");
		tf.address_1.focus();
		return false;
	}
	
	if(tf.city.value == "") {
		alert("Please enter your city");
		tf.city.focus();
		return false;
	}
	
	if(tf.region.value == "") {
		alert("Please enter your state/province");
		tf.region.focus();
		return false;
	}

	if(tf.postal_code.value == "") {
		alert("Please enter your zip/postal code");
		tf.postal_code.focus();
		return false;
	}
	
	if(tf.phone_number.value == "") {
		alert("Please enter your home phone");
		tf.phone_number.focus();
		return false;
	}
	
	if (tf.email_address.value=="") {
		alert("Please enter your email address");
		tf.email_address.focus();
		return false;
	}
	
	if (tf.best_time.value=="") {
		alert("Please enter your best time to call");
		tf.best_time.focus();
		return false;
	}
	
	isSelected = 0;
	if (!tf.experience.length) { if(tf.experience.checked) isSelected = 1; }
	else { for(var i = 0; i < tf.experience.length; i++) if(tf.experience[i].checked) isSelected = 1; 	}
	if (!isSelected) {
		alert("Please enter whether or not you have plumbing experience");
		return false;
	}
	
	if (tf.expyears.value=="") {
		alert("Please enter your years experience");
		tf.expyears.focus();
		return false;
	}
	
	isSelected = 0;
	if (!tf.license.length) { if(tf.license.checked) isSelected = 1; }
	else { for(var i = 0; i < tf.license.length; i++) if(tf.license[i].checked) isSelected = 1; 	}
	if (!isSelected) {
		alert("Please enter whether or not you have a plumbing license");
		return false;
	}
	
	//license[0] is the "yes" radio button.  If it is selected, we want to require the state field
	if (tf.license[0].checked && tf.statelicense.value=='') {
		alert("Please enter the state or states where you have plumbing experience");
		tf.statelicense.focus();
		return false;
	}

	return true;
}
