var iconwar = "<img src=\"http://img.alixixi.com/ajaxloading.gif\" align=\"absmiddle\" \/> ";
var iconload = "<img src=\"http://img.alixixi.com/ajaxloading.gif\" align=\"absmiddle\" \/> ";
var badstr = "!&^#|%$)(-+/?<>@`~';:{}[],=\".\\";
var badsql = "!&^|+/?<>`~'=";
var $show = function (e) {try{document.getElementById(e).style.display="";} catch(e) {} };
var $hide = function (e) {try{document.getElementById(e).style.display="none";} catch(e) {} };
var $W = document.write;
var js_UserName;


function Ajaxdata(){
	var objXmlHttp=null;
	if (navigator.userAgent.indexOf("Opera")>=0){
		alert("This example doesn't work in Opera");return;
	}
	if (navigator.userAgent.indexOf("MSIE")>=0)
	{
		var strName="Msxml2.XMLHTTP";
		if (navigator.appVersion.indexOf("MSIE 5.5")>=0){
			strName="Microsoft.XMLHTTP";
		}
		try{
			objXmlHttp=new ActiveXObject(strName);
			return objXmlHttp;
			}
		catch(e)
			{
			alert("Error. Scripting for ActiveX might be disabled");
			return;
			}
	}
	if (navigator.userAgent.indexOf("Mozilla")>=0)
		{
		objXmlHttp=new XMLHttpRequest();
		return objXmlHttp;
		}
}
function checkLoginStatus() {
	var login_uin = getCookie("uin");
	if(login_uin == "")
		login_uin = getCookie("zzpaneluin");
	if(login_uin == "") {
		unLoginStatus();
	}else {
		loginedStatus();
		g_iLoginUin = parseInt(login_uin.replace(/^[o0]*/,""));
	}
}

function ScreenConvert(){var browser = new Browser();var objScreen = gcid("ScreenOver");if(!objScreen) var objScreen = document.createElement("div");var oS = objScreen.style;objScreen.id = "ScreenOver";oS.display = "block";oS.top = oS.left = oS.margin = oS.padding = "0px";if (document.body.clientHeight)	{var wh = document.body.clientHeight + "px";}else if (window.innerHeight){var wh = window.innerHeight + "px";}else{var wh = "100%";}oS.width = "100%";	oS.height = wh;oS.position = "absolute";oS.zIndex = "0";if ((!browser.isSF) && (!browser.isOP)){oS.background = "#F5F5F5";}else{oS.background = "#F5F5F5";}oS.filter = "alpha(opacity=40)";	oS.opacity = 40/100;	oS.MozOpacity = 40/100;document.body.appendChild(objScreen);var allselect = gname("select");for (var i=0; i<allselect.length; i++) allselect[i].style.visibility = "hidden";}

function Browser(){var ua, s, i;this.isIE = false;this.isNS = false;this.isOP = false;this.isSF = false;ua = navigator.userAgent.toLowerCase();s = "opera";if ((i = ua.indexOf(s)) >= 0){this.isOP = true;return;}s = "msie";if ((i = ua.indexOf(s)) >= 0) {this.isIE = true;return;}s = "netscape6/";if ((i = ua.indexOf(s)) >= 0) {this.isNS = true;return;}s = "gecko";if ((i = ua.indexOf(s)) >= 0) {this.isNS = true;return;}s = "safari";if ((i = ua.indexOf(s)) >= 0) {this.isSF = true;return;}}

//截取COOKIES值
function getcookiename(names){var namecookie=names + "=";var ba = document.cookie.split(";");for (var i=0;i<ba.length;i++){var c = ba[i];while ((c.indexOf(namecookie))>0){c = (c.substr(c.indexOf(namecookie),c.length));var d = c.split("&");for (k=0;k<d.length;k++){b = d[k];b =b.substr((b.indexOf(namecookie)+namecookie.length),(b.length-namecookie.length));return b;}}}return null;}

function ugo(tourl,errtitle) {
	if (getcookiename("userid")){
		location.href=tourl;
		return true;
	}else{
		alert('提示：无法完成['+errtitle+']，请您注册或登陆后操作。');
		showlogin();
		return false;
	}
	}

function Closeuserlogin(){	
		parent.window.getObj("logined").style.display = "";
		parent.window.getObj("unLogin").style.display = "none";
		parent.window.rf();
	if (parent.window.gcid("login")){
		 parent.window.getObj("ScreenOver").parentNode.removeChild(parent.window.getObj("ScreenOver"));
		 parent.window.getObj("login").parentNode.removeChild(parent.window.getObj("login"));
	}
	
}

function Showuserlogin(){
	if (getcookiename("userid")){
		loginedStatus();
	}else{
		unLoginStatus();
	}
}

function Showloginmenu(){
	if (getcookiename("userid")){
		document.getElementById("unmenulogin").style.display="none";
 		document.getElementById("ismenulogin").style.display="";
		document.getElementById("ismenuloginname").innerHTML=getcookiename("username");
	}else{
		document.getElementById("ismenulogin").style.display="none";
		document.getElementById("unmenulogin").style.display="";
	}
}

function deleteCookie(name){
	setCookie(name, "");
}

function unLoginStatus() {
	getObj("logined").style.display = "none";
	getObj("unLogin").style.display = "";
}

function loginedStatus() {
	getObj("logined").style.display="";
	getObj("unLogin").style.display="none";
}

function getObj(obj){return document.getElementById(obj)}


function showlogin(nojump) {
	ScreenConvert();	
		if (!gcid("login"))
		{
			var div = document.createElement("div");
			div.id = "login";			
			document.body.appendChild(div);			
		}
		getObj("login").style.visibility = "visible";
		//getObj("login").style.display = "";
		getObj("login").innerHTML = "<iframe id=\"login_frame\" src=\"\" style=\"width:280px;height:160px;\" allowtransparency=true scrolling=\"No\" border=\"0\" frameborder=\"0\"></iframe>";			
		getObj("login_frame").src="http://www.alixixi.com/lg.asp?s=" + Math.random();		
		document.getElementById("login").style.top=document.documentElement.scrollTop+200;
}
function gcid(id){return document.getElementById?document.getElementById(id):null;}

//删除对象,ID为对象ID
function deleteElement(id){var tt = id.split("|");for (i=0;i<tt.length;i++){if (document.getElementById(tt[i])){pObj=getObj(tt[i]).parentNode;pObj.removeChild(getObj(tt[i]));}}}

function closeForm(){
//if (gcid("DialogMove")){document.getElementById("DialogMove").style.display = "none";}
//if (gcid("ScreenOver")){document.getElementById("ScreenOver").style.display = "none";}
selects();
deleteElement("login|ScreenOver");
}

//显示select
function selects(){
var allselect = gname("select");for (var i=0; i<allselect.length; i++){allselect[i].style.visibility = "visible";}}

//隐藏select
function selecth(){
var allselect = gname("select");for (var i=0; i<allselect.length; i++){allselect[i].style.visibility = "hidden";}
}

function gname(name){return document.getElementsByTagName?document.getElementsByTagName(name):new Array()}

function hidelogin() {
	getObj("login").style.visibility="hidden";
	closeForm();
}
function rf() {
	window.location.reload();
}

function logOut() {
		InitCM('MenuCityList',20);	
		var url = "/account/ulogout.asp?action=logout&s=" + Math.random();
		var xmlHttps = Ajaxdata();
		xmlHttps.open("GET", url, true);
		xmlHttps.onreadystatechange = function(){
				if (xmlHttps.readyState == 4) {
					var response = xmlHttps.responseText;
					if (response == "1") {
						unLoginStatus();
						deleteElement("MenuCityList");
						window.location.reload();
					}
				};
			};
		xmlHttps.send(null);
}

function InitCM(di,top){
	if (!gcid(di)){
		var div = document.createElement("div");
		div.id = di;	
		div.zIndex = "100";
		div.style.position = "absolute";
		div.style.right = "0";
		div.style.top = top;
		div.style.textAlign = "left";
		div.style.border = "1px #330000 solid";
		div.style.background = "#CFF4FE";
		div.style.width = "100px";
		div.style.height = "18px";
		div.style.padding = "0";		
		div.innerHTML = "<img src=\"http://img.alixixi.com/ajaxloading.gif\" width=\"16\" height=\"16\">&nbsp;正在注销...";
		document.body.appendChild(div);
	}else{
		getObj(di).style.display = "";
		getObj(di).innerHTML = "<img src=\"http://img.alixixi.com/ajaxloading.gif\" width=\"16\" height=\"16\">&nbsp;正在注销...";
	}
}


function process()
{
	if (!CheckForm())
	{
		//alert("false");
		return false;
		
	}
	return true;
}

function CheckForm(){
	var u = (document.user_login.username.value);
	var p = (document.user_login.password.value);
	var v = (document.user_login.verifycode.value);
	if (!u){alert('请输入用户名!');return false;}
	if (!p){alert('请输入密码!');return false;}
	if (!v){alert('请输入验证码!');return false;}
	return true;	
}

function onDisplay(id) {
if (document.getElementById(id).style.display == 'none') {
	$show(id);
}
else {
	$hide(id);
}
}
function onLabelTxt(id,LabelID,ShowTxt,HideTxt) {
if (document.getElementById(id).style.display == 'none') {
	$show(id);
	document.getElementById(LabelID).value = HideTxt;
}
else {
	$hide(id);
	document.getElementById(LabelID).value = ShowTxt;
}
}
function listdisp(tid,lid) {
if (document.getElementById(tid).style.display == 'none') {
	$show(tid);
}
else {
	$hide(tid);
}

if (lid == 't1') {
	return 't1_off';
}
else if (lid == 't2') {
	return 't2_off';
}
else if  (lid == 't1_off') {
	return 't1';
}
else if  (lid == 't2_off') {
	return 't2';
}

}

function trim(str) {
	return (str + '').replace(/(\s+)$/g, '').replace(/^\s+/g, '');
}

function addbookmark(url, site){
	if(is_ie) {
		window.external.addFavorite(url, site);
	} else {
		alert('Please press "Ctrl+D" to add bookmark');
	}
}

//AJAX_START
var xmlhttp=null; 
function createxmlhttp(){
	try { 
	xmlhttp=new ActiveXObject("Msxml2.xmlhttp") ;
	} 
	catch(e) { 
	try { 
	xmlhttp=new ActiveXObject("Microsoft.xmlhttp") ;
	} 
    catch(oc) { 
	xmlhttp=null ;
	} 
	} 
	if ( !xmlhttp && typeof XMLHttpRequest != "undefined" ) { 
	xmlhttp = new XMLHttpRequest();
	} 	

	if (!xmlhttp) {
	  alert("您的浏览器不支AJAX特性,本页某些功能将无法正常使用!");
	}
}


//js操作cookies函数 *********************

function delcookie(name){
	setcookie(name, "");
}

function getcookie(name) {
	var cookie_start = document.cookie.indexOf(name);
	var cookie_end = document.cookie.indexOf(";", cookie_start);
	return cookie_start == -1 ? '' : unescape(document.cookie.substring(cookie_start + name.length + 1, (cookie_end > cookie_start ? cookie_end : document.cookie.length)));
}

function setcookie(cookieName, cookieValue, seconds) {
	var expires = new Date();
	var path = "/";
	var domain = "alixixi.com";
	var secure = "";
	expires.setTime(expires.getTime() + seconds);
	document.cookie = escape(cookieName) + '=' + escape(cookieValue)
		+ (expires ? '; expires=' + expires.toGMTString() : '')
		+ (path ? '; path=' + path : '/')
		+ (domain ? '; domain=' + domain : '')
		+ (secure ? '; secure' : '');
}
 
//GetQueryString ***********************
var LocString=String(window.document.location.href);
function GetQueryString(str){
var rs=new RegExp("(^|)"+str+"=([^\&]*)(\&|$)","gi").exec(LocString),tmp;
if(tmp=rs)return tmp[2];
return null;
}

//VScroll 显示上翻单条标题************************
function _ge(a) {return document.getElementById?document.getElementById(a):null;}
function VScroll() {
	
	var m_box	= null;
	var m_lineHeight	= 0;
	var m_lineNum	= 0;
	var m_splitStr	= '';
	var m_speed	= 0;
	var m_delay	= 0;
	
	var m_pos	= 0;
	var m_stopTimes	= 0;
	var m_stop	= false;
	
	this.init	= function(box,lnum,lheight,speed,delay,split) {
		m_box		= _ge(box);
		m_lineNum	= lnum;  
		m_lineHeight	= lheight;   
		m_speed		= speed;        
		m_delay		= delay;           
		m_splitStr		= split;       
	}
	
	this.play	= function() {

		if ( m_stop ) {
			return;	
		}
		m_pos	= m_box.scrollTop;
		if( m_pos % m_lineHeight == 0 && m_stopTimes < m_delay && m_box.scrollTop < m_lineHeight * m_lineNum ) {
			m_stopTimes++;	
		} else {
			m_box.scrollTop++;
			if ( m_pos % m_lineHeight == 0 && m_stopTimes >= m_delay ) {
				m_stopTimes	= 0;	
			}	
		}
		if ( m_box.scrollTop > m_lineHeight * m_lineNum ) {
			m_box.scrollTop	= 0;
		}	
	}
	
	this.show	= function () {
		setInterval( m_self + ".play()", m_speed );	
	}
	this.setSelf = function(n) {
		m_self	= n;	
	}
	this.stop = function(n) {
		m_stop	= n;	
	}
	
}

function show_date() {
	
	var today	= new Date();
	var day	= new Array();
	var str	= '';
	
	day[0]	= "日";
	day[1]	= "一";
	day[2]	= "二";
	day[3]	= "三";
	day[4]	= "四";
	day[5]	= "五";
	day[6]	= "六";
	
	str	+= today.getFullYear();
	str	+= "年";
	str	+= today.getMonth() + 1;
	str	+= "月";
	str	+= today.getDate();
	str	+= "日";
	str	+= "&nbsp;";
	str	+= "星期";
	str	+= day[today.getDay()];
	
	return str;
}


function ap(url,data,info){ 
	var url,data,info
	var loading = iconload+'数据加载中...';
	createxmlhttp();
	if(window.document.readyState=="complete") {

	if (data=="" || data==null)
	{
		//getMode
		url += "&random="+Math.random();
		xmlhttp.open("get",url,true);
		xmlhttp.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded");
		xmlhttp.onreadystatechange= function () { checkState(info,loading); } ; 
		xmlhttp.send(null);
	}
	else
	{
		//postMode
		url += "&random="+Math.random();
		xmlhttp.open("post",url, true, "", "");
		xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
		xmlhttp.onreadystatechange= function () { checkState(info,loading); } 
		xmlhttp.send(data);
	}
	
	  }else {setTimeout("ap(url,data,info)", 500);   
 
 }
}	

function ap2(url,data,info){ 
	var url,data,info
	var loading = iconload;
	createxmlhttp();
	if (data=="" || data==null)
	{
		//getMode
		url += "&random="+Math.random();
		xmlhttp.open("get",url,true);
		xmlhttp.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded");
		xmlhttp.onreadystatechange= function () { checkState(info,loading); } ; 
		xmlhttp.send(null);
	}
	else
	{
		//postMode
		url += "&random="+Math.random();
		xmlhttp.open("post",url, true, "", "");
		xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); 
		xmlhttp.onreadystatechange= function () { checkState(info,loading); } 
		xmlhttp.send(data);
	}
}	


function  checkState(info,loadnews){
if (xmlhttp.readyState == 4){
		document.getElementById(info).innerHTML = loadnews;
		if(xmlhttp.status == 200){
			document.getElementById(info).innerHTML=xmlhttp.responseText; 
			}
	}
	else{
		document.getElementById(info).innerHTML=loadnews;
	}
}

//AJAX_END


//运行代码
function runEx(cod1)  {
	 cod=document.getElementById(cod1)
	  var code=cod.value;
	  if (code!=""){
		  var newwin=window.open('','','');  
		  newwin.opener = null 
		  newwin.document.write(code);  
		  newwin.document.close();
	}
}
//复制代码
function doCopy2(ID) { 
	if (document.all){
		 textRange = document.getElementById(ID).createTextRange(); 
		 textRange.execCommand("Copy");
alert('复制成功');
	}
	else{
		 alert("此功能只能在IE上有效")
	}
}
//复制代码
function doCopy(obj) {
	var rng = document.body.createTextRange();
	rng.moveToElementText(obj);
	rng.scrollIntoView();
	rng.select();
	rng.execCommand("Copy");
	rng.collapse(false);
}

function doCopyUrl() 
{ 
document.getElementById("CopyUrl").value=parent.location.href; 
document.getElementById("CopyUrl").select(); 
document.execCommand("copy");
alert("网址成功复制到剪贴板！")
} 

//另存代码
function doSave(obj) {
	var winname = window.open('', '_blank', 'top=10000');
	winname.document.open('text/html', 'replace');
	winname.document.writeln(obj.value);
	winname.document.execCommand('saveas','','code.htm');
	winname.close();
}

function findobj(n, d) {
	var p, i, x;
	if(!d) d = document;
	if((p = n.indexOf("?"))>0 && parent.frames.length) {
		d = parent.frames[n.substring(p + 1)].document;
		n = n.substring(0, p);
	}
	if(x != d[n] && d.all) x = d.all[n];
	for(i = 0; !x && i < d.forms.length; i++) x = d.forms[i][n];
	for(i = 0; !x && d.layers && i < d.layers.length; i++) x = findobj(n, d.layers[i].document);
	if(!x && document.getElementById) x = document.getElementById(n);
	return x;
}
function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
//screen thru every element in the form, and hunt down "submit" and "reset"
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
//disable em
tempobj.disabled=true
}
}
}
function openScript(url, width, height){
	var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
}

function CheckAll(form)  {
  for (var i=0;i<form.elements.length;i++)    {
    var e = form.elements[i];
    if (e.name != 'chkall')       e.checked = form.chkall.checked; 
   }
  }
  
function chkuserlogin() {
	if (getcookie('userid') == ''||getcookie('userid') == 0||getcookie('username') == '') {
		return false;
	}
	else {
		return true;
	}
}

function chkcookieed() {
	if (getcookie("username") !== "") {
	var url = "/ajax.asp?action=loginmenu";
	url += "&random="+Math.random();
	ap(url,null,null,"top_login"," ");
	}
}

function DecodeCookie(str)
{
    var strArr;
    var strRtn="";
    strArr=str.split("a");
    try{
        for (var i=strArr.length-1;i>=0;i--)
        strRtn+=String.fromCharCode(eval(strArr[i]));
    }catch(e){
    }
    return strRtn; 
}

function isnumber(str){ 
var digits="1234567890"; 
var i=0; 
var strlen=str.length; 
while((i<strlen)){ 
var char=str.charAt(i); 
if(digits.indexOf(char)==-1)return false;i++; 
} 
return true; 
} 

//检查非法字符
//str 要检查的字符
//badwords 非法字符 &|<>=
function checkbadwords(str, badwords) {
if (typeof (str) != "string" || typeof (badwords) != "string") {
return (false);
}
for (i=0; i<badwords.length; i++) {
bad = badwords.charAt(i);
for (j=0; j<str.length; j++) {
if (bad == str.charAt(j)) {
return false;
break;
}
}
}
return true;
}

function switchTag(tag,bar)
{
	for(i=1; i <6; i++)
	{
		if ("tag"+i==tag)
		{
			document.getElementById(tag).getElementsByTagName("a")[0].className="selectli"+i;
			document.getElementById(tag).getElementsByTagName("a")[0].getElementsByTagName("span")[0].className="selectspan"+i;
		}else{
			document.getElementById("tag"+i).getElementsByTagName("a")[0].className="";
			document.getElementById("tag"+i).getElementsByTagName("a")[0].getElementsByTagName("span")[0].className="";
		}
		if ("bar"+i==bar)
		{
			document.getElementById(bar).className="";
		}else{
			document.getElementById("bar"+i).className="hidebar";
		}
		document.getElementById("bar").className=bar;
	}
}
function switchNew(fornum,showname,lname,newid)
{
	for(i=1; i < fornum; i++)
	{
		if (lname+i==newid)
		{
			document.getElementById(newid).className=showname;
		}else{
			document.getElementById(lname+i).className="hidebar";
		}
	}
}

function bgc(cssid) {
			switch(cssid) {
			case 0	:	this.style.background='#FFFFFF';
			break;
			case 1	:	this.style.background='#E8F5FE';
			break;
			case 2	:	this.style.background='#FFFFDD';
			break;
			case 3	:	this.style.background='#F2FDDB';
			break;
			case 4	:	this.style.background='#FFE7F4';
			break;
			case 5	:	this.style.background='#F7F7F7';
			break;
			default :  this.style.background='#FFFFFF'; 
			}
}

function imgzoom(img,maxsize){
	var a=new Image();
	a.src=img.src
	if(a.width > maxsize * 4)
	{
		img.style.width=maxsize;
	}
	else if(a.width >= maxsize)
	{
		img.style.width=Math.round(a.width * Math.floor(4 * maxsize / a.width) / 4);
	}
	return false;
}
//function imgzoom(o){
//	if(event.ctrlKey) {
//		var zoom = parseInt(o.style.zoom, 10) || 100;
//		zoom -= event.wheelDelta / 12;
//		if(zoom > 0) {
//			o.style.zoom = zoom + '%';
//		}
//		return false;
//	} else {
//		return true;
//	}
//}
function CheckAll(form)
{
  for (var i=0;i<form.elements.length;i++)
    {
    var e = form.elements[i];
    if (e.Name != "chkAll"&&e.disabled!=true)
       e.checked = form.chkAll.checked;
    }
}

function addfav(favtitle,favform,favid)
{
location.href = "/account/user_Favorites.asp?url="+ document.URL +"&favtitle="+ favtitle +"&from="+ favform +"&id=" + favid;
}

function mto(aid) {
location.href = "/account/user_post.asp?aid=" + aid;
}

function apost(url){ 
	createxmlhttp();
		//getMode
		url += "&random="+Math.random();
		xmlhttp.open("get",url,true);
		xmlhttp.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded");
		//xmlhttp.onreadystatechange= function () { checkSeo(); } ; 
		xmlhttp.send(null);
}
function message(){
return false;
}
function  checkSeo(){
	var info = 'test';
	var loadnews = '正在加载';
if (xmlhttp.readyState == 4){
		document.getElementById(info).innerHTML = loadnews;
		if(xmlhttp.status == 200){
			var retext = xmlhttp.responseText;
			document.getElementById(info).innerHTML=retext;
		}
	}
	else{
		document.getElementById(info).innerHTML=loadnews;
	}
}
function setstyle(sid) {
	if (sid==1 || sid==2 || sid==3 || sid==4 || sid==5)
	{
				 setcookie('ali_style', sid, 600000);
				 document.all.css.href = 'http://www.alixixi.com/css/style'+ sid +'.css';

	}
	else {
	//return false;
	}
	
}

function tabit(btn){
	var idname = new String(btn.id);
	var s = idname.indexOf("_");
	var e = idname.lastIndexOf("_")+1;
	var tabName = idname.substr(0, s);
	var id = parseInt(idname.substr(e, 1));
	var tabNumber = btn.parentNode.childNodes.length;
	for(i=0;i<tabNumber;i++){
			document.getElementById(tabName+"_div_"+i).style.display = "none";
			document.getElementById(tabName+"_btn_"+i).className = "";
		};
		document.getElementById(tabName+"_div_"+id).style.display = "block";
		btn.className = "curr";
};

function navit(btn){
	var idname = new String(btn.id);
	var s = idname.indexOf("_");
	var e = idname.lastIndexOf("_")+1;
	var tabName = idname.substr(0, s);
	var id = parseInt(idname.substr(e, 2));
	var tabNumber = btn.parentNode.childNodes.length;
	for(i=0;i<tabNumber;i++){
			document.getElementById(tabName+"_div_"+i).style.display = "none";
			document.getElementById(tabName+"_btn_"+i).className = "";
		};
		document.getElementById(tabName+"_div_"+id).style.display = "block";
		btn.className = "on";
};

function showtab(btnid,tabid,tabnumber)
{
	for (i = 1;i<=tabnumber;i++)
	{
		document.getElementById(tabid+"_btn"+i).className = "tabpane";
		document.getElementById(tabid+"_sub"+i).className = "hidden";
	}
	document.getElementById(tabid+"_btn"+btnid).className = "select";
	document.getElementById(tabid+"_sub"+btnid).className = "";
}

function showtab_soft(btnid,tabid,tabnumber)
{
	for (i = 1;i<=tabnumber;i++)
	{
		document.getElementById(tabid+"_btn_s"+i).className = "tabpane";
		document.getElementById(tabid+"_sub_s"+i).className = "hidden";
	}
	document.getElementById(tabid+"_btn_s"+btnid).className = "select";
	document.getElementById(tabid+"_sub_s"+btnid).className = "";
}

function showtab_js(btnid,tabid,tabnumber)
{
	for (i = 1;i<=tabnumber;i++)
	{
		document.getElementById(tabid+"_btn_j"+i).className = "tabpane";
		document.getElementById(tabid+"_sub_j"+i).className = "hidden";
	}
	document.getElementById(tabid+"_btn_j"+btnid).className = "select";
	document.getElementById(tabid+"_sub_j"+btnid).className = "";
}
function ResumeError() {
return true;
}
window.onerror = ResumeError;
setstyle(getcookie('ali_style'));

