function showCaptchaPopup(A){var B={success:function(E){var C=document.getElementById("captcha");var D=C;while(D.hasChildNodes()){var F=D.firstChild;D.removeChild(F)}C.innerHTML=E.responseText;document.getElementById("security_code_msg").style.display="none";launchPopUp("captcha_div",false)},failure:function(C){}};if(A==null){A=0}YAHOO.util.Connect.asyncRequest("GET",base_url+"index.php/captcha/index/"+A,B)}function refreshCaptcha(A){var B={success:function(E){var C=document.getElementById("captcha");var D=C;while(D.hasChildNodes()){var F=D.firstChild;D.removeChild(F)}C.innerHTML=E.responseText;document.getElementById("security_code_msg").style.display="none"}};if(A==null){A=0}YAHOO.util.Connect.asyncRequest("GET",base_url+"index.php/captcha/index/"+A,B)}function validateCaptcha(is_https){var callback={success:function(o){},failure:function(o){},upload:function(o){if(o.responseText=="yes"){var callback=document.getElementById("captcha_callback").innerHTML;eval(callback)}else{var captcha=document.getElementById("captcha");var content=captcha;while(content.hasChildNodes()){var child=content.firstChild;content.removeChild(child)}captcha.innerHTML=o.responseText;document.getElementById("security_code_msg").style.display=""}}};if(is_https==null){is_https=0}YAHOO.util.Connect.setForm("captcha_form",true);YAHOO.util.Connect.asyncRequest("POST",base_url+"index.php/captcha/validate/"+is_https,callback)}function prelogin_ShowCaptchaPopup(){var B=base_url+"index.php/login/islogin";var A={success:function(C){if(C.responseText=="yes"){showCaptchaPopup()}else{login_window()}},failure:function(C){login_window()}};YAHOO.util.Connect.asyncRequest("GET",B,A)}
