/////״̬ʾ
var msg = "ӭѯ! " ;
var interval = 120
var spacelen = 120;
var space10=" ";
var seq=0;
function Helpor_net() {
len = msg.length;
window.status = msg.substring(0, seq+1);
seq++;
if ( seq >= len ) {
seq = 0;
window.status = '';
window.setTimeout("Helpor_net();", interval );
}
else
window.setTimeout("Helpor_net();", interval );
}
Helpor_net();

/////
function cntime()
{
today=new Date();
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i] }
var d=new initArray(" ","һ ","ڶ "," "," "," "," ");
document.write(today.getYear(),"",today.getMonth()+1,"",today.getDate()," ",d[today.getDay()+1] ); 
now = new Date(),hour = now.getHours()
if(hour < 6){document.write("賿ãӭѯ!")}
else if (hour < 9){document.write("Ϻãӭѯ!")}
else if (hour < 12){document.write("ãӭѯ!")}
else if (hour < 14){document.write("ãӭѯ!")}
else if (hour < 19){document.write("ãӭѯ!")}
else if (hour < 22){document.write("Ϻãӭѯ!")}
else {document.write("ҹãӭѯ!")}
}

/////titleʾ
tPopWait=10;
tPopShow=5000;
showPopStep=40;
popOpacity=100;
sPop=null;
curShow=null;
tFadeOut=null;
tFadeIn=null;
tFadeWaiting=null;
document.write("<style type='text/css'id='defaultPopStyle'>");
document.write(".cPopText { line-height: 15px; font-family: ;background-color: #9DCC63; color:#013E02;border:1px solid #013E02; ; padding-right: 4px; padding-left: 4px; height: 15px; padding-top: 1px; padding-bottom: 0px; filter: Alpha(Opacity=0)}");
document.write("</style>");
document.write("<div id='dypopLayer' style='position:absolute;z-index:1000;'></div>");
function showPopupText(){
var o=event.srcElement;
MouseX=event.x;
MouseY=event.y;
if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt=""};
if(o.title!=null && o.title!=""){o.dypop=o.title;o.title=""};
if(o.dypop!=sPop) {
sPop=o.dypop;
clearTimeout(curShow);
clearTimeout(tFadeOut);
clearTimeout(tFadeIn);
clearTimeout(tFadeWaiting);
if(sPop==null || sPop=="")
{
dypopLayer.innerHTML="";
dypopLayer.style.filter="Alpha()";
dypopLayer.filters.Alpha.opacity=0;
}
else {
if(o.dyclass!=null) popStyle=o.dyclass 
else popStyle="cPopText";
curShow=setTimeout("showIt()",tPopWait);
}
}
}
function showIt(){
dypopLayer.className=popStyle;
dypopLayer.innerHTML=sPop;
popWidth=dypopLayer.clientWidth;
popHeight=dypopLayer.clientHeight;
if(MouseX+12+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24
else popLeftAdjust=0;
if(MouseY+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24
else popTopAdjust=0;
dypopLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust;
dypopLayer.style.top=MouseY+12+document.body.scrollTop+popTopAdjust;
dypopLayer.style.filter="Alpha(Opacity=0)";
fadeOut();
}
function fadeOut(){
if(dypopLayer.filters.Alpha.opacity<popOpacity) {
dypopLayer.filters.Alpha.opacity+=showPopStep;
tFadeOut=setTimeout("fadeOut()",1);
}
else {
dypopLayer.filters.Alpha.opacity=popOpacity;
tFadeWaiting=setTimeout("fadeIn()",tPopShow);
}
}
function fadeIn(){
if(dypopLayer.filters.Alpha.opacity>0) {
dypopLayer.filters.Alpha.opacity-=1;
tFadeIn=setTimeout("fadeIn()",1);
}
}
document.onmouseover=showPopupText;


/////ӡָ
function Do_Article_Print(){
var Article_head = "<html><head><title>"+document.title+"</title><body>";
var Article_Nav = "<center><div style='text-align:right;width:650px;padding:10px;'><a href='javascript:window.print();'>ӡ</a><a href='javascript:history.back();'></a><a href='javascript:window.close()'>رմ</a></div></center>";
var Article_title = "<center><div style='text-align:center;width:650px;padding:10px;font:bold'><div id='Article_title'>"+document.getElementById('Article_title').innerHTML+"</div></div></center>";
var Article_content = "<center><div style='text-align:Left;width:650px;padding:10px;line-height:100%'>"+document.getElementById('Article_content').innerHTML+"</div></center>";
var Article_Print_str =Article_head+Article_Nav+Article_title+Article_content+"</body></html>";
document.write(Article_Print_str);
document.close();
}

/////ߴ任
var status0='';
var curfontsize=10;
var curlineheight=18;
function Article_contentA(){
if(curfontsize>8){
 document.getElementById('Article_content').style.fontSize=(--curfontsize)+'pt';
document.getElementById('Article_content').style.lineHeight=(--curlineheight)+'pt';
}
}
function Article_contentB(){
if(curfontsize<64){
 document.getElementById('Article_content').style.fontSize=(++curfontsize)+'pt';
document.getElementById('Article_content').style.lineHeight=(++curlineheight)+'pt';
}
}

/////ʼƼ
function recommendtofriend()
{
var SubjectLine='ѴӡѯƼһʵַ';
var BodyText=': '+top.document.title+'%0a'+'ַ: '+top.location.href+'%0a'+'%0a'+'վַ:http://www.touziyimin.com.cn';

var Message='<A HREF="mailto:?SUBJECT='+escape(SubjectLine)+'&BODY='+escape(BodyText)+'" OnMouseOver="status=\'ѯӭ\'; return true;" TITLE="ҳĺ">Ƽ<\/A>';

var MessageIE='<A HREF="mailto:?SUBJECT='+(SubjectLine)+'&BODY='+(BodyText)+'" OnMouseOver="status=\'ѯӭ\'; return true;" TITLE="ҳĺ">Ƽ<\/A>';

if(document.all) { document.write(MessageIE); }

else { document.write(Message); }
}

/////ͻ˱֤ͨ
function CheckForm(oForm)
{
var els = oForm.elements;
for(var i=0;i<els.length;i++)
{
if(els[i].check)
{
var sReg = els[i].check;
var sVal = GetValue(els[i]);
var reg = new RegExp(sReg,"i");
if(!reg.test(sVal))
{
alert(els[i].warning);
GoBack(els[i])
return false;
}
}
}
}
function GetValue(el)
{
var sType = el.type;
switch(sType)
{
case "text":
case "hidden":
case "password":
case "file":
case "textarea": return el.value;
case "checkbox":
case "radio": return GetValueChoose(el);
case "select-one":
case "select-multiple": return GetValueSel(el);
}
function GetValueChoose(el)
{
var sValue = "";
var tmpels = document.getElementsByName(el.name);
for(var i=0;i<tmpels.length;i++)
{
if(tmpels[i].checked)
{
sValue += "0";
}
}
return sValue;
}
function GetValueSel(el)
{
var sValue = "";
for(var i=0;i<el.options.length;i++)
{
if(el.options[i].selected && el.options[i].value!="")
{
sValue += "0";
}
}
return sValue;
}
}
function GoBack(el)
{
var sType = el.type;
switch(sType)
{
case "text":
case "hidden":
case "password":
case "file":
case "textarea": el.focus();var rng = el.createTextRange(); rng.collapse(false); rng.select();
case "checkbox":
case "radio": var els = document.getElementsByName(el.name);els[0].focus();
case "select-one":
case "select-multiple":el.focus();
}
}

/////
function makevisible(cur,which){
if (which==0)
cur.filters.alpha.opacity=100
else
cur.filters.alpha.opacity=60
}

/////ȫѡ
function mm()
{
var a = document.getElementsByTagName("input");
if(a[0].checked==true){
for (var i=0; i<a.length; i++)
if (a[i].type == "checkbox") a[i].checked = false;
}
else
{
for (var i=0; i<a.length; i++)
if (a[i].type == "checkbox") a[i].checked = true;
}
}

/////ת
function bodytojt(x)
{
var bodys=document.getElementById(x);
bodys.innerHTML=Simplized(bodys.innerHTML);
}
function bodytoft(x)
{
var bodys=document.getElementById(x);
bodys.innerHTML=Traditionalized(bodys.innerHTML);
}
function JTPYStr()
{
return '°ðİưаѰҰӰ԰հڰܰްʱ̱ͱαϱбձֱױڱ۱ܱݱޱ߱βϲвѲҲӲԲղֲײ޲³ĳųƳͳγϳҳճٳ۳ܳݳ´ôĴŴƴǴȴɴʴʹϴдѴӴԴմִ״شٴڴ۴ܴݴŵƵ˵εϵеӵԵݵ޵ߵ¶öĶƶͶ϶жѶҶӶԶնֶ׶ضٶڶ۶ܶݶ޶߶÷ķɷϷзѷ׷طܷ߷¸øĸŸƸǸȸɸϸиѸҸӸԸոָٸڸݸ޸ƹ˹йع۹ܹݹ߹ҺԺպֺ׺غٺƻǻȻɻѻӻԻջֻ׻ٻڻۻݻ޻߻¼üƼǼȼʼ̼ͼϼмԼռּؼټڼۼݼ޼߼½ýĽŽȽɽʽ˽̽ͽνϽѽҽս׽ؽھǾȾɾԾپݾܽݽ޽߽Ŀſǿȿοѿҿٿ¡¢£¤¥¦§¨©ª«¬­®¯°±²³¸»¼½¾¿áèêíóôùûýþġĢıĶķšŢťŦŧŨũűŲųŴŵŶŷŸŹźŻżŽйɽƭƮƵƶƸƻƼƾƿǣǤǥǦǨǩǫǬǭǮǯǱǲǳǴǵǶǸǹǺǻǼǽǾǿȡȢȣȤȧȨȩȬȰȱȲȳȴȵɡɣɤɥɦɧɨɬɱɴɵɶɷɸɹʤʥʦʨʪʫʬʱʴʵʶʻ˧˫˭˰˱˲˳˴˵˶˸˿̴̵̶̷̸̡̢̧̣̩̪̯̰̱̲̳̺̻̼̽̾ͭͳͷͼͿΤΥΦΧΨΩΪΫάέήΰαγνοϡϥϬϭϮϰϱϳϷϸϺϽϿХШЩЪЫЬЭЮЯвгдежзийклпѡѢѣѤѥѦѧѫѯѰѱѵѶѷѹѻѼҡҢңҤҥҦҩҬҭүҳҴҵҶҸҹҺҼҽҾҿӣӤӥӦӧӨөӪӫӬӱӲӴӵӶӷӸӹӺӻӼӽӿԤԥԦԧԨԯ԰ԱԲԳԴԵԶԷԸԹԺԼԽԾԿաբթիծկհձյնշոչպջսվտְֲֳִֽֿ֣֤֡֯פקרשת׫׬׭׮ׯװױײ׳״׶׸׹׺׻ôΪֻ׼й';
}
function FTPYStr()
{
return '}@K۰O\WðİưаѰ҉ΰT[ްCkOͰ^rU݅ؐ^NvP̱ͱή]ֱױڱ۱ܱݱ߅H׃qpeTlIePKgNaQMKNnœ}ȃԜyԌvs׋pPbULLcSn܇سmrηQͳ\GVtYuX_x猙ꮠPIIhNzrA|̎JNbôĴŴoȴ~n[ąִ״شf۸Zݴe_JđQhʎnvu\Işεϔfc|늵յ{ՙBVӆ|ӗY٪x¶ـ呔྄уꠌՇ׶Dgܶݶ޶ߊZZ~Ӟ𐺶IDElPym\C؜LwUM^SShLTpSPwݗox}ؓӇD`ԓĸ}wȎsжM䓾VV怔RwtomؕhϘُMP^^T؞VҎw|܉ԎF݁L偹^nhuԺպQRٙMZtغoWAԒѻĚgh߀QoSǻȻe]xջֻךڻۻݻVxZMdLȝⷫ@؛CeIuO݋D׼EӋӛH^oϊAvaZ⛼ټڃr{ޚOԹ{gD}OzA|캆p]b`vҊIŞTuR{YvuzɔqCe_Ug˽̽I^ѽҷMAعo@ioRdQmfxe䏑քNܽݽ޽ߝY]þo\H֔MxaMGXQE^x܊E_PwnѝFK~Vr̝hQUϞDRه{ڔr@@m׎[|EȓƄӝ՘DIhxYY[r`zɏBziĘ朑ٟZvՏů|炫CR[܄CUg⏜R`XIs@\¡Ŕn]Ǌ䓧t©ªJRB]tu̔T¾HXHČҿ|]ʞVGn\y݆S]Փ}_߉茻jjaΛRRIu~}mzUM֙؈^TQq]ýVTi͉iҒd侒R瑑}QևġĢ\ķc{yғX[HāfBm帔Qo~ērŲųŴZŶWtźIża˱PЇɽri_hlؚƸOƼ{ƿuH䁘VĚRTM◉әLTUwtǬǭXQǲ\lqǶǸǻǼN@̃SN͸[`JHpAՈcFڅ^|ȡȢxȤEȩȬȱȲȳso׌_@ǟgJxsqܛJc_wِɣɤɦ}ߝɵɶɷYW٠ʂpԟBdzO鼝IBK}{ԊƕrgRҕԇݫFߘݔHgQpl˱˲˴fTqzZAbҔ\KVCmqOpSsiḤE̩̪؝c̴̵̶TՄ̺̻̼̽UǠCϿlv`R}wϗlNFd N~y^DTFj͑ÓrWEDm㏝BfWf`ΦΨΩHSȔή^^οlyǷɆ̮Y΁uCՆu_oʏǉ]F`aϡϥϬϭuϱ㊑rݠ{bMBvrwyte@UFIhWw޾lԔʒNԇ[ШЩЪϐЬfy{Cежзийax\dnC̓uSwm܎x_ѣkѥѦWԃZӖӍdfӠ鎟}W䏩VPꖰWBubG{ҦˎҬҭҴI~ҸҹҺҼtҾUzxɏρˇ|㑛xԄhxg[ayыtΞIωfӲѓӷbӹӺxӼԁn]♪q[Tݛ~OcZZnRzuAԥSxY@@TAԳԴhԷԹԺsԽS耎[yE\NjsdٝEv嗗^؟t\ٛ܈lpSկհֱKݚչպվտ`q~ÛwUHN@ؑᘂ\걠bCֲֳ̼S|RKN[\aS敃EiTDT󲚇ATBvקuD׫ٍ׭fbyײѠF٘YՁƝYҝnۙھCvu{M@NbʆeZN倛';
}
function Traditionalized(cc)
{
var str='';
var oldstat=""+window.status;
for(var i=0;i<cc.length;i++)
{
if((i%1000)==0)window.status="Working..."+Math.round(i*100/cc.length,2)+"%";
if(JTPYStr().indexOf(cc.charAt(i))!=-1)
str+=FTPYStr().charAt(JTPYStr().indexOf(cc.charAt(i)));
else
str+=cc.charAt(i);
}
window.status="100% ɣ";
setTimeout("window.status='"+oldstat+"'",1000);
return str;
}
function Simplized(cc)
{
var str='';
var oldstat=""+window.status;
for(var i=0;i<cc.length;i++)
{
if((i%1000)==0)window.status="ʼת..."+Math.round(i*100/cc.length,2)+"%";
if(FTPYStr().indexOf(cc.charAt(i))!=-1)
str+=JTPYStr().charAt(FTPYStr().indexOf(cc.charAt(i)));
else
str+=cc.charAt(i);
}
window.status="100% ɣ";
setTimeout("window.status='"+oldstat+"'",1000);
return str;
}
function bbimg(o){
var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';
return false;
}

/////ʾأҳл
var enabletabpersistence=1
var tabcontentIDs=new Object()
function expandcontent(linkobj){
var ulid=linkobj.parentNode.parentNode.id
var ullist=document.getElementById(ulid).getElementsByTagName("li")
for (var i=0; i<ullist.length; i++){
ullist[i].className=""
if (typeof tabcontentIDs[ulid][i]!="undefined")
document.getElementById(tabcontentIDs[ulid][i]).style.display="none"
}
linkobj.parentNode.className="selected"
document.getElementById(linkobj.getAttribute("rel")).style.display="block"
saveselectedtabcontentid(ulid, linkobj.getAttribute("rel"))
}
function savetabcontentids(ulid, relattribute){
if (typeof tabcontentIDs[ulid]=="undefined")
tabcontentIDs[ulid]=new Array()
tabcontentIDs[ulid][tabcontentIDs[ulid].length]=relattribute
}
function saveselectedtabcontentid(ulid, selectedtabid){
if (enabletabpersistence==1)
setCookie(ulid, selectedtabid)
}
function getullistlinkbyId(ulid, tabcontentid){
var ullist=document.getElementById(ulid).getElementsByTagName("li")
for (var i=0; i<ullist.length; i++){
if (ullist[i].getElementsByTagName("a")[0].getAttribute("rel")==tabcontentid){
return ullist[i].getElementsByTagName("a")[0]
break
}
}
}
function initializetabcontent(){
for (var i=0; i<arguments.length; i++){
if (enabletabpersistence==0 && getCookie(arguments[i])!="")
setCookie(arguments[i], "")
var clickedontab=getCookie(arguments[i])
var ulobj=document.getElementById(arguments[i])
var ulist=ulobj.getElementsByTagName("li")
for (var x=0; x<ulist.length; x++){
var ulistlink=ulist[x].getElementsByTagName("a")[0]
if (ulistlink.getAttribute("rel")){
savetabcontentids(arguments[i], ulistlink.getAttribute("rel"))
ulistlink.onclick=function(){
expandcontent(this)
return false
}
if (ulist[x].className=="selected" && clickedontab=="")
expandcontent(ulistlink)
}
}
if (clickedontab!=""){
var culistlink=getullistlinkbyId(arguments[i], clickedontab)
if (typeof culistlink!="undefined")
expandcontent(culistlink)
else
expandcontent(ulist[0].getElementsByTagName("a")[0])
}
}
}
function getCookie(Name){ 
var re=new RegExp(Name+"=[^;]+", "i");
if (document.cookie.match(re))
return document.cookie.match(re)[0].split("=")[1]
return ""
}
function setCookie(name, value){
document.cookie = name+"="+value
}

/////ѡύı
function regInput(obj, reg, inputStr)
{
var docSel= document.selection.createRange()
if (docSel.parentElement().tagName != "INPUT")return false
oSel = docSel.duplicate()
oSel.text = ""
var srcRange= obj.createTextRange()
oSel.setEndPoint("StartToStart", srcRange)
var str = oSel.text + inputStr + srcRange.text.substr(oSel.text.length)
return reg.test(str)
}

/////ʵֲƶ
var Obj=''
document.onmouseup=MUp
document.onmousemove=MMove

function MDown(Object){
Obj=Object.id
document.all(Obj).setCapture()
pX=event.x-document.all(Obj).style.pixelLeft;
pY=event.y-document.all(Obj).style.pixelTop;
}

function MMove(){
if(Obj!=''){
  document.all(Obj).style.left=event.x-pX;
  document.all(Obj).style.top=event.y-pY;
  }
}

function MUp(){
if(Obj!=''){
  document.all(Obj).releaseCapture();
  Obj='';
  }
}