formname.ct.value = "352321536";
formname.lm.value = "65536";
formname.rn.value = "10";
formname.kw.value="";
}
if (formname.myselectvalue.value == "2")
{
url = "/f";
formname.tn.value = "baiduPostSearch";
formname.ct.value = "352321536";
formname.lm.value = "65541";
formname.rn.value = "10";
formname.kw.value="";
}
formname.action = url;
return true;
}
</script>
<script language="JavaScript">
<!--
var need_verify=0;
yzm_str='验证码: <INPUT name=word1 size=10 maxlength=4> 请输入下图中的四位验证码,字母不区分大小写<br><span style="padding-left:60px;"><img id=y_img src="/cgi-bin/genimg?5A44D1F55B5621CFB5B82E49EFC28EFD489D58689AB2395703D407DEFDDD5B6435E22280327A20620D8FB24502D67FF5FE413A454A3EEB81" align="middle"> <span style="vertical-align:bottom;"><a href="javascript:check_img()">看不清?</a></span></span>';
var img_str="/cgi-bin/genimg?5A44D1F55B5621CFB5B82E49EFC28EFD489D58689AB2395703D407DEFDDD5B6435E22280327A20620D8FB24502D67FF5FE413A454A3EEB81";
function check_img(){
var o_img = document.getElementById('y_img');
o_img.src=img_str +"&t="+ Math.random();
document.post.word1.value="";
}
function f_click(obj1,obj2){
var len = getByte(document.post.co.value);//得到输入内容长度
document.post.rs1.value ="";
if(obj1.checked ==true){
obj2.checked = false;
}
else{
obj2.checked=true;
}
if (document.post.rs1.checked == true) {
document.post.rs1.value = 1;
document.getElementById('yzm').innerHTML=yzm_str;
}
else{
if(need_verify==10||len>5000){
document.getElementById('yzm').innerHTML=yzm_str;
}else{
document.getElementById('yzm').innerHTML='';
}
}
}
function f_trim(inputString) {
if (typeof inputString != 'string') { return inputString; }
var retValue = inputString;
var ch = retValue.substring(0, 1);
while (ch == ' ' || ch == '\r' || ch == '\n') {
retValue = retValue.substring(1, retValue.length);
ch = retValue.substring(0, 1);
}
ch = retValue.substring(retValue.length-1, retValue.length);
while (ch == ' ' || ch == '\r' || ch == '\n') {
retValue = retValue.substring(0, retValue.length-1);
ch = retValue.substring(retValue.length-1, retValue.length);
}
while (retValue.indexOf(' ') != -1) {
retValue = retValue.substring(0, retValue.indexOf(' ')) +
retValue.substring(retValue.indexOf(' ')+1, retValue.length);
}
return retValue;