document.writeln('
')
function SetCookie(a, b) {
var c = 60,
d = new Date;
d.setTime(d.getTime() + 1e3 * 60 * 60 * 24 * c),
document.cookie = a + "=" + escape(b) + ";expires=" + d.toGMTString() + ";path=/;"
}
function GetCookie(a) {
var b = document.cookie.match(new RegExp("(^| )" + a + "=([^;]*)(;|$)"));
return null != b ? unescape(b[2]) : ""
}
function DelCookie(a) {
var c,
b = new Date;
b.setTime(b.getTime() - 1),
c = GetCookie(a),
null != c && (document.cookie = a + "=" + c + ";expires=" + b.toGMTString() + ";path=/;")
}
$(document).ready(function(){
var youkeid=GetCookie("yokeid");
if (youkeid==""){youkeid="751659384";SetCookie("yokeid","751659384") }
$("#clientid").val(youkeid)
});
function getselkefu(){
var youkeid=GetCookie("yokeid");
var ajax=new AJAXRequest;ajax.async=false;
ajax.get("/kefu/msg.asp?action=selkefu&uid=JS42244&companyuserid=34531&username=&clientid="+youkeid,function(obj){result=obj.responseText;
art.dialog({
title:'Ρ‘ΤρΏΝ·ώ',
width:300,
id:'kefu1',
content: result
});
})
}
var parseQueryString = function () {
var str = window.location.search;
var objURL = {};
str.replace(
new RegExp("([^?=&]+)(=([^&]*))?", "g"),
function ($0, $1, $2, $3) {
objURL[ $1 ] = $3;
}
);
return objURL;
};
var params = parseQueryString();
function getwd(){
var nurl=location.href;
var proid="";
if(nurl.search("prodetail.asp")>0){
proid=params["id"];
}
var youkeid=GetCookie("yokeid");
var ajax=new AJAXRequest;ajax.async=false;
ajax.get("/kefu/msg.asp?action=selwd&uid=JS42244&companyuserid=34531&clientid="+youkeid+"&proid="+proid,function(obj){result=obj.responseText;
if (result=="0"){$("#msgcount").hide()}
else{$("#msgcount").show();$("#msgcount").html(result)}
})
}
setInterval("getwd()",5000)