	function doResize() {
		/*var height = getClientHeight();
		var height = height - 250;
		if (height < 550) {
			height = 550;
			var bodyLeft = document.getElementById('bodyLeft');
			bodyLeft.style.height = height + "px";
			var bodyRight = document.getElementById('bodyRight');
			bodyRight.style.height = height + "px";
		}*/
		/*
		var bodySGIRight = document.getElementById('bodySGIRight');
		bodySGIRight.style.height = height - 65 + "px";
		*/
	}

	function getClientHeight() {
		var d = document;
		if ( d.clientHeight ) { return d.clientHeight; }
		return Math.max(d.body.clientHeight, d.documentElement.clientHeight);
	}

	function focusLogin() {
		var login = document.getElementById('golf_account');
		if (login != null) {
			login.focus();
		}
	}
	window.onresize = doResize;
	
	
	function changeClass(elementId, newClass) {
		var tab = document.getElementById(elementId);
		tab.className = newClass;
		
	}
	
	function clubSelected() {
		var clubCombo = document.getElementById('memberofclub');
		if( clubCombo.options[clubCombo.selectedIndex].value == 'other' ) {
			//show
			document.getElementById('otherclub').style.visibility = 'visible';
		} else {
			//hide
			document.getElementById('otherclub').style.visibility = 'hidden';
			//erase hidden
			document.getElementById('otherclub').value = '';
		}
	}
	
	function isProSelected() {
		var yesnoCombo = document.getElementById('yesnoCombo');
		if( yesnoCombo.options[yesnoCombo.selectedIndex].value == '1' ) {
			//show pro combo and other
			var prosCombo = document.getElementById('prosCombo');
			prosCombo.style.visibility = 'visible';
			
			if(prosCombo.options[prosCombo.selectedIndex].value == 'other') {
				document.getElementById('otherPro').style.visibility = 'visible';
			}
			
			// hide other media
			document.getElementById('othermediaCombolbl').style.visibility = 'hidden';
			document.getElementById('othermediaCombo').style.visibility = 'hidden';
			//erase hidden
			document.getElementById('othermediaCombo').options[0].selected = true;
			
		} else if( yesnoCombo.options[yesnoCombo.selectedIndex].value == '0' ) {
			//show other media
			document.getElementById('othermediaCombolbl').style.visibility = 'visible';
			document.getElementById('othermediaCombo').style.visibility = 'visible';
			
			//hide pro combo and other + erase hidden
			var prosCombo = document.getElementById('prosCombo');
			prosCombo.style.visibility = 'hidden';
			prosCombo.options[0].selected = true;
			document.getElementById('otherPro').style.visibility = 'hidden';
			document.getElementById('otherPro').value = '';
		} else {
			//hide
			document.getElementById('prosCombo').style.visibility = 'hidden';
			document.getElementById('otherPro').style.visibility = 'hidden';
			document.getElementById('othermediaCombolbl').style.visibility = 'hidden';
			document.getElementById('othermediaCombo').style.visibility = 'hidden';
			
			//erase hidden
			document.getElementById('prosCombo').options[0].selected = true;
			document.getElementById('otherPro').value = '';
			document.getElementById('othermediaCombo').options[0].selected = true;
		}
	}
	
	//request pro show/hide other input
	function proSelected() {
		var prosCombo = document.getElementById('prosCombo');
		if( prosCombo.options[prosCombo.selectedIndex].value == 'other' ) {
			//show
			document.getElementById('otherPro').style.visibility = 'visible';
		} else {
			//hide
			document.getElementById('otherPro').style.visibility = 'hidden';
			//erase hidden
			document.getElementById('otherPro').value = '';
		}
	}
	
	function HideDIV(d) { document.getElementById(d).style.display = "none"; }
	function DisplayDIV(d) { document.getElementById(d).style.display = "block"; }
	
	function classStyleOver(id) { document.getElementById(id).setAttribute("class", id + " " + id + "-over"); }
	function classStyleOut(id) { document.getElementById(id).setAttribute("class", id); }
