var uniqueID;function ClickBtnOnEnter(c,d,a,b){if(!c){var c=window.event}if(c.keyCode){code=c.keyCode}else{if(c.which){code=c.which}}if(code==13){c.cancelBubble=true;c.returnValue=false;uniqueID=b;button=document.getElementById(a);if(d.value!=""){if(a.indexOf("txtEmail")>0){SaveReferrerCookie()}if(document.createEventObject){button.click()}else{button.addEventListener("onclick",Perform(),true);button.onclick()}}}}function FillLoginText(b,a){var c=document.getElementById(a);if(c.value==""){c.value=b}}function ClearLoginText(b,a){var c=document.getElementById(a);if(c.value==b){c.value=""}}function ClearPassText(c,d){var b=document.getElementById(c);var a=document.getElementById(d);$(b).css("display","none");$(a).css("display","block");$(a).focus()}function FillPassText(c,d){var b=document.getElementById(c);var a=document.getElementById(d);if($(b).val()==""){$(b).css("display","none");$(a).css("display","block")}}function Perform(){__doPostBack(uniqueID,"")}function SaveReferrerCookie(){var a="_init_";try{if(parent.Shadowbox&&parent.location.href!=document.location.href){a=parent.location.href}}catch(b){a=""}if(a!="_init_"){document.cookie="cds_newclubmember_referrer="+a+";path=/"}}function ParseContentForReferrer(a){$("a#linkVisit").attr("href",a)};
