function  AutoPage(y)  
{
 var url = location.href;
 var key = url.substring(url.indexOf("=")+1,url.length);
   if (!y) 
   {
     y=1;
   }
   var xmlhttp;
   var yy;
   if (window.ActiveXObject) {
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
   }else if(window.XMLHttpRequest)  {
      xmlhttp=new XMLHttpRequest();
   }
   if (xmlhttp) {
        xmlhttp.onreadystatechange=function () {
			    show("<img src=\"../images/loading.gif\" width=\"12\" height=\"12\" alt=\"\" />loading...")
                  if(xmlhttp.readyState==4)  {
                      if(xmlhttp.status==200)  {
                         yy=unescape(xmlhttp.responseText);
                         show(yy);
                                    
                       }else {
                          alert("error");
                   }
          }
                } 
            xmlhttp.open("get","servicedata.asp?page="+y);
                xmlhttp.send(null);
    }               
}
function show(text) {

document.getElementById("case").innerHTML=text;
}

function $obj(obj)
{
  return document.getElementById(obj);
}

//标签切换
function showshow(s_id,max,sel)
{ 
	for(i=1;i<=max;i++)
	{
		$obj(s_id + i).style.display = 'none';	
		$obj(s_id + i + '_a').className = '';
	}
	$obj(s_id + sel).style.display = '';
	$obj(s_id + sel + '_a').className = 'after';
}


