/*
	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
}

function listenToAudio(url){
	newWindow = window.open(url,'audioWindow','width=100,height=20,scrollbars=no,resizable=no');
}

function changeClass(i){
	document.getElementById(i).className = "over";
}
function clearClass(i){
	document.getElementById(i).className = "";
}

function toggleSection(i){
	if(document.getElementById(i).style.display == "block")
		document.getElementById(i).style.display = "none"
	else
		document.getElementById(i).style.display = "block"
}

function changeColor(i,c){
	document.getElementById(i).style.background = c;
}

function changeFont(i,f){
	document.getElementById(i).style.fontFamily = f;
}

function changeClassName(i,cn){
	document.getElementById(i).className = cn;
}

