function checkId(userId){ //判断浏览者是否安装了贸易通 if (NewCheckAlitalkInstalled()){ window.location = "Alitalk:SendIM?"+userId; }else{ //提示安装贸易通 window.target="_blank"; window.open("http://china.alibaba.com/community/turbine/template/community%2CATCPromotionDown"); } } function NewCheckAlitalkInstalled() { var obj; try { obj = new ActiveXObject("AlitalkSetup.Install"); } catch(e) { } if (null!=obj) { return true; } else { return false; } } function Strmenu() { eval("close1.style.display=\"none\";"); } function initWebPolice() { var sgDump=null; // document.write('
'); document.write('

'); document.write('  248428608
'); document.write('  894178617
'); document.write('  805671178
'); document.write('  85384771
'); document.write('  272085925
'); document.write('
'); // sgDump = MoveLayer("1"); sgDump = MoveLayer("2"); } initWebPolice() function MoveLayer(wpLayer,wpHeight,wpWidth){ var DivObj = document.getElementById('WebPoliceLayer'+wpLayer); if (DivObj){ _divTop = parseInt(DivObj.style.top,10); _divLeft = parseInt(DivObj.style.left,10); if (1==wpLayer){ _divHeight = parseInt(DivObj.offsetHeight,10); _divWidth = parseInt(DivObj.offsetWidth,35); }else{ _divHeight = parseInt(DivObj.offsetHeight,10); _divWidth = parseInt(DivObj.offsetWidth,10); } if (navigator.userAgent.indexOf("Firefox") >= 0 || navigator.userAgent.indexOf("Opera") >= 0) { var _docWidth = parseInt((document.body.clientWidth > document.documentElement.clientWidth)?document.body.clientWidth:document.documentElement.clientWidth);//document.body.clientWidth; var _docHeight = parseInt((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight); }else{ var _docWidth = parseInt((document.documentElement.clientWidth == 0)?document.body.clientWidth:document.documentElement.clientWidth); var _docHeight = parseInt((document.documentElement.clientHeight == 0)?document.body.clientHeight:document.documentElement.clientHeight); } DivObj.style.top = parseInt((document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop),10) + _docHeight - _divHeight-80 +"px";; DivObj.style.left = _docWidth - _divWidth-5 +"px"; } //window.status="y:"+DivObj.style.top+";x:"+DivObj.style.left; setTimeout('MoveLayer("'+wpLayer+'")', 10) }