function getunionCookie(Name) { var search = Name + "=" ; if(document.cookie.length > 0) { offset = document.cookie.indexOf(search) if(offset != -1) { offset += search.length end = document.cookie.indexOf(";", offset) if(end == -1) end = document.cookie.length return unescape(decodeURI(decodeURI(document.cookie.substring(offset, end)))); } else return ""; } } (function(){ var SiteName=location.hostname; var pageUrl,Parameter,part2='',a='',UnionREFERER; UnionREFERER = escape(getunionCookie("UnionREFERER")); pageUrl = window.location.href.toString(); Parameter = pageUrl.split("?"); part2 = Parameter[1]!=undefined?Parameter[1]:''; var Obj,oScript; Obj = document.getElementsByTagName("HEAD").item(0); oScript= document.createElement("script"); oScript.type = "text/javascript"; oScript.defer = "defer"; var part3 = part2==''?"uref="+UnionREFERER:part2+"&uref="+UnionREFERER; oScript.src="https://wx.233.com/search/getUnionID.asp?"+part3; Obj.appendChild(oScript); })()