/*
	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()"
*/
var formSubmitted	= 0;
function submitOnce() {
	if(!formSubmitted)
		formSubmitted	= formSubmitted + 1;
	else
		return false;
}

/***** Clear "KEYWORD" from the search box at the top of the page when it's selected *****/
function SearchString_onFocus() {
    var input = document.getElementById("searchString");
    
    if (input.value == "KEYWORD")
        input.value = "";
}

function SideNav_Select(name) {
	var div = document.getElementById("sideNav");
	var anchors = div.getElementsByTagName("a");
	
	for (var count = 0; count < anchors.length; count++)
		if (anchors[count].innerHTML == name) {
			anchors[count].className = "on";
			break;
		}
}
