
function ForgotPassword() { 
	var popUpWin = window.open('forgotpassword.aspx','UDD','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=375,height=300,top=150,left=150');
	if (window.focus) { 
		popUpWin.focus();	
	}
}

function imgOn(imgName) {
        if (document.images) {
        //    document[imgName].src = eval(imgName + "on.src");
        }
}

//FROM PLAYER/MAINMENU.APX
function change(theImage) { 
			if (document.images){
						document.TEXT.src = theImage
			} 
		}

		function setMessage(msg)  
		{
			window.status = msg;
			return true;
		}
		
		function LoadForm()
		{
			var textbox = document.getElementById("txtFirstName");
			if ((textbox != null) && (!textbox.readOnly)) {
				document.myaccount.txtFirstName.focus();
				EnableStateField();
			}
		}

		function EnableStateField()
		{
		    if (!document.myaccount.ddlCountry.readOnly)
		    {
			    var selIndex = document.myaccount.ddlCountry.selectedIndex;
			    var selCountry = document.myaccount.ddlCountry.options[selIndex].text;
			    if ((selCountry == "United States") || (selCountry == "Canada")) {
				    document.all.divStateDLL.style.display = "inline";
				    document.all.divRegionTxt.style.display = "none";
			    } else {
				    document.all.divStateDLL.style.display = "none";
				    document.all.divRegionTxt.style.display = "inline";
			    }
			}
		}
		//####
		
		// FROM PLAYER/CERTIFICATION/CERTTEST.ASPX
		function LitSubmit(param, val)
		{
			var hiddenField = document.getElementById(param);
			hiddenField.value = val;
			document.certtest.submit();
		}
		//####
		
		// FROM RATING_OVERALL.ASPX
		function SetView(whichview)
		{
			document.rating_overall.inpView.value=whichview;			
			document.rating_overall.submit();
		}
		
		function SetTournamentFormat(ctrl) {
			var Format = ctrl.selectedIndex + 1;
			document.rating_overall.inpTournamentFormat.value=Format;
			document.rating_overall.submit();
			//document.location.href = "rating_overall.aspx?t=" + type;
		}
		function SetCountry(ctrl)
		{
			document.rating_overall.inpCurCountry.value=ctrl.value;
			document.rating_overall.submit();		
		}
		//####

		function showMe(theURL,winName,theWid,theHgt) {
			newWindow = open(theURL,winName,"toolbar=no,location=0,directories=no,status=yes,menubar=1,scrollbars=no,resizable=1,copyhistory=0,width=" + theWid + ",height=" + theHgt);
		}

		function showMeToo(theURL,winName,theWid,theHgt) {
			newWindow = open(theURL,winName,"toolbar=yes,location=1,directories=no,status=yes,menubar=1,scrollbars=1,resizable=1,copyhistory=0,width=" + theWid + ",height=" + theHgt);
		}
		
		
		
