function GetRenZhengHtml(){ var str,id; id = GetRandomChars(); str = ""; str += " * [认证码有问题][为什么使用验证码]"; return str; } function ReIntiRenZheng(thisImg){ thisImg.src = "/renzcode/loading.bmp"; var renzid,id; renzid = document.getElementById("renzid"); id = GetRandomChars(); renzid.value = id; thisImg.src = "/renzcode/img.asp?id="+id; } function GetRandomChars(){ var id = Math.random().toString(16); var id1 = Math.random().toString(16); //alert(id + " " + id1); return id.substr(2,8)+id1.substr(2,8); } document.write ("认证码: ") //把本页URL传到登陆控件 document.loginPage.RedirectUrl.value = location.href; document.PostTopic2.returnURL.value = location.href;