// JavaScript Document
//document.write("")
var request_VisitorID=0;
var request_Company=0;
var code_company='555933263624846746f3c2f8876be0e608f3c2f**76be0e60*';
var Timer_Ajax_getMsg;
var FlashhasSend=false;
var FlashObject=null;
var visitor;
loadSWF('46');
function loadSWF(num)
{
if(IsFlash()>=1)
{
document.write("
")
document.write("");
document.write("
")
FlashObject=thisMovie("flashSO")
//alert(FlashObject);
}
else
{
flashCallAjax(0)
}
}
function jsCallFlashWriteSO(num)
{
//alert(num)
try
{
FlashObject=thisMovie("flashSO");
if(FlashObject!=null)
FlashObject.JSchangeFlashSO(num);
}
catch(e)
{
}
}
function jsCallFlashGetSO()
{
var isError=false;
if(IsFlash()>=8)
{
try
{
return FlashObject.JSgetFlashSO()
}
catch(e)
{
isError=true;
}
}
if(isError)
{
var start=new Date().getTime();
while(true)
{
if(new Date().getTime()-start>1000)
break;
}
return FlashObject.JSgetFlashSO();
}
return 0;
}
function getClientInfor(svisitorID)
{
request_VisitorID=svisitorID;
window.onerror=null;
var cHeight = window.screen.height;
var cWidth = window.screen.width;
var cBitDepth = screen.colorDepth;
var cScreen=escape(screen.width + "*" + screen.height);
var cUTC=meizz();
var cInfor=getHTTPinfor(document.referrer)
if (cBitDepth == null)
{
cBitDepth = winodow.screen.pixelDepth;
}
var cRef=escape(document.referrer);
var date=new Date()
var query="ref=" + cRef + "&screen="+ cScreen + "&bit=" + cBitDepth + "&alexa=" + doTryAlexa()+ "&utc=" +cUTC+"&key="+escape(cInfor.key) + "&charset=" + cInfor.charset + "&searcher="+ cInfor.searcher + "&soid=" + svisitorID + "&flash=" + IsFlash() + "&other=" + date.getSeconds();
//document.write(query);
// alert(query)
return query;
}
function doTryAlexa()
{
try
{
aborted();
return 1;
}
catch(e)
{
return 0;
}
}
function meizz()
{
var dateTimeString = "Thursday, 9 December 2004 12:39:00 GMT";
var dateTimeObject = new Date(dateTimeString);
var timezoneOffset = new Date().getTimezoneOffset()/60*-1;
return timezoneOffset;
}
function recvInviteMsg()
{
if(request_VisitorID!=0)
{
var date=new Date()
var src="http://hi.uio.cc/Service/serviceForSeeInvite.asp?inviteid="+ request_VisitorID + "&randomtime=" + date.getSeconds();
includeJsFile("AJax_Script_Request",src);
//alert("http://hi.uio.cc/Service/serviceForSeeInvite.asp?inviteid="+ request_VisitorID + "&randomtime=" + date.getSeconds());
}
}
function getHTTPinfor(url)
{
var searcher=
{
google:{ query:"q", charset:"utf8" ,domain:["www.google.com","www.google.cn"]},
baidu:{ query:"wd", charset:"gb2312",domain:["www.baidu.com"]},
soso:{ query:"w", charset:"gb2312",domain:["www.soso.com"]},
yahoo:{ query:"p", charset:"utf8",domain:["search.yahoo.com","one.cn.yahoo.com"] },
youdao:{ query:"q", charset:"utf8",domain:["www.youdao.com"] },
lycos:{ query:"query", charset:"utf8",domain:["www.lycos.com"] },
alltheweb:{ query:"q", charset:"utf8" ,domain:["www.alltheweb.com"] },
zhongsou:{ query:"word", charset:"gb2312" ,domain:["www.zhongsou.com"]},
onseek:{ query:"query", charset:"utf8",domain:["www.onseek.com"] },
bing:{ query:"q", charset:"utf8" ,domain:["www.bing.com","cn.bing.com"]},
iask:{ query:"_searchkey", charset:"gb2312" ,domain:["www.iask.com","iask.com"]},
openfind:{ query:"q", charset:"utf8" ,domain:["oes.openfind.com"]},
yesky:{ query:"wd", charset:"gb2312",domain:["www.alltheweb.com"] },
beijixing:{ query:"query", charset:"gb2312",domain:["www.alltheweb.com"] },
gougou:{ query:"search", charset:"utf8",domain:["www.gougou.com","gougou.com"] }
}
var p={key:"",searcher:"",charset:""};
var paras=""
var arrstr=url.split("?");
if(arrstr.length>=2)
{
var sitedomain=url.substring(7,url.indexOf('/',7));
var peir=arrstr[1].split("&");
for(se in searcher)
{
var isFound=false;
for(var indexII=0;indexII=2)
p.key=tmp[1];
}
//特殊情况
if(tmp[0]=="ie" && tmp[1]=="gb")
{
p.charset="gb2312"
}
if(tmp[0]=="ei" && tmp[1]=="gbk")
p.charset="gb2312"
}
}
}
}
return p;
}
function hiCheckIsMobile(Inform,Inputname,Mobile){
if (!hiCheckIsNull(Inform,Inputname,Mobile))return false;
else{
var Form=Inform+"."
Temp = $$(Inputname).value ;
//eval("Temp="+Form+Inputname+".value;");
if(Temp.search(/^1[3|5]\d{9}$/)==-1)
{ alert("提醒您:"+Mobile+"不为合法手机号码!");
//eval(Form+Inputname+".focus();");
return false;
}
else{
// eval(Form+Inputname+".className="+Form+Inputname+".className.replace('RedInput','');");
return true;
}
}
}
function hiCheckLength(Inform,Inputname,Inputvalue,InputMinSize,InputMaxSize){
//验证是否为空!
if (!hiCheckIsNull(Inform,Inputname,Inputvalue))
return false;
else
{
var Form=Inform+"."
Temp = $$(Inputname).value ;
//eval("Temp="+Form+Inputname+".value;");
if (Temp.lengthparseInt(InputMaxSize))
{
alert(Inputvalue+"的长度必须在"+InputMinSize+"-"+InputMaxSize+"之间!");
//eval(Form+Inputname+".focus();");
return false;}
else{
return true;
}
}
}
function hiCheckIsNull(Inform,Inputname,Inputvalue){
var Form=Inform+"."
Temp = $$(Inputname).value ;
//eval("Temp="+Form+Inputname+".value;");
if(Temp=="")
{
alert("提醒您:"+Inputvalue+"不能为空!");
//eval(Form+Inputname+".focus();");
return false;
}
else
{
//eval(Form+Inputname+".className="+Form+Inputname+".className.replace('RedInput','');");
return true;
}
}
function $$(id)
{
return document.getElementById(id);
}
function $$(id)
{
return document.getElementById(id);
}
var chatPreDiv=0;
function showChatDiv(userID)
{
if(chatPreDiv==0)
chatPreDiv=userID;
var chatDiv=$$('chatDivonline');
if(chatDiv!=null)
{
AjaxSayHello(request_VisitorID,userID);
chatDiv.style.display='block';
}
else
makeChatDiv(userID);
}
function makeChatDiv(userID)
{
var chatDiv=document.createElement("div");
var chatHTML="