function setFocus(){if(document.gollem_login.username){document.gollem_login.username.focus()}}function gollem_reload(){var a=reload_url+document.gollem_login.backend_key[document.gollem_login.backend_key.selectedIndex].value;if(document.gollem_login.url&&document.gollem_login.url.value){a+="&url="+document.gollem_login.url.value}window.location=a}function submit_login(){if(document.gollem_login.username&&document.gollem_login.username.value==""){alert(GollemText.login_username);document.gollem_login.username.focus();return false}else{if(document.gollem_login.password&&document.gollem_login.password.value==""){alert(GollemText.login_password);document.gollem_login.password.focus();return false}else{document.gollem_login.loginButton.disabled=true;if(ie_clientcaps){try{document.gollem_login.ie_version.value=objCCaps.getComponentVersion("{89820200-ECBD-11CF-8B85-00AA005B4383}","componentid")}catch(a){}}document.gollem_login.submit();return true}}}function selectLang(){var a="login.php?new_lang="+document.gollem_login.new_lang[document.gollem_login.new_lang.selectedIndex].value;if(lang_url!==null){a+="&url="+lang_url}self.location=a}function removeHash(a){if(a==null||a==undefined){return null}else{if(a.length&&a.charAt(0)=="#"){if(a.length==1){return""}else{return a.substring(1)}}}return a}Event.observe(window,"load",function(){if(gollem_auth&&parent.frames.horde_main){if(nomenu){parent.location=self.location}else{document.gollem_login.target="_parent"}}if(location.hash){$("anchor_string").value=removeHash(location.hash)}});