var Config_={BBSConfig_:[
{action:"http://www.ag1768.net/bbs/logging.php?action=login&loginsubmit=yes&referer=index.php",params:{username:"#{u}",password:"#{p}"}},
{action:"http://bbs.0372.cn/member.php?mod=logging&action=login&loginsubmit=yes&referer=forum.php?mod=forumdisplay&fid=884",params:{username:"#{u}",password:"#{p}"}},
{action:"http://bbs.ayinfo.cn/member.php?mod=logging&action=login&loginsubmit=yes&referer=index.php",params:{username:"#{u}",password:"#{p}"}},
{action:"https://passport.baidu.com/?login",params:{u:"http://passport.baidu.com/center",username:"#{u}",password:"#{p}"}},
{action:"http://login.tianya.cn/user/v3_loginsubmit.asp",params:{vwriter:"#{u}",vpassword:"#{p}"}},
{action:"http://passport.renren.com/PLogin.do",params:{email:"#{u}",password:"#{p}",origURL:"http://www.renren.com/Home.do",domain:"renren.com"}},
{action:"http://passport.sohu.com/login.jsp",params:{loginid:"#{u}@chinaren.com",passwd:"#{p}",fl:"1",vr:"1|1",appid:"1005",ru:"http://profile.chinaren.com/urs/setcookie.jsp?burl=http://alumni.chinaren.com/",ct:"1174378209",sg:"84ff7b2e1d8f3dc46c6d17bb83fe72bd"}},
{val:0},{action:"http://web2.qq.com/",type:"link"},{action:"http://qzone.qq.com/index.html",type:"link"},{action:"http://www.kaixin001.com",type:"link"}],UserLinkConfig_:{}}

var BBSLogin={bbsCache:[],sendBBS:function(){var B=G("bbs_username").value,D=G("bbs_passwd").value,F=G("bbs_options"),A=document.bbs,_=F.selectedIndex,I=Config_.BBSConfig_[_],H={u:B,p:D};if(I.val==0){alert("您没有选折论坛！");return}if(trim(H.u)==""){alert("帐户不能为空！");return}if(trim(H.p)==""){alert("密码不能为空！");return}if(this.bbsCache.index!=_){this.bbsCache.index=_;for(var J=0,E=this.bbsCache.length;J<E;J++)A.removeChild(this.bbsCache[J]);this.bbsCache=[]}A.action=I.action;for(J in I.params){var $=Ci(J,format(I.params[J],H));this.bbsCache.push($);A.appendChild($)}G("bbs_username").value="";G("bbs_passwd").value="";A.submit();G("bbs_username").value=B;var C=G("bbs_options").selectedIndex;UserLink.send({level:"1",page:"index",type:"bbs",index:C})},change:function(_){var $=Config_.BBSConfig_[_.selectedIndex];if($.type=="link"){UserLink.send({level:"1",page:"index",type:"bbs",index:_.selectedIndex});window.open($.action);_.selectedIndex=15}}}

var UserLink=(function(){function _(A,C,_){var A=A||window.event,B=A.target||A.srcElement,C=C||{},_=_||Config_.UserLinkConfig_.host;if(typeof Config_.UserLinkConfig_.index!="undefined")for(var D in Config_.UserLinkConfig_.index)if(C[D]==undefined)C[D]=Config_.UserLinkConfig_.index[D];if(B.tagName.toUpperCase()=="A"){C.tit=encodeURIComponent(B.innerHTML);C.url=encodeURIComponent(B.href);$(C,_)}}function $(C,_){var B=new Date().getTime(),_=_||Config_.UserLinkConfig_.host,$="img_"+B,A="";for(var D in C)A+=D+"="+C[D]+"&";window[$]=new Image();window[$].onload=window[$].onerror=function(){window[$]=null};window[$].src=_+"?"+A+"r="+B}return{scope:_,send:$}})()
