/*
	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;
		
	return true;
}

/***** 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 Email_Tag_Write(open, close, c, b, a) {
	document.write(open + a + "@" + b + "." + c + close);
}

function Email_Write(c, b, a) {
	document.write(a + "@" + b + "." + c);
}

function Email_Get(c, b, a) {
	return (a + "@" + b + "." + c);
}

function Select_Url(id) {
	var item = document.getElementById(id);
	item = item[item.selectedIndex].value;
	
	if (item != "")
		document.location.href = item;
}
