﻿function getXMLRequester(){
   var xmlHttp;
   if (window.XMLHttpRequest){
       xmlHttp = new XMLHttpRequest();
       if (xmlHttp.overrideMimeType) {
         xmlHttp.overrideMimeType('text/xml');   }
   }else if (window.ActiveXObject){
       try{
              xmlHttp = new ActiveXObject("Msxml2.XMLHTTP.3.0");
       } 
       catch (e){
                try{xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");}
                catch(e){
                     alert('对不起您的浏览器版本太低，请更新后使用。');
                    }
          }   
   }
   return xmlHttp;
}
 function to(id)
 {
    var path=escape("\\pubweb\\htm\\tanzhen"+id+".htm");
    var serverPath=window.location.href.toLowerCase();
    serverPath=serverPath.substr(0,window.location.href.indexOf("/pubweb/product.aspx"))
    var url = serverPath +"/webServer/xsMain.asmx/FileBodyGet?path="+path;
    var xmlHttp=getXMLRequester();
    xmlHttp.open("get",url,true);
    xmlHttp.onreadystatechange = function(){
         if ((xmlHttp.readyState == 4) && (xmlHttp.status == 200)){
            $get("dvBody").innerHTML =xmlHttp.responseXML.getElementsByTagName("string")[0].text;
            if(navigator.userAgent.indexOf("Firefox")>0)
                 $get("dvBody").innerHTML =xmlHttp.responseXML.childNodes[0].textContent;
            xmlHttp = null;
           $get("spMsg").innerHTML="";
           var t1=$get("spTitle");
           switch(id){
               case 1:t1.innerText="整体介绍";break;
               case 2:t1.innerText="应用价值";break;
               case 3:t1.innerText="应用案例";break;
               case 4:t1.innerText="特色与优势";break;
               case 5:t1.innerText="价格与服务";break;
               case 6:t1.innerText="购买指南";break;
               case 7:t1.innerText="探针OA办公系统 - 可选组件";break;
               default: break;
           }
        }    
    }
    xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 
    xmlHttp.send(null);
    $get("spMsg").innerHTML="<img src='img/loading.gif' height='12px'/> 正在读取数据，请稍候..." ;
 }
 function disDoc(id){oWin("DocDis.aspx?id="+id,1,850,700);};
 function disP(id){oWin("htm/TanzhenS"+id+".htm",1,400,500)}
function logon(){oWin("Logon.aspx?id="+$get("seleLoginName").value,1)}
function ask(t){window.open("ask.aspx?t="+t,'',"menubar=0,toolbar=0,scrollbars=0,resizable=0,status=1,location=0,width=550, height=340");};