function addLoadListener(fn) {
	if (typeof window.addEventListener != 'undefined') {
		window.addEventListener('load', fn, false);
	} else if (typeof document.addEventListener != 'undefined')	{
		document.addEventListener('load', fn, false);
	} else if (typeof window.attachEvent != 'undefined') {
		window.attachEvent('onload', fn);
	} else {
		return false;
	}
	return true;
};

function attachEventListener(target, eventType, functionRef, capture) {
    if (typeof target.addEventListener != "undefined") {
        target.addEventListener(eventType, functionRef, capture);
    } else if (typeof target.attachEvent != "undefined") {
        target.attachEvent("on" + eventType, functionRef);
    } else {
        return false;
    }
    return true;
};

function clearInputs(){
	var input=document.getElementsByTagName('input');
	for(var i=0;i<input.length;i++){
		if(input[i].type=='text'){
			input[i].setAttribute('rel',input[i].defaultValue)
			input[i].onfocus=function(){
				if(this.value==this.getAttribute('rel')) { this.value=''; }
				else { return false; }
			}
			input[i].onblur=function(){
				if(this.value=='') { this.value=this.getAttribute('rel'); }
				else { return false;}
			}
			input[i].ondblclick=function() { this.value=this.getAttribute('rel') }
		}
	}
}
clearInputs();
attachEventListener(window, "load", clearInputs, false);



function checkform ( mainfeedbackform )
{
  // see http://www.thesitewizard.com/archive/validation.shtml
  // for an explanation of this script and how to use it on your
  // own website

  // ** START **
  if (mainfeedbackform.userEmail.value == "") {
    alert( "Please enter your Email Address." );
    mainfeedbackform.userEmail.focus();
    return false ;
  }
  // ** END **
  return true ;
}



	<!--
	//*****************************************
	// Blending Image Slide Show Script- 
	// © Dynamic Drive (www.dynamicdrive.com)
	// For full source code, visit http://www.dynamicdrive.com/
	//*****************************************
	
	//specify interval between slide (in mili seconds)
	var slidespeed=3000
	
	//specify images
	var slideimages=new Array("images/photos/prcsImage1.jpg","images/photos/prcsImage2.jpg","images/photos/prcsImage3.jpg","images/photos/prcsImage4.jpg","images/photos/prcsImage5.jpg")
	
	//specify corresponding links
	var slidelinks=new Array("","","")
	
	var newwindow=1 //open links in new window? 1=yes, 0=no
	
	var imageholder=new Array()
	var ie=document.all
	for (i=0;i<slideimages.length;i++){
	imageholder[i]=new Image()
	imageholder[i].src=slideimages[i]
	}
	
	function gotoshow(){
	if (newwindow)
	window.open(slidelinks[whichlink])
	else
	window.location=slidelinks[whichlink]
	}




function formHandler(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}


function clear_textbox()
{
if (document.searchform.txtSearchWords.value == "Enter Keyword")
document.searchform.txtSearchWords.value = "";
}



function printEmail()
{
  document.write("<a hre");
  document.write("f=\"mailt");
  document.write("o:web");
  document.write("master@ch");
  document.write("arlottecountyfl.com?sub");
  document.write("ject=");
  document.write(location.href);
  document.write("\">contact the webmaster</");
  document.write("a>");
}



function mask(end,middle,start,subject){
var one ='mai';
var two='lto:';
var three='?Subject=';
//start,middle,end,subject;
var putogether= one+two+start+middle+end+three+subject;
document.location.href=eval('"'+putogether+'"');
window.status=putogether;
}
