/*
	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 Menu_show(item) {
	var link = document.getElementById(item.replace('mainNav2', 'a'))

	document.getElementById(item).style.display = "block";
	if (link != null)
		link.className = link.className + ' hover'; 
}

function Menu_hide(item) {
	var link = document.getElementById(item.replace('mainNav2', 'a'))

	document.getElementById(item).style.display = "";
	if (link != null) {
		if (link.className == "hover")
			link.className = "";
		else
			link.className = link.className.replace(" hover", "");
	}
}

function Tab_select(item, number) {
	var count = 1;
	var tab = document.getElementById(item + "1");
	
	document.getElementById(item + "Box").className = "tabBox" + number;
	while (tab != null) {
		if (count == number) {
			tab.className = "on";
			document.getElementById(item + "BoxContent" + count).style.display = "block";
		} else {
			tab.className = "off";
			document.getElementById(item + "BoxContent" + count).style.display = "none";
		}
		
		count = count + 1;
		tab = document.getElementById(item + count);
	}
}

function Field_clear(field, value) {
	if (field.value == value)
		field.value = "";
}

var myWindow;

function openCenteredWindow(url) {
    var width = 343;
    var height = 670;
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width + ",height=" + height + ",status,resizable,left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top;
    myWindow = window.open(url, "subWind", windowFeatures);
}







<!--SCRIPT FOR WP POPUPS-->
function hideDiv(formname) { 
if (document.getElementById) { // DOM3 = IE5, NS6 
document.getElementById(formname).style.visibility = 'hidden'; 
} 
else { 
if (document.layers) { // Netscape 4 
document.hideshow.visibility = 'hidden'; 
} 
else { // IE 4 
document.all.hideshow.style.visibility = 'hidden'; 
} 
} 
}

function showDiv(formname) { 
if (document.getElementById) { // DOM3 = IE5, NS6 
document.getElementById(formname).style.visibility = 'visible'; 
} 
else { 
if (document.layers) { // Netscape 4 
document.hideshow.visibility = 'visible'; 
} 
else { // IE 4 
document.all.hideshow.style.visibility = 'visible'; 
} 
} 
} 

     


