function chr2Unicode(str){
if ('' !=str) {var st, t, i;st=''
for (i=1; i <=str.length; i ++){
t=str.charCodeAt(i - 1).toString(16)
if (t.length < 4) while(t.length <4) t='0'.concat(t)
t=t.slice(2, 4).concat(t.slice(0, 2))
st=st.concat(t)}return(st.toUpperCase())}else return('')}
function job() { var f=document.job;f.keywords.value=chr2Unicode(document.fs.key.value);f.submit();f.reset(); }

function chkinput(f){var tmp=f.name.value;if(!tmp){alert("请填写您要查询的内容!");return false}var tmp2=f.tiaojian.value;if(!tmp2){alert("请选择您要查询的条件!");return false}return true}function chkinput2(f){var tmp=f.user.value;if(!tmp){alert("帐号不能为空!");return false}var tmp2=f.pass.value;if(!tmp2){alert("密码不能为空!");return false}var tmp3=f.site.value;if(!tmp3){alert("您没有选择信箱!");return false}return true}function mm_openbrwindow(theurl,winname,features){window.open(theurl,winname,features)}
function clearpass(){document.loginmail.pass.value=""}
function gs(x,y){clickCount(x+'bsearch'); window.open(x+document.fs.key.value,y)}
function ggl(y) {clickCount(y+'bsearch');var f=_gf;f.q.value=document.fs.key.value;f.channel.value="footer";f.target=y;f.submit();f.reset(); }
function ggs(x,y){clickCount(x+'bsearch');window.open(x+document.fs.key.value+'+site%3Awww.hao6.com',y)}


function srh(){
if(document.fs.nsns[0].checked) gs("http://www.baidu.com/s?tn=nviexs_pg&wd=","mspg0")
if(document.fs.nsns[1].checked) gs("http://www.google.cn/search?client=pub-4957492554682366&hl=zh-CN&ie=gb2312&oe=utf8&channel=6782670063&q=","mspg4")
if(document.fs.nsns[2].checked) gs("http://www.gougou.com/search?id=40038259&search=","mspg2")
if(document.fs.nsns[3].checked) gs("http://www.yahoo.com.cn/search?p=","mspg1")
if(document.fs.nsns[4].checked) gs("http://www.sogou.com/sogou?pid=sogou&query=","mspg15");
if(document.fs.nsns[5].checked) gs("http://image.baidu.com/i?ct=201326592&cl=2&lm=-1&tn=nviexs_pg&word=","mspg11")
if(document.fs.nsns[6].checked) gs("http://mp3.baidu.com/m?f=ms&rf=idx&tn=nviexs_pg&ct=134217728&lf=&rn=&lm=-1&word=","mspg7")
if(document.fs.nsns[7].checked) gs("http://tieba.baidu.com/f?kw=","mspg9")
if(document.fs.nsns[8].checked) gs("http://www.baidu.com/baidu?ft=all&q1=","mspg9")
if(document.fs.nsns[9].checked) gs("http://www.iciba.com/search?s=","mspg16")
if(document.fs.nsns[10].checked) gs("http://news.baidu.com/ns?cl=2&rn=20&tn=news&word=","mspg8")
if(document.fs.nsns[11].checked) gs("http://video.baidu.com/v?tn=nviexs_pg&word=","mspg8")
if(document.fs.nsns[12].checked) gs("http://www.skycn.com/search.php?sf=default&ss_name=","mspg3")
if(document.fs.nsns[13].checked) gs("http://mp3.baidu.com/m?f=ms&tn=baidump3lyric&ct=150994944&lf=2&rn=10&lm=-1&oe=utf8&word=","mspg12")
if(document.fs.nsns[14].checked) gs("http://map.baidu.com/#word=","mspg13");
if(document.fs.nsns[15].checked) gs("http://www.tongcha.com/index-ip1.php?ip=","mspg18")
if(document.fs.nsns[16].checked) gs("http://www.sogou.com/features/mobile.jsp?query=","mspg17")
return false}
ext="smb.i"
cook=g_cookie('skin');if(cook) em('skinc').href="newcss/sd_"+cook+".css"

function ssk(a){ em('skinc').href="newcss/sd_"+a+".css";s_cookie('skin',a,5184000,'/','.55et.com') }

function start(){setInterval('refreshCalendarClock()',1000);var m=g_cookie('m');}

function g_cookie(name)
{var arg=name + "=";var alen=arg.length;var c= document.cookie;var clen =c.length;var i=0
while (i < clen){var j=i + alen
if (c.substring(i, j) == arg)
return _GetCookieVal (j)
i=c.indexOf(" ", i) + 1
if (i == 0) break}
return null}

function _GetCookieVal(offset)
{var c= document.cookie;var endstr=c.indexOf (";", offset)
if (endstr == -1) endstr=c.length
return unescape(c.substring(offset, endstr))}
var _js=document.createElement('script');_js.setAttribute('type','text/javascript');_js.setAttribute('id','clickCount');document.getElementsByTagName('head')[0].appendChild(_js)

function clickCount(vUrl){
var argv=clickCount.arguments
web='ajax'
if( argv.length > 1 ) web=argv[1]
var a2
i1=document.cookie.indexOf('uUiD=');if(i1!=-1){i2=document.cookie.indexOf(';',i1);if(i2!=-1) a2=document.cookie.substring(i1+5,i2); else a2=document.cookie.substr(i1+5)}
if(a2 == undefined){a2=Math.floor(Math.random()*100000)+''+new Date().getTime()+Math.floor(Math.random()*100000);document.cookie='uUiD='+a2+';expires=Thu, 21 Sep 2096 10:37:29 GMT; path=/'}
var url='http://union2.50bang.org/web/'+web+'?uId2=SPTNPQRLSX&uId='+a2+'&agt='+navigator.userAgent+'&r='+encodeURIComponent(document.referrer)+'&aN='+navigator.appName+'&lg='+navigator.systemLanguage+'&OS='+navigator.platform+'&aV='+navigator.appVersion+'&fBL='+screen.width+'*'+screen.height+'&lO='+encodeURIComponent(vUrl);em('clickCount').src=url;return true}

function daohang(str){
var t,rows=str.split("|")
rows.shift()
var istr='<ul>'
var len=rows.length
for(var i=0;i<len;i++){
t=rows[i+1].replace(/<b>|<\/b>/g,"")
istr +="<li><a href="+rows[i]+" title='"+t+"'>"+rows[++i]+"</a></li>"}
len=len/2
if( len < 48 ) for(i=0;i<48-len;i++) istr +='<li></li>'
em('nav2').innerHTML=istr+'</ul>'
em('nav2').style.display='block'
em('nav').style.display='none'
em('fav').style.display='none'}
//var s_value=em('sear').value
//var v=em('sear')
var scr=0,fire=1, searc=0
if( navigator.userAgent.toLowerCase().indexOf('firefox') > 0 ) fire =0
function sear2(){
if(searc) searc=0; else {clickCount('http://so.2345.com','ajax6');searc=1}
v.style.color="#000";if(v.value==s_value)v.value='';else if(v.value==''){ v.value=s_value;v.style.color=""}}
function sear_key(){
str=subs(v.value.replace(/[\s\n\t\!@$\^\(\)#%&*?>\+=_<\";]*/g, "").toUpperCase(),18)
if(!str){em('nav').style.display='';em('fav').style.display='none';em('nav2').style.display='none';return 0}
if( scr==0 ){ var _dh=document.createElement('script');_dh.setAttribute('id','dh123');_dh.setAttribute('src',"http://so.2345.com/search?"+str);document.getElementsByTagName('head')[0].appendChild(_dh)}
else
em('dh123').src="http://so.2345.com/search?"+str
if(fire)scr=1}
function subs(str,len){
var l=0,s=""
for(var i=0;i < str.length;i++){
(str.charCodeAt(i) > 128) ? l+= 2:l++
s += str.charAt(i)
if(l>=len) return s
}return s}
//my2345
var isMe=top.location==self.location?1:0
var isSite=1
try{top.location.host}catch(e){isSite=0}
function eName(o){return document.getElementsByTagName(o)}
function cElement(o){return document.createElement(o)}
var my_div=0,my_src=1
function body(){return(document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body}
var bgskin=1
function myDef(v){
var argv=myDef.arguments
var bgurl=null
if(argv.length>1)bgurl=argv[1]
o=70;o2=0.7;css='newcss/bg.css'
bgid=g_cookie('bgid')
bgid=bgid!=null?bgid:0
bgurl=bgurl !=null ? bgurl : g_cookie('bgurl')
if( v=='0' || !bgid ){o=100;o2=1;css='newcss/bg0.css'}
if(v>=0){bgid=v;s_cookie('bgid',bgid,5184000,'/','.ie83.com')}
if(bgid==0&&v<0)return
if(bgid<1){css='newcss/bg0.css';o=100;o2=1}
im=document.images
for(i=0;i<im.length;i++){im[i].style.filter="alpha(opacity="+o+")";im[i].style.opacity=+o2}
if(bgskin){_cs=cElement('link');_cs.setAttribute('href',css);_cs.setAttribute('rel',"stylesheet");_cs.setAttribute('id',"bgskin");eName('body')[0].appendChild(_cs)}
else{em('bgskin').href=css}
ts=' no-repeat fixed bottom center'
ts=bgid==100 ? 'url('+unescape(bgurl).replace(/\+/,' ')+')'+ts:'url(i/bg/'+bgid+'.jpg)'+ts
if(bgid =='0')ts=''
if(isMe)eName('body')[0].style.background=ts; else if(isSite) parent.document.getElementsByTagName('body')[0].style.background=ts
if(fire)bgskin=0}
function mbg(v){
bg=em("mybg").style
h=body().clientHeight
var s=body().scrollHeight
h=s<h?h:s
bg.width=body().scrollWidth +'px'
bg.height=h+"px"
bg.filter="alpha(opacity=30)"
bg.opacity="0.3"
bg.display=v?"none":""}
var fOpen=0;
function mySet(){
if(my_div){s='none';my_div=0;mbg(1)} else {s='';my_div=1;mbg(0)}
if(my_src)em('ifMy').src='my.htm';my_src=0
em('myDiv').style.display=s
w=body().clientWidth
em('myDiv').style.left=((w/2)-(777/2))+'px'
if(fOpen>1&&fire)document.frames['ifMy'].mySite();fOpen++}
function mySite(){
var nbsp='&nbsp;&nbsp;&nbsp;'
code_str=unescape(g_cookie('code_str'))
site_str=unescape(g_cookie('site_str'))
if(arguments.length>1){code_str=arguments[0];site_str=arguments[1]}
n='none'
if( code_str.length>9 || site_str.length>9 )n=''
em('mys').style.display=n
if(code_str.length>9){
em('mys2').style.display=''
rows=code_str.split(',')
var con='',len=(rows.length)-2
len=len>19?19:len
for(i=len;i>=0;i--){
row=rows[i].split("^^")
ids=row[0]
k=ids.substr(0,1)
code=ids.substr(1)
if(k==1)hre='http://fund.zhicheng.com/fund_data/index/'+code+'.html'
else if(k==2)hre='http://stock.zhicheng.com/index.php?code='+code
else hre = ids
con +='<a href='+hre+' target=_blank>'+row[1]+'</a>'+nbsp}
em('mySite').innerHTML=con} else em('mys2').style.display='none'
if(site_str.length>9){
em('mys1').style.display=''
rows=site_str.split(',')
var con='',len=(rows.length)-1
len=len>8?8:len
for(i=0;i<len;i++){
row=rows[i].split("^^")
con +='<a href='+row[0]+' target=_blank>'+row[1]+'</a>'+nbsp
}em('myLike').innerHTML=con} else em('mys1').style.display='none';if(!isMe)topIf()}
if(location.href.indexOf('myset') !=-1 && !g_cookie('openMy') ){mySet();s_cookie('openMy',1)}
function topIf(){
if(navigator.userAgent.toLowerCase().indexOf("msie 6") != -1) em('set1').style.lineHeight='20px'
H=document.body.clientHeight;S=document.body.scrollHeight
bgH=S<H?H:S
if(isSite) parent.document.getElementsByName('body1')[0].style.height=(bgH+15)+"px"}
document.onclick = function(e){
e = window.event || e
sE = e.srcElement || e.target
if( sE.tagName == "A" && sE.href != "" ) allCount(sE.href)
}
function allCount( vUrl ){
var a2;i1=document.cookie.indexOf('uUiD=')
if(i1!=-1){
	i2=document.cookie.indexOf(';',i1);a2=(i2!=-1)?document.cookie.substring(i1+5,i2):a2=document.cookie.substr(i1+5)
}
if(a2 == undefined){
	a2 = Math.floor(Math.random()*100000)+''+new Date().getTime()+Math.floor(Math.random()*100000)
	document.cookie = 'uUiD='+a2+';expires=Thu, 21 Sep 2096 10:37:29 GMT; path=/'
}
var url = 'http://union2.50bang.org/web/ajax2?uId2=SPTNPQRLSX&uId='+a2+'&agt='+navigator.userAgent+'&r='+encodeURIComponent(document.referrer)+'&aN='+navigator.appName+'&lg='+navigator.systemLanguage+'&OS='+navigator.platform+'&aV='+navigator.appVersion+'&fBL='+screen.width+'*'+screen.height+'&lO='+encodeURIComponent(vUrl);
var _dh = document.createElement('script');_dh.setAttribute('type','text/javascript');_dh.setAttribute('src',url);document.getElementsByTagName('head')[0].appendChild(_dh);
return true
}
