/*
	Submit Once
	
	Add the following onclick event to a button to only allow the first pressing of the button
	to send a request to the server.
		onclick="return submitOnce()"
	If your using a cfform you should add the following line to the form itself instead.
		onsubmit="return submitOnce()"
*/

formSubmitted	= 0
function submitOnce() {
	if(!formSubmitted)
		formSubmitted	= formSubmitted + 1
	else
		return false
}





<!---rollovers------>
function changeImages() {
	if (document.images) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

startList = function() {
	var navArray = new Array("mainNav");
	for (x=0; x<1; x++) {
		if (document.getElementById) {
			navRoot = document.getElementById(navArray[x]);
			for (i=0; i<navRoot.childNodes.length; i++) {
				node = navRoot.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover = function() {
						if (this.getElementsByTagName("a")[0].className != "on")
							this.getElementsByTagName("a")[0].className = "over";
						this.className+="over"; 
					}

					node.onmouseout=function() {
						if (this.getElementsByTagName("a")[0].className != "on")
							this.getElementsByTagName("a")[0].className = "";
						this.className=this.className.replace("over", "");
					}
					
				}
			}
		}
	}
}
window.onload=startList;



function preloadImages() {
   if (document.images) {
      for (var i = 0; i < preloadImages.arguments.length; i++) {
         (new Image()).src = preloadImages.arguments[i];
      }
   }
}

preloadImages("images/button-search2.gif");


function clickclear(thisfield, defaulttext) {
	if (thisfield.value == defaulttext) {
		thisfield.value = "";
	}
}

function clickrecall(thisfield, defaulttext) {
	if (thisfield.value == "") {
		thisfield.value = defaulttext;
	}
}

