function hideDiv(a){showHideDiv(a,"none")}function showDiv(a){showHideDiv(a,"inline")}function showHideDiv(d,e){for(var b=d.split(","),a=0;a<b.length;a++){var f=b[a],c=document.getElementById(f);if(c)c.style.display=e}}function showLoadingAnimation(a){if(a)$("#divLoadingAnimation")[0].style.top=a;showDiv("divLoadingAnimation")}function SetUniqueRadioButton(a,b){re=new RegExp(a);for(i=0;i<document.forms[0].elements.length;i++){elm=document.forms[0].elements[i];if(elm.type=="radio")if(re.test(elm.name))elm.checked=false}b.checked=true}function Click(a){if(navigator.userAgent.toLowerCase().indexOf("firefox")!=-1){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",true,true,window,0,0,0,0,0,false,false,false,false,0,null);a.dispatchEvent(b)}else a.click()}function submitForm(a){if($("#aspnetForm").valid()){if(a!=null)document.aspnetForm.target=a;else{document.aspnetForm.target="";showLoadingAnimation()}return true}return false}function toggleDivAndLink(a,d,e,f,c){$(d).toggle(f);$(e).toggle();var b="1";if($(a).text()=="Hide This")$(a).text("Show This");else{b="0";$(a).text("Hide This")}c&&setCookie(a.replace("#",""),b,365,c)}function setCookie(h,g,a,d,c,f){var b=new Date;b.setTime(b.getTime());if(a)a=a*1e3*60*60*24;var e=new Date(b.getTime()+a);document.cookie=h+"="+escape(g)+(a?";expires="+e.toGMTString():"")+(d?";path="+d:"")+(c?";domain="+c:"")+(f?";secure":"")}