function tips()
{var showtips=false;var jsclose=document.getElementById("JavascriptSet");var cookieclose=document.getElementById("CookieSet");if(jsclose.innerHTML.toLowerCase().indexOf("close")!=-1)
{showtips=true;jsclose.style.color="#0F0";jsclose.innerHTML="<a href=\"http://www.163.com\" target=\"_blank\" title=\"visit setings info\">Close</a>";}
if(cookieclose.innerHTML.toLowerCase().indexOf("close")!=-1)
{showtips=true;cookieclose.style.color="#0F0";cookieclose.innerHTML="<a href=\"http://www.163.com\" target=\"_blank\" title=\"visit setings info\">Close</a>";}
var top=document.getElementById("top");if(showtips)
{top.innerHTML="Sorry!~Your browser settings to make certain you can not visit our Web site, according to prompt the opening set.";}
else
{top.innerHTML="You are welcome to use the detection tool.";}}
function showlinks()
{var description=document.getElementById("description");var links=document.getElementById("links");var JSON={"firefox":"http://www.mozilla.org/","msie":"http://www.microsoft.com/singapore/windows/default.mspx","safari":"http://www.apple.com.cn/safari/download/","opera":"http://www.opera.com/index.dml","chrome":"http://www.google.com/chrome/index.html"};var BrowserName=document.getElementById("BrowserName");for(var val in JSON)
{if(BrowserName.innerHTML.toLowerCase().indexOf(val)>-1)
{description.innerHTML="Now you are using a browser that is: ";description.innerHTML+="<font style=\"color:#000099;\">"+BrowserName.innerHTML+"</font><br/>";description.innerHTML+="What is related to the browser to download the official address (recommended to download the full version of the official)";links.innerHTML="";links.innerHTML+="<a href=\""+JSON[val]+"\" target=\"_blank\">"+JSON[val]+"</a>";return;}
else
{description.innerHTML="Now you are using a browser that is: <br/>";description.innerHTML+="<font style=\"color:#000099;\">Unknown</font><br/>";description.innerHTML+="What is related to the browser to download the official address (recommended to download the full version of the official)";links.innerHTML="";links.innerHTML+=val.toUpperCase()+": <a href=\""+JSON[val]+"\" target=\"_blank\">"+JSON[val]+"</a>";}}}
function showdiv()
{var download=document.getElementById("download");var table1=document.getElementById("table1");if(download.style.display=="")
{download.style.display="none";table1.style.display="none";}
else
{download.style.display="";table1.style.display="";showlinks();}}
function cc()
{var cookies=document.getElementById("CookieSet");if(document.cookie=="")
{cookies.style.color="#0F0";cookies.innerHTML="<font style='color:#C00'>Close</font> &nbsp; [ <a href='help.mht' target='_blank'>Help?</a> ]";document.Form1.cookieexists.value="false"}else{document.Form1.cookieexists.value="true"
cookies.innerHTML="<font style='color:#C00'>Open</font>";}}
document.cookie='killme'+escape('nothing')
function browsers()
{var userinfo=navigator.userAgent.toLowerCase();var U_BS=/(firefox|netscape|opera|chrome|msie|safari).?[\d\.]+/.exec(userinfo);var bowsersname=document.getElementById("BrowserName");bowsersname.innerHTML=U_BS[0].replace(" ","/").toUpperCase();}
function optionsystem()
{var userinfo=navigator.userAgent.toLowerCase()
this.U_OS=/(windows) (nt) ([0-9]+)\.([0-9]+)/.exec(userinfo);var os="";switch(this.U_OS[0])
{case"windows nt 5.0":os="Windwos 2000";break;case"windows nt 5.1":os="Windwos xp";break;case"windows nt 5.2":os="Windows 2003";break;case"windows nt 6.0":os="Windows Vista";break;}
var OptionSystems=document.getElementById("OptionSystem");OptionSystems.innerHTML=os;}
function newxmlhttp()
{var xmlhttp=null;if(window.XMLHttpRequest){xmlhttp=new XMLHttpRequest();}
if(!xmlhttp&&window.ActiveXObject){try{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP.5.0");}catch(e){try{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP.4.0");}catch(e){try{new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}}}
return xmlhttp;}
function getHTML(URL)
{var xmlhttp=newxmlhttp();xmlhttp.open("GET",URL,false);try{xmlhttp.send(null);var result=xmlhttp.status;}catch(e){return(false);}
if(result==200){return(xmlhttp.responseText);}
delete(xmlhttp)}
window.onload=function(){browsers();optionsystem();cc();var ipaddress=document.getElementById("Ipaddress");ipaddress.innerHTML="<font style='color:#C00;'>"+getHTML("http://track.yoothy.com/testing/default.aspx").substring(0,12)+"</font>";var ClientInfos=document.getElementById("ClientInfo");ClientInfos.innerHTML=navigator.userAgent;var JavascriptSets=document.getElementById("JavascriptSet");JavascriptSets.innerHTML="<font style='color:#C00;'>Open</font>";var tops=document.getElementById("top");tops.innerHTML="You are welcome to use the test system !!!";};