/*
	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 changePic (objName,picName) {
	objName.src = picName
}

function toggleSection(i){
	if(document.getElementById(i).style.display == "block")
		document.getElementById(i).style.display = "none"
	else
		document.getElementById(i).style.display = "block"
}

function artworkPopup() {
	var winl = (screen.width-650)/2;
	var wint = (screen.height-530)/2;
	window.open("artworkPopup.html","mywindow","scrollbars=no,toolbar=no,menubar=0,resizable=0,width=650,height=530,top=0,left=" & winl);
}

var win= null;
function OpenNewWindow(mypage,w,h,myname){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
settings='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,toolbar=no'
win=window.open(mypage,myname,settings)
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

