function AddFav(sUrl, sTitle) {
  if ( window.sidebar && "object" == typeof( window.sidebar ) && "function" == typeof( window.sidebar.addPanel ) ) {
    window.sidebar.addPanel( sTitle, sUrl, '' );    
  } else if ( document.all && "object" == typeof( window.external ) ) {
    window.external.addFavorite( sUrl, sTitle );
  }
}
function $(o){
 var o=document.getElementById(o)?document.getElementById(o):o;
 return o;
}

function GetO(){
		    var ajax=false; 
		    try {
		    	ajax = new ActiveXObject("Msxml2.XMLHTTP"); 
		    } catch (e) { 
		   	 	try { 
		    		ajax = new ActiveXObject("Microsoft.XMLHTTP"); 
		    	} catch (E) { 
		    		ajax = false; 
		    	} 
		    }
		    if (!ajax && typeof XMLHttpRequest!='undefined') { 
		    	ajax = new XMLHttpRequest(); 
		    } 
		    return ajax;
		}
		 function jishuqi(id,serverPage, objID){ 
		 if(id!=""){ 
		 	var ajax = GetO();
		    ajax.open("GET", "jsq.asp?id="+id+"", true); 
		    ajax.send(null); 
			  if (serverPage!=null&objID!=null){
			  		setTimeout("getMyHTML('"+serverPage+"?time="+new Date()+"','"+objID+"')", 10);
			  }
		  }
	     } 

        function getMyHTML(serverPage, objID) { 
			var ajax = GetO();
		    var obj = document.getElementById(objID); 
		    ajax.open("GET", ""+serverPage+"?time="+new Date()+"", true); 
		    ajax.onreadystatechange = function() { 
		        if (ajax.readyState == 4 && ajax.status == 200) { 
						obj.innerHTML = ajax.responseText; 
		        } 
		    } 
		    ajax.send(null); 
		} 
        function getMyHTML2(serverPage, objID) { 
			var ajax = GetO();
		    var obj = document.getElementById(objID); 
		    ajax.open("GET", ""+serverPage+"&time="+new Date()+"", true); 
		    ajax.onreadystatechange = function() { 
		        if (ajax.readyState == 4 && ajax.status == 200) { 
						obj.innerHTML = ajax.responseText; 
		        } 
		    } 
		    ajax.send(null); 
		} 

function indextk(id) 
{ 

for(i=1;i<6;i=i+1)
{
	if(i!=id) 
	{ 
	document.getElementById("jqtkmenu"+i).src="web_images/jqtkmenu"+i+".gif"; 
	document.getElementById("indexjqtk"+i).style.display="none"; 
	}
	else {
	getMyHTML2('indexjqtk.asp?id='+i,'indexjqtk')
	document.getElementById("jqtkmenu"+i).src="web_images/jqtkmenu"+i+"_1.gif"; 
	document.getElementById("indexjqtk"+i).style.display=""; 
	}
}
}

function LoadFlash(url,wmode,width,Height)
{ 
document.write(
  '<embed src="' + url + '" wmode=' + wmode +
  ' quality="high" pluginspage=http://www.macromedia.com/go/getflashplayer type="application/x-shockwave-flash" width="' + width +
  '" height="' + Height + '"></embed>');   
}
function high(which2)
{
theobject=which2
highlighting=setInterval("highlightit(theobject)",10)
}
function low(which2)
{
clearInterval(highlighting)
which2.filters.alpha.opacity=50
}
function low2(which2)
{
clearInterval(highlighting)
which2.filters.alpha.opacity=90
}
function highlightit(cur2)
{
if(cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if(window.highlighting)
clearInterval(highlighting)
}
function img(obj,zt,sys){
var img = document.getElementById("img");
img.style.filter="revealTrans(duration=1)";
img.style.filter="revealTrans(transition=23)";
img.filters(0).apply();
img.src = obj;
img.filters(0).play();
document.all.zt.innerHTML=zt;
document.all.sys.innerHTML=sys;
}
