function insertFlash(elm, url, b , w, h) {
if (!document.getElementById(elm)) return;
var str = '';
str += '<object width="'+ w +'" height="'+ h +'" border="' + b + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0">';
str += '<param name="movie" value="'+ url +'">';
str += '<param name="wmode" value="opaque">';
str += '<param name="quality" value="autohigh">';
str += '<embed width="'+ w +'" height="'+ h +'" src="'+ url +'" quality="autohigh" wmode="opaque" type="application/x-shockwave-flash" plugspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>';
str += '</object>';
document.getElementById(elm).innerHTML = str;
}
function news_ins_img(theform){
theform.msg.focus();   
document.selection.createRange().text   +=   "\n<!--img-->\n";   
}

function news_ins_page(theform){
theform.msg.focus();   
document.selection.createRange().text   +=   "\n<!--page-->\n";   
}
function news_ins_bold(theform){
theform.msg.focus();   
document.selection.createRange().text   +=   "<!--bold-->";   
}
function add_img(theform){

name=theform.name;
//att_html=document.getElementById("form_att").innerHTML;
att_html="<input type=\"file\" name=\"picfile[]\" class=\"s\" size=\"40\" onchange=\"add_img(" + name + ")\"><br><DIV id=form_img></DIV>";
document.getElementById("form_img").outerHTML = att_html;
}

function add_att(theform){

name=theform.name;
//att_html=document.getElementById("form_att").innerHTML;
att_html="<input type=\"file\" name=\"picfile[]\" class=\"s\" size=\"40\" onchange=\"add_att(" + name + ")\"><br><DIV id=form_att></DIV>";
document.getElementById("form_att").outerHTML = att_html;
}


function insertAd(elm, msg) {
if (!document.getElementById(elm)) return;
var str = msg;
document.getElementById(elm).innerHTML = str;
}

function check_submit(theForm)
{
	 loop=theForm.elements.length;
	 for(i=0;i<loop;i++){
		 if((theForm.elements[i].value=="" || theForm.elements[i].value=="-" || theForm.elements[i].value=="-1") && theForm.elements[i].title!="" ){
			 alert(""+theForm.elements[i].title);
			 theForm.elements[i].focus();
			 return false;
		 }
	 }
  return (true);
}

function add_att(theform){

name=theform.name;
//att_html=document.getElementById("form_att").innerHTML;
att_html="<input type=\"file\" name=\"att[]\" class=\"s\" size=\"40\" onchange=\"add_att(" + name + ")\"><br><DIV id=form_att></DIV>";
document.getElementById("form_att").outerHTML = att_html;
}

function insertArea(elm, alm) {
	
if (!document.getElementById(elm)) return;
if (!document.getElementById(alm)) return;

var str = document.getElementById(alm).innerHTML;
document.getElementById(elm).innerHTML = str;
document.getElementById(alm).innerHTML = "";
}

function show_sec(){
var t2 = new Date().getTime();
var str =(t2-t1)/1000;
document.getElementById("web_page_runtime").innerHTML = str;

today = new Date();
var day;
var date;
if(today.getDay()==0) day = ""
if(today.getDay()==1) day = "һ"
if(today.getDay()==2) day = "ڶ"
if(today.getDay()==3) day = ""
if(today.getDay()==4) day = ""
if(today.getDay()==5) day = ""
if(today.getDay()==6) day = ""
if(today.getYear()!=""){
	date = today.getYear() + "" +(today.getMonth() + 1 ) + "" + today.getDate() + " " +day +"";
}else{
	date = "ӭʯ";
}
if(document.getElementById("web_page_today")){
document.getElementById("web_page_today").innerHTML = date;
}
if(document.getElementById("web_page_member")){
var msg='';
var user = GetCookie('coa_id');
if(user==null){
}else{
	msg="ӭ! " + user + "<a href=member/index.php>Ա</a>";
	document.getElementById("web_page_member").innerHTML = msg;
}
}
}

// JavaScript Document

function setTab0dSyn(i,classnamebef,idbef,idall,tabtabbef)
{
	var waitInterval;
	
	var MouseDelayTime=150;//Ӧӳ300
//
	
					_gObj(idbef+i).onmouseout=function(aEvent)
					{					
					      
						  clearTimeout(waitInterval);
				    }
			    	clearTimeout(waitInterval);
					
					var str="setTab0dSyn1("+i+",'"+classnamebef+"','"+idbef+"',"+idall+",'"+tabtabbef+"')";
					
					waitInterval=setTimeout(str,MouseDelayTime);
	
}
function aa(i)
{
	alert("aa is run"+i);
}
//----------------------------------------------------------------------------------
function setTab0dSyn1(i,classnamebef,idbef,idall,tabtabbef)
{
//alert(i);
changDivClass(idbef,idall,i,classnamebef)
selectTab0dSyn(tabtabbef,idall,i);
}

function selectTab0dSyn(div_id,allnum,now){
for(var i= 1; i<= allnum;i++)
{
	if(i==now)
	{
		_gObj(div_id+i).style.display="block";
	}else
	{
		_gObj(div_id+i).style.display="none";
	}
}

//	document.getElementById("tabtabd1").style.display="block";
//	document.getElementById("tabtabd2").style.display="none";

}	


function _gObj(id)
{
return document.getElementById(id);
}

function changDivClass(div_id,all,now,classnamebef)
{
for(var i= 1; i<= all;i++)
{
if(i==now)
{
_gObj(div_id+i).className = classnamebef+"_0a";
}else
{
//_gObj(div_id+i).className = "dj4_"+i;
_gObj(div_id+i).className = classnamebef+"_a";
}
}
}

function selectTabsearch(J,allcount,idnamebef,stabid)
{
	var xjwaitInterval;
	
	var MouseDelayTime1=150;//Ӧӳ300
//
					var idstr=stabid;
					//alert (idstr);
					_gObj(idstr).onmouseout=function(aEvent)
					{	  				
					      //alert(idstr);
						  clearTimeout(xjwaitInterval);
						  //alert(xjwaitInterval);
				    }
			    	clearTimeout(xjwaitInterval);
					
					var str="selectTabsearch1("+J+","+allcount+",'"+idnamebef+"')";
					//alert(str);					
					xjwaitInterval=setTimeout(str,MouseDelayTime1);
	
	
}

function selectTabsearch1(J,allcount,idnamebef)
{
		selectTabsearch2(J,allcount,idnamebef)
}

function selectTabsearch2(J,allcount,idnamebef)
{
	//alert(J);
	for(var i=1;i<=allcount;i++)
	{
		if(J==i)
		{
			_gObj(idnamebef+i).style.display="block";
		}
		else
		{
			_gObj(idnamebef+i).style.display="none";
		}
		
	}
	
}

function shtj(id,index,other,secod)
{
eval("document.getElementById('y_"+id+"').className='y_i1zxgx'");
eval("document.getElementById('y_"+index+"').className='y_i1tj1'");
eval("document.getElementById('y_"+other+"').className='y_i1zxgy1'");
/*eval("document.getElementById('y_"+secod+"').className='y_i1zxgy1'");*/
eval("document.getElementById('__tj"+id+"').style.display='block'");
eval("document.getElementById('__tj"+index+"').style.display='none'");
eval("document.getElementById('__tj"+other+"').style.display='none'");
/*eval("document.getElementById('__tj"+secod+"').style.display='none'");*/
}
function shtj1(id,index,other,secod)
{
eval("document.getElementById('y_"+id+"').className='y_i1tj'");
eval("document.getElementById('y_"+index+"').className='y_i1zxgx1'");
eval("document.getElementById('y_"+other+"').className='y_i1zxgy1'");
/*eval("document.getElementById('y_"+secod+"').className='y_i1zxgy1'");*/
eval("document.getElementById('__tj"+id+"').style.display='block'");
eval("document.getElementById('__tj"+index+"').style.display='none'");
eval("document.getElementById('__tj"+other+"').style.display='none'");
/*eval("document.getElementById('__tj"+secod+"').style.display='none'");*/
}



function shtj2(id,index,other,secod)
{
eval("document.getElementById('y_"+id+"').className='y_i1zxgy'");
eval("document.getElementById('y_"+index+"').className='y_i1tj1'");
eval("document.getElementById('y_"+other+"').className='y_i1zxgx1'");
/*eval("document.getElementById('y_"+secod+"').className='y_i1zxgx1'");;*/
eval("document.getElementById('__tj"+id+"').style.display='block'");
eval("document.getElementById('__tj"+index+"').style.display='none'");
eval("document.getElementById('__tj"+other+"').style.display='none'");
/*eval("document.getElementById('__tj"+secod+"').style.display='none'");;*/
}

function GetCookieVal(offset)
//Cookieֵ
{
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function SetCookie(name, value)
//趨Cookieֵ
{
var expdate = new Date();
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
if(expires!=null) expdate.setTime(expdate.getTime() + ( expires * 1000 ));
document.cookie = name + "=" + escape (value) +((expires == null) ? "" : ("; expires="+ expdate.toGMTString()))
+((path == null) ? "" : ("; path=" + path)) +((domain == null) ? "" : ("; domain=" + domain))
+((secure == true) ? "; secure" : "");
}
function DelCookie(name)
//ɾCookie
{
var exp = new Date();
exp.setTime (exp.getTime() - 1);
var cval = GetCookie (name);
document.cookie = name + "=" + cval + "; expires="+ exp.toGMTString();
}
function GetCookie(name)
//Cookieԭʼֵ
{
var arg = name + "=";
var alen = arg.length;
var str="";
var clen = document.cookie.length;
var i = 0;
while (i < clen){
var j = i + alen;
if (document.cookie.substring(i, j) == arg){
	str = GetCookieVal (j);
	return str; 
}
i = i + 1;
}
return null;
}

function powerpoint(focus_file,focus_width,focus_heigh,text_height,pics,links,texts){
 document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
 document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="'+focus_file+'"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFFF">');
 document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
 document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
 document.write('<embed src="'+focus_file+'" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F0F0F0" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');  
 document.write('</object>');
}

function charPYStr(){
	return '°ðİŰưǰȰɰʰ˰̰ͰΰϰаѰҰӰ԰հְװذٰڰ۰ܰݰް߰±ñıűƱǱȱɱʱ˱̱ͱαϱбѱұӱԱձֱױرٱڱ۱ܱݱޱ߱²òĲŲƲǲȲɲʲ˲̲ͲβϲвѲҲӲԲղֲײزٲڲ۲ܲݲ޲߲³óĳųƳǳȳɳʳ˳̳ͳγϳгѳҳӳԳճֳ׳سٳڳ۳ܳݳ޳߳´ôĴŴƴǴȴɴʴ˴̴ʹδϴдѴҴӴԴմִ״شٴڴ۴ܴݴ޴ߴµõĵŵƵǵȵɵʵ˵̵͵εϵеѵҵӵԵյֵ׵صٵڵ۵ܵݵ޵ߵ¶öĶŶƶǶȶɶʶ˶̶Ͷζ϶жѶҶӶԶնֶ׶ضٶڶ۶ܶݶ޶߶·÷ķŷƷǷȷɷʷ˷̷ͷηϷзѷҷӷԷշַ׷طٷڷ۷ܷݷ޷߷¸øĸŸƸǸȸɸʸ˸̸͸θϸиѸҸӸԸոָ׸ظٸڸ۸ܸݸ޸߸¹ùĹŹƹǹȹɹʹ˹̹͹ιϹйѹҹӹԹչֹ׹عٹڹ۹ܹݹ޹߹ºúĺźƺǺȺɺʺ˺̺ͺκϺкѺҺӺԺպֺ׺غٺںۺܺݺ޺ߺ»ûĻŻƻǻȻɻʻ˻̻ͻλϻлѻһӻԻջֻ׻ػٻڻۻܻݻ޻߻¼üļżƼǼȼɼʼ˼̼ͼμϼмѼҼӼԼռּ׼ؼټڼۼܼݼ޼߼½ýĽŽƽǽȽɽʽ˽̽ͽνϽнѽҽӽԽսֽ׽ؽٽھ¾þľžƾǾȾɾʾ˾̾;ξϾоѾҾӾԾվ־׾ؾپھ۾ܾݾ޾߾۽ܽݽ޽߽¿ÿĿſƿǿȿɿʿ˿̿ͿοϿпѿҿӿԿտֿ׿ؿٿڿۿܿݿ޿߿¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿áâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿġĢģĤĥĦħĨĩĪīĬĭĮįİıĲĳĴĵĶķĸĹĺĻļĽľĿšŢţŤťŦŧŨũŪūŬŭŮůŰűŲųŴŵŶŷŸŹźŻżŽžſơƢƣƤƥƦƧƨƩƪƫƬƭƮƯưƱƲƳƴƵƶƷƸƹƺƻƼƽƾƿǢǣǤǥǦǧǨǩǪǫǬǭǮǯǰǱǲǳǴǵǶǷǸǹǺǻǼǽǾǿȡȢȣȤȥȦȧȨȩȪȫȬȭȮȯȰȱȲȳȴȵȶȷȸȹȺȻȼȽȾȿɡɢɣɤɥɦɧɨɩɪɫɬɭɮɯɰɱɲɳɴɵɶɷɸɹɺɻɼɽɾɿʡʢʣʤʥʦʧʨʩʪʫʬʭʮʯʰʱʲʳʴʵʶʷʸʹʺʻʼʽʾʿˡˢˣˤ˥˦˧˨˩˪˫ˬ˭ˮ˯˰˱˲˳˴˵˶˷˸˹˺˻˼˽˾˿̴̵̶̷̸̡̢̧̨̣̤̥̦̩̪̫̬̭̮̯̰̱̲̳̹̺̻̼̽̾̿ͣͤͥͦͧͨͩͪͫͬͭͮͯ͢͡ͰͱͲͳʹ͵Ͷͷ͸͹ͺͻͼͽ;ͿΡ΢ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοϡϢϣϤϥϦϧϨϩϪϫϬϭϮϯϰϱϲϳϴϵ϶ϷϸϹϺϻϼϽϾϿСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопѡѢѣѤѥѦѧѨѩѪѫѬѭѮѯѰѱѲѳѴѵѶѷѸѹѺѻѼѽѾѿҡҢңҤҥҦҧҨҩҪҫҬҭҮүҰұҲҳҴҵҶҷҸҹҺһҼҽҾҿӡӢӣӤӥӦӧӨөӪӫӬӭӮӯӰӱӲӳӴӵӶӷӸӹӺӻӼӽӾӿԡԢԣԤԥԦԧԨԩԪԫԬԭԮԯ԰ԱԲԳԴԵԶԷԸԹԺԻԼԽԾԿաբգդեզէըթժիլխծկհձղճմյնշոչպջռսվտְֱֲֳִֵֶַָֹֺֻּֽ֢֣֤֥֦֧֪֭֮֡֨֩֫֬֯־ֿסעףפץצקרשת׫׬׭׮ׯװױײ׳״׵׶׷׸׹׺׻׼׽׾׿';
}

function ftPYStr(){
	return '}@K۰O\WðİŰưǰȰɰʰ˰̰ͰΰϰаѰ҉ΰTְװذٔ[۔ݰް߰CkOͰ򽉰^r󱩱U݅ؐ^Nv±ñıűƱǱȱɹP˱̱ͱήюűӱ]ֱױرٱڱ۱ܱݱ߅H׃qp˱eTlIePKKgNa²òĲؔǲȲɲʲ˲̲ͅQMKNnœ}زٲڲ۲ܲݎ߂ȃԜyӲԌvs׋pPbULLcSn܇سmꐳrηQǳȳɳʳ˳̑ͳ\гGӳ԰Vֳ׳tYuX޳߳_x猙ꮠPIIhNzrA|̎JNbôĴŴoȴ~˴n[ҏąִ״شf۸Zݴ޴ߴe_JđQhʎnvu\Iµõĵşǵȵɵ̵͵εϔѵҜԵյֵ׵صٵڵ۵fc|늵յ{ՙB픶VӆG|ӗY٪x¶ـ僶Ƕȶɶʶ˶呶Δ྄уꠌՇ׶Dgܶݶ޶߶Z艙Z~Ӟ𐺶IDElPym\C؜LŷƷǷwʷuͷΏUMҷӷԷշּٷڷۊ^ݷޑSShLTpSPwݗox}ؓӇD`ԓĸ}wȎָʸ˸̸͸sжM䓸׸ؾV۸ܸV߸怸Rwtom얹ؕhϹُ򹼹¹ùĹMǹȹɹ̹͹ιτѹҹӹԹչֹPٹ^^ޑT؞VҎw|܉Ԏ𙙹F݁L偹^񔺨nhºú̖ƺǺȺɺʺ˺̺ͺκϺкuӺԺպQRٺںۺܺݺ޺ߺMZtغoWAԒѻĚgh߀Qo»ûĻSǻȻɻʻ˻̻ͻλϻeғ]xջֻ׻ؚڻۻܻݻVxZMdLȝ꜆ⷻ@؛CeIuO݋D׼EļӋӛȼH^oμϊAѼҼvaZ⛼ټڃr{ޚOԼ{gD}OzA|캆p]b`vҊIŞTuR{YvuzɽqCe_ƽUg˽̽I^нѽҽӽԷMAؽٹoL@ioRdQm¾þľžƎfʾ˾̾;ξϾоѾҾxվ־׾eھ۾ܓ޾߾䏾־愡Nۂܽݽ޽ߝY]ýo\H֔MxaMGXQE^x܊E_P¿ÿwƚȿɿʿ˿̿nϿЉӿԿտֿ׿ؓڿۿܿݿ޿߿ѝFK~쌒Vr̝hQUϞDRه{ڔr@@m׎[|E˓Ƅӝ՘D܉IhxYY[r`zɏBziĘ朑ٟZvՏů|ӫCR[܄CUgR`XIs@\¡Ŕn]Ǌ䓧t©ªJRB]tu̔´µ¶·T¹º¾HXHČҿ|]ʞVGn\сyԒ݆S]Փ}_߉茻jj鬔aΛRRIu~}mzUM֙âãäåæç؈é^ëìTîïðñòQõö÷øqú]üýVÿTi͉iҒ܃߾d侒R}QևġĢģĤĥĦħĨĩĪīĬĭĮįİ\ĲĳĴĵķĸĹĺĻļĽľĿcȼ{yғX[HMāfBm帔QţŤo~ērŪūŬŭŮůŰŲųŴZŶWtźIżažſ˱Pr懊iơƢƣƤƥƦƧƨƩƪƫƬ_hƯưƱƲƳƴlؚƷƸƹƺOƼƽ{ƿuHʓҘVۗߜDĚRTMәǢLTUǧwǪtǬǭXQǰǲ\lqǶǷǸǻǼN@ĘƆ̃SNθ[Ӹ`JH݌pAՈcFڅ^|ȡȢxȤȥȦEȩȪȫȬȭȮȯȱȲȳsoȶ_ȸȹȺȻȼȽȾȿ׌_@ǟgJѼxؘsݽqܛJc_wِɢɣɤɦ}ɩɪɫɭɮɯɰɲɳɵɶɷYɺɻɼɽhɿW٠ȿʂpԟ۽BdzO＝򌏋IBKʡʢʣ}ʧ{ʩԊʭʮʯʰrʲʳgRʷʸʹʺʼʽʾʿńmҕԇ؉ݫFߘݔHgQˡˢˣˤ˥˦˨˩˪pˬlˮ˯˱˲˴fT˷q˹˺˻˼˽˾zZAbҔ\KVCmSqOpSsiḤ̤̥̦Ę̩̪̫B̭̮؝c̴̵̶TՄ̹̺̻̼̽U̿ˠC͝Ͽlӑv`R}wlNFd Nͣͤͥͦͧͨͩͪͫͬ͢͡~ͮͯͰͱͲyʹ͵Ͷ^͸͹dͻDͽ;TĈFj͑ÓrWEܸDm㏝BfWΡ΢Σf`ΦΨΩHSȔήί^βδεζηθικλμ^ξοlyǷɆ̮Y΁uCP׆u@_ݟoʏ]F`aϡϢϣϤϥϦϧϨϩϪϫϬϭuϯϱϲϴϵ϶ϹrϻϼݠϾ{bMBćvrwyte@UFIhWw޾lԔʒNСТУФ[ЦЧШЩЪϐЬfyаб{Cежзийaxмно\dٛnC̓uSwm܎x_ѣkѥѦWѨѩѪѬѭѮԃZѲѳѴӖӍdѸѺfѽѾѿņӠ鎟}W䏩VPWBubG{ҦҧҨˎҪҫҬҭҮҰұҲҴI~ҷҸҹҺһҼtҾUzƃx̏ρˇك|㑛xԄhxg[ay[ӡӢыtΞIωӭAӯӰfӲӳѓӷbӹӺxӼԁӾăƑn]♪q[Tݛ~OcZZnRzuԡԢԣAԥSxYԩԪԫԬԭԮ@@TAԳԴhԷԹԺԻsԽS耎[yE\Njs՞d۔ٝEv嗗^؟t\ٛ܈lգեզէըpժSլխկհղճմKݚչպռվտ`ďƝqɎ~ÛwUHN@ؑᘂ\걠b֢C֥֦֧֪֭֮֨֩֫֬ֱֲֳֵֶַָֹֺֻּ־SÎ|̜RԽKN[\aS䰙敃EiTDTATBסעףvץצקuD׫ٍ׭fbyײѠ׵F׷٘YՁ׼׽׾׿ƝƝYԝnۙھCvu{M';
}

function traditionalized(cc){
	var str='';
	for(var i=0;i<cc.length;i++){
		if(charPYStr().indexOf(cc.charAt(i))!=-1)
			str+=ftPYStr().charAt(charPYStr().indexOf(cc.charAt(i)));
		else
			str+=cc.charAt(i);
	}
	return str;
}

function simplized(cc){
	var str='';
	for(var i=0;i<cc.length;i++){
		if(ftPYStr().indexOf(cc.charAt(i))!=-1)
			str+=charPYStr().charAt(ftPYStr().indexOf(cc.charAt(i)));
		else
			str+=cc.charAt(i);
	}
	return str;
}

function convert(idcen,idlou){
	if(idcen.value==0)
		idlou.innerHTML=simplized(idlou.innerHTML);
	else
		idlou.innerHTML=traditionalized(idlou.innerHTML);
}

function jt(maiweb){
var _rk = eval("conver"+maiweb);
var _ek = eval("h"+maiweb);
var _mk = eval("fontzoom");
convert(_ek,_mk);_ek.value=1;
_rk.innerHTML = "<a href=\"javascript:void(0)\" onclick=ft('"+maiweb+"') style=CURSOR:hand></a>";
}

function ft(maiweb2){
var _rk2 = eval("conver"+maiweb2);
var _ek2 = eval("h"+maiweb2);
var _mk2 = eval("fontzoom");
convert(_ek2,_mk2);_ek2.value=0;
_rk2.innerHTML = "<a href=\"javascript:void(0)\" onclick=jt('"+maiweb2+"') style=CURSOR:hand></a>";
}

function fontZoom(size)
{
 document.getElementById('fontzoom').style.fontSize=size+'px'
}

function checknumber(String) 
{ 
var Letters = "1234567890-+"; 
var i; 
var c; 
for( i = 0; i < String.length; i ++ ) 
{ 
c = String.charAt( i ); 
if (Letters.indexOf( c ) ==-1) 
{ 
return false; 
} 
} 
return true; 
} 

function ch_page(url,no){
	if(no==""){
		alert("Ҫתҳ");
	}else{
		if(checknumber(no)){
		 window.location=url + no;
		}else{
		 alert("ҳ벻ȷ");
		}
	}
}

function split(chr,String) 
{ 
var slide=new Array();
var i; 
var loop=0;
var tmp="";
var c; 
for( i = 0; i < String.length; i ++ ) { 
c = String.charAt( i ); 
if (c == chr) {
	slide[loop] = tmp;
//	alert( slide[loop]);
	loop++;
	tmp="";
}else{
	tmp=tmp+c;
}
} 
if(tmp.length>0){
	slide[loop] = tmp;
//	alert( slide[loop]);
}
return slide; 
} 


    var nav_menubar_color="#0099CC";
    var nav_menumsg_color="#EAEAFF";

function showitem(id,name)
{
	return ("<span><a target='_self'  href='"+id+"'>&nbsp;"+name+"&nbsp;</a></span><br>")
}

function switchoutlookBar(number)
{
	var i=outlookbar.opentitle;
	outlookbar.opentitle=number;
	var id1,id2,id1b,id2b
	if (number!=i && outlooksmoothstat==0){
	if (number!=-1)
		{
			if (i==-1)
				{
				id2="blankdiv";
				id2b="blankdiv";}
			else{
				id2="outlookdiv"+i;
				id2b="outlookdivin"+i;
				document.all("outlooktitle"+i).style.border="1px none navy";
				document.all("outlooktitle"+i).style.background=nav_menubar_color;
				document.all("outlooktitle"+i).style.color=nav_menumsg_color;
				document.all("outlooktitle"+i).style.textalign="center";
				}
			id1="outlookdiv"+number
			id1b="outlookdivin"+number
			document.all("outlooktitle"+number).style.border="1px none white";
			document.all("outlooktitle"+number).style.background=nav_menubar_color; //title
			document.all("outlooktitle"+number).style.color=nav_menumsg_color;
			document.all("outlooktitle"+number).style.textalign="center";
			smoothout(id1,id2,id1b,id2b,0);
		}
	else
		{
			document.all("blankdiv").style.display="";
			document.all("blankdiv").sryle.height="100%";
			document.all("outlookdiv"+i).style.display="none";
			document.all("outlookdiv"+i).style.height="0%";
			document.all("outlooktitle"+i).style.border="1px none navy";
			document.all("outlooktitle"+i).style.background=nav_menubar_color;
			document.all("outlooktitle"+i).style.color=nav_menumsg_color;
			document.all("outlooktitle"+i).style.textalign="center";
		}
	}
			
}

function smoothout(id1,id2,id1b,id2b,stat)
{
	if(stat==0){
		tempinnertext1=document.all(id1b).innerHTML;
		tempinnertext2=document.all(id2b).innerHTML;
		document.all(id1b).innerHTML="";
		document.all(id2b).innerHTML="";
		outlooksmoothstat=1;
		document.all(id1b).style.overflow="hidden";
		document.all(id2b).style.overflow="hidden";
		document.all(id1).style.height="0%";
		document.all(id1).style.display="";
		setTimeout("smoothout('"+id1+"','"+id2+"','"+id1b+"','"+id2b+"',"+outlookbar.inc+")",outlookbar.timedalay);
	}
	else
	{
		stat+=outlookbar.inc;
		if (stat>100)
			stat=100;
		document.all(id1).style.height=stat+"%";
		document.all(id2).style.height=(100-stat)+"%";
		if (stat<100)
			setTimeout("smoothout('"+id1+"','"+id2+"','"+id1b+"','"+id2b+"',"+stat+")",outlookbar.timedalay);
		else
			{
			document.all(id1b).innerHTML=tempinnertext1;
			document.all(id2b).innerHTML=tempinnertext2;
			outlooksmoothstat=0;
			document.all(id1b).style.overflow="auto";
			document.all(id2).style.display="none";
			}
	}
}

function getOutLine()
{
	outline="<table "+outlookbar.otherclass+">";
	for (i=0;i<(outlookbar.titlelist.length);i++)
		{
			outline+="<tr><td name=outlooktitle"+i+" id=outlooktitle"+i+" ";		
			if (i!=outlookbar.opentitle)
				outline+=" nowrap align=center style='cursor:hand;background-color:"+nav_menubar_color+";color:"+nav_menumsg_color+";height:5;border:1 none navy' ";
			else
				outline+=" nowrap align=center style='cursor:hand;background-color:"+nav_menubar_color+";color:"+nav_menumsg_color+";height:5;border:1 none white' ";
			outline+=outlookbar.titlelist[i].otherclass
			outline+=" onclick='switchoutlookBar("+i+")'><span class=smallFont>";
			outline+=outlookbar.titlelist[i].title+"</span></td></tr>";
			outline+="<tr><td name=outlookdiv"+i+" valign=top align=center id=outlookdiv"+i+" style='width:100%"
			if (i!=outlookbar.opentitle)
				outline+=";display:none;height:0%;";
			else
				outline+=";display:;height:100%;";
			outline+="'><div name=outlookdivin"+i+" id=outlookdivin"+i+" style='overflow:auto;width:100%;height:100%'>";
			for (j=0;j<outlookbar.itemlist[i].length;j++)
				outline+=showitem(outlookbar.itemlist[i][j].key,outlookbar.itemlist[i][j].title);
			outline+="</div></td></tr>"
		}
	
	outline+="</table>"
	return outline

}

function show()
{
	var outline;
	outline="<div id=outLookBarDiv name=outLookBarDiv style='width=100%;height:100%'>"
	outline+=outlookbar.getOutLine();
	outline+="</div>"
	document.write(outline);
}

function theitem(intitle,instate,inkey)
{
	this.state=instate;
	this.otherclass=" nowrap ";
	this.key=inkey;
	this.title=intitle;
}

function addtitle(intitle)
{
	outlookbar.itemlist[outlookbar.titlelist.length]=new Array();
	outlookbar.titlelist[outlookbar.titlelist.length]=new theitem(intitle,1,0);
	return(outlookbar.titlelist.length-1);
}

function additem(intitle,parentid,inkey)
{
	if (parentid>=0 && parentid<=outlookbar.titlelist.length)
	{
		outlookbar.itemlist[parentid][outlookbar.itemlist[parentid].length]=new theitem(intitle,2,inkey);
		outlookbar.itemlist[parentid][outlookbar.itemlist[parentid].length-1].otherclass=" nowrap align=left style='height:5' ";
		return(outlookbar.itemlist[parentid].length-1);
	}
	else
		additem=-1;
}

function outlook()
{
	this.titlelist=new Array();
	this.itemlist=new Array();
	this.divstyle="style='height:100%;width:100%;overflow:auto' align=center";
	this.otherclass="border=0 cellspacing='0' cellpadding='0' style='height:100%;width:100%'valign=middle align=center ";
	this.addtitle=addtitle;
	this.additem=additem;
	this.starttitle=-1;
	this.show=show;
	this.getOutLine=getOutLine;
	this.opentitle=this.starttitle;
	this.reflesh=outreflesh;
	this.timedelay=50;
	this.inc=10;
	
}

function outreflesh()
{
	document.all("outLookBarDiv").innerHTML=outlookbar.getOutLine();
}

function locatefold(foldname)
{
	for (var i=0;i<outlookbar.titlelist.length;i++)
		if(foldname==outlookbar.titlelist[i].title)
			{
				 outlookbar.starttitle=i;
				 outlookbar.opentitle=i;
			}
	
}
