function init()
{
	//	Add your code stpes here
}
function showFront() {

}

function showBack() {

}

function ajaxFunction()
{
var xmlHttp;


try
   {
  //Firefox, Opera 8.0+, Safari
   xmlHttp=new XMLHttpRequest();
   }
catch (e)
   {

 // Internet Explorer
  try
     {
     xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
     }
  catch (e)
     {

     try
        {
       xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
     catch (e)
        {
        alert("您的浏览器不支持AJAX！");
        return false;
        }
     }
   }
   
   xmlHttp.onreadystatechange=function()
 {
 if(xmlHttp.readyState==4)
   {
   document.myForm.time.value=xmlHttp.responseText;
   alert("ok");
   }
 }

  xmlHttp.open("GET","http://221.130.6.210/time.asp",true);
   xmlHttp.send(null);  
 
   
}

function showHint()
{
var xmlHttp;


try
   {
  // Firefox, Opera 8.0+, Safari
   xmlHttp=new XMLHttpRequest();
   }
catch (e)
   {

 // Internet Explorer
  try
     {
     xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
     }
  catch (e)
     {

     try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
     catch (e)
        {
        alert("您的浏览器不支持AJAX！");
        return false;
        }
     }
   }
   
   xmlHttp.onreadystatechange=function()
 {
 if(xmlHttp.readyState==4)
   {
   document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
	
   //alert("ok");
   }
 }

  xmlHttp.open("GET","http://www.tieyuanky.com/gs_news.asp",true);
   xmlHttp.send(null);  
   
   
}

function showHint_h()
{
var xmlHttp;


try
   {
  // Firefox, Opera 8.0+, Safari
   xmlHttp=new XMLHttpRequest();
   }
catch (e)
   {

 // Internet Explorer
  try
     {
     xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
     }
  catch (e)
     {

     try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
     catch (e)
        {
        alert("您的浏览器不支持AJAX！");
        return false;
        }
     }
   }
   
   xmlHttp.onreadystatechange=function()
 {
 if(xmlHttp.readyState==4)
   {
   document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
	
   //alert("ok");
   }
 }

  xmlHttp.open("GET","http://www.tieyuanky.com/hy_news.asp",true);
   xmlHttp.send(null);  
   
   
}


function get_hdcx()
{
var xmlHttp;


try
   {
  // Firefox, Opera 8.0+, Safari
   xmlHttp=new XMLHttpRequest();
   }
catch (e)
   {

 // Internet Explorer
  try
     {
     xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
     }
  catch (e)
     {

     try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
     catch (e)
        {
        alert("您的浏览器不支持AJAX！");
        return false;
        }
     }
   }
   
   xmlHttp.onreadystatechange=function()
 {
 if(xmlHttp.readyState==4)
   {
   document.getElementById("get_hdcx").innerHTML=xmlHttp.responseText;
   //document.getElementById("get_hdcx").innerHTML="ok"
	
   //alert("ok");
   //alert (document.all.hdbh.value);
   }
 }
var str;
str=document.search.hdbh.value;
//alert (str);
  //xmlHttp.open("GET","http://www.tieyuanky.com/get_hdcx.asp?hdbh="+str,true);
  xmlHttp.open("GET","http://localhost:8082/ty_yc/get_hdcx.asp?hdbh="+str,true);
   xmlHttp.send(null);  
   
   
}

function get_hdcx_m()
{
var xmlHttp;


try
   {
  // Firefox, Opera 8.0+, Safari
   xmlHttp=new XMLHttpRequest();
   }
catch (e)
   {

 // Internet Explorer
  try
     {
     xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
     }
  catch (e)
     {

     try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
     catch (e)
        {
        alert("您的浏览器不支持AJAX！");
        return false;
        }
     }
   }
   
   xmlHttp.onreadystatechange=function()
 {
 if(xmlHttp.readyState==4)
   {
   document.getElementById("get_hdcx").innerHTML=xmlHttp.responseText;
   //document.getElementById("get_hdcx").innerHTML="ok"
	
   //alert("ok");
   //alert (document.all.hdbh.value);
   }
 }
var str;
str=document.all.hdbh.value;
//alert (str);
  //xmlHttp.open("GET","http://www.tieyuanky.com/get_hdcx.asp?hdbh="+str,true);
  xmlHttp.open("GET","http://www.tieyuanky.com/get_hdcx_m.asp?hdbh="+str,true);
   xmlHttp.send(null);  
   
   
}












function $(id)
{
return document.all[id];
}
function asum()
{
   var xhr=new ActiveXObject("Microsoft.XMLHTTP");
	Dom=null;
	xhr.open("get","http://www.tieyuanky.com/gs_news.asp",true);
   xhr.onreadystatechange=$CallBack;
   xhr.send(null);  



 
  function $CallBack()
  {
     if(xhr.readystate==1)
     {
        $("newsList").innerHTML="正在连结服务器";
     }
     else if(xhr.readystate==2 || xhr.readystate==3)
     {
        $("newsList").innerHTML="正在查询";
     }
     else if(xhr.readystate==4)
     {
    if (xhr.status==200)
    {
    Dom=xhr.responseXML;    //返回xml格式
	 $showList();

}
     }
	    }
		
		
		
   function $showList()            //$用于函数内调用,,{}里面调用
	{
	 var count="";	
	 var html="";
	 var items=Dom.selectNodes("//item");
	 count=Dom.selectSingleNode("//data").getAttribute("count"); //总数量
	  for(var i=0;i<count;i++)
 {
      html+="<div id=\"title\" fontcolor=\"black\">"+items[i].selectSingleNode("hits").text+" "+items[i].selectSingleNode("hits1").text+" "+items[i].selectSingleNode("hits2").text+" "+items[i].selectSingleNode("hits1").text+"</div>";
 }
 $("newsList").innerHTML=html;
	 
	}
  
  
}








