/**
* listtype，如果是采购信息取3，其他信息取1
* count，是数组大小，即对应的列表行数
* style，是显示的格式，从1-7
* imform，字符串，用于纪录日志
* name，显示im的span的id，若不传，就用默认的名字TmLayer
**/


var gService = true; 
 var gTimeZone = +8; 
 // Code section for Enable First-Party Cookie Tracking 
 function dcsCookieIm(){ 
 	if (typeof(dcsOther)=="function"){ 
 		dcsOther(); 
 	} 
 	else if (typeof(dcsPlugin)=="function"){ 
 		dcsPlugin(); 
 	} 
 	else if (typeof(dcsFPCIm)=="function"){ 
 		dcsFPCIm(gTimeZone); 
 	} 
 } 
 function dcsGetCookieIm(name){ 
 	var pos=document.cookie.indexOf(name+"="); 
 	if (pos!=-1){ 
 		var start=pos+name.length+1; 
 		var end=document.cookie.indexOf(";",start); 
 		if (end==-1){ 
 			end=document.cookie.length; 
 		} 
 		return unescape(document.cookie.substring(start,end)); 
 	} 
 	return null; 
 } 
 function dcsGetCrumbIm(name,crumb){ 
 	var aCookie=dcsGetCookieIm(name).split(":"); 
 	for (var i=0;i<aCookie.length;i++){ 
 		var aCrumb=aCookie[i].split("="); 
 		if (crumb==aCrumb[0]){ 
 			return aCrumb[1]; 
 		} 
 	} 
 	return null; 
 } 
 function dcsFPCIm(offset){ 
 	if (typeof(offset)=="undefined"){ 
 		return; 
 	} 
 	var name=gFpc; 
 	var dCur=new Date(); 
 	dCur.setTime(dCur.getTime()+(dCur.getTimezoneOffset()*60000)+(offset*3600000)); 
 	var dExp=new Date(dCur.getTime()+315360000000); 
 	var dSes=new Date(dCur.getTime()); 
 	if (document.cookie.indexOf(name+"=")!=-1){ 
 		var id=dcsGetCrumbIm(name,"id"); 
 		var lv=parseInt(dcsGetCrumbIm(name,"lv")); 
 		var ss=parseInt(dcsGetCrumbIm(name,"ss")); 
 		if ((id==null)||(id=="null")||isNaN(lv)||isNaN(ss)){ 
 			return; 
 		} 
 		WTIm.co_f=id; 
 		WTIm.vt_f="0"; 
 		WTIm.vt_f_a="0"; 
 		var dLst=new Date(lv); 
 		dSes.setTime(ss); 
 		if ((dCur.getTime()>(dLst.getTime()+1800000))||(dCur.getTime()>(dSes.getTime()+28800000))){ 
 			dSes.setTime(dCur.getTime()); 
 			WTIm.vt_f_s="1"; 
 		} 
 		if ((dCur.getDay()!=dLst.getDay())||(dCur.getMonth()!=dLst.getMonth())||(dCur.getYear()!=dLst.getYear())){ 
 			WTIm.vt_f_d="1"; 
 		} 
 	} 
 	else{ 
 		var tmpname=name+"_TMP="; 
 		document.cookie=tmpname+"1"; 
 		if (document.cookie.indexOf(tmpname)!=-1){ 
 			document.cookie=tmpname+"; expires=Thu, 01-Jan-1970 00:00:01 GMT"; 
 			if ((typeof(gWtId)!="undefined")&&(gWtId!="")){ 
 				WTIm.co_f=gWtId; 
 				WTIm.vt_f="0"; 
 			} 
 			else if ((typeof(gTempWtId)!="undefined")&&(gTempWtId!="")){ 
 				WTIm.co_f=gTempWtId; 
 				WTIm.vt_f="1"; 
 			} 
 			else{ 
 				WTIm.co_f="2"; 
 				var cur=dCur.getTime().toString(); 
 				for (var i=2;i<=(32-cur.length);i++){ 
 					WTIm.co_f+=Math.floor(Math.random()*16.0).toString(16); 
 				} 
 				WTIm.co_f+=cur; 
 				WTIm.vt_f="1"; 
 			} 
 			WTIm.vt_f_a=(typeof(gWtAccountRollup)!="undefined")?"0":"1"; 
 			WTIm.vt_f_s="1"; 
 			WTIm.vt_f_d="1"; 
 		} 
 		else{ 
 			WTIm.vt_f="2"; 
 			WTIm.vt_f_a="2"; 
 			return; 
 		} 
 	} 
 	WTIm.co_f=escape(WTIm.co_f); 
 	WTIm.vt_sid=WTIm.co_f+"."+dSes.getTime(); 
 	var expiry="; expires="+dExp.toGMTString(); 
 	document.cookie=name+"="+"id="+WTIm.co_f+":lv="+dCur.getTime().toString()+":ss="+dSes.getTime().toString()+expiry+"; path=/"+(((typeof(gFpcDom)!="undefined")&&(gFpcDom!=""))?("; domain="+gFpcDom):("")); 
 } 

 // Code section for Use the new first-party cookie generated with this tag. 
 var gFpc="WT_FPC"; 
 var gWtId=""; 
 var gTempWtId=""; 
 if (gService){ 
 	var gConvert=true; 
 } 

 function dcsMultiTrackIm(){ 
 	for (var i=0;i<arguments.length;i++){ 
 		if (arguments[i].indexOf('WT.')==0){ 
 				WTIm[arguments[i].substring(3)]=arguments[i+1]; 
 				i++; 
 		} 
 		if (arguments[i].indexOf('DCS.')==0){ 
 				DCSIm[arguments[i].substring(4)]=arguments[i+1]; 
 				i++; 
 		} 
 		if (arguments[i].indexOf('DCSext.')==0){ 
 				DCSextIm[arguments[i].substring(7)]=arguments[i+1]; 
 				i++; 
 		} 
 	} 
 	var dCurrent=new Date(); 
 	DCSIm.dcsdat=dCurrent.getTime(); 
 	dcsTagIm(); 
 } 

 function dcsAdvIm(){ 
 	dcsFuncIm("dcsCookieIm"); 
 } 

 var gImagesIm=new Array; 
 var gIndexIm=0; 
 var DCSIm=new Object(); 
 var WTIm=new Object(); 
 var DCSextIm=new Object(); 
 var gQPIm=new Array(); 

 var gDomainIm="wisecode.b2b.hc360.com"; 
 var gDcsIdIm="dcs08q2dnfhcfn3h2fldxudyc_2l5u"; 
 // Add customizations here 

 if ((typeof(gConvert)!="undefined")&&gConvert&&(document.cookie.indexOf(gFpc+"=")==-1)){ 
 	document.write("<SCR"+"IPT Language='JavaScript' SRC='"+"http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+gDomainIm+"/"+gDcsIdIm+"/wtid.js"+"'></SCR"+"IPT>"); 
 } 

 function dcsVarIm(){
 	try{
	 	var dCurrent=new Date(); 
	 	DCSIm.dcsdat=dCurrent.getTime(); 
	 	DCSIm.dcssip=window.parent.location.hostname; 
	 	DCSIm.dcsuri=window.parent.location.pathname; 
	 	if (window.parent.location.search){ 
	 		DCSIm.dcsqry=window.parent.location.search; 
	 		if (gQPIm.length>0){ 
	 			for (var i=0;i<gQPIm.length;i++){ 
	 				var pos=DCSIm.dcsqry.indexOf(gQPIm[i]); 
	 				if (pos!=-1){ 
	 					var front=DCSIm.dcsqry.substring(0,pos); 
	 					var end=DCSIm.dcsqry.substring(pos+gQPIm[i].length,DCSIm.dcsqry.length); 
	 					DCSIm.dcsqry=front+end; 
	 				} 
	 			} 
	 		} 
	 	} 
	 	if ((window.parent.document.referrer!="")&&(window.parent.document.referrer!="-")){ 
	 		if (!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4)){ 
	 			DCSIm.dcsref=window.parent.document.referrer; 
	 		} 
	 	}
	}catch(e){
	}
 } 

 function AIm(N,V){ 
 	return "&"+N+"="+dcsEscapeIm(V); 
 } 

 function dcsEscapeIm(S){ 
 	if (typeof(RE)!="undefined"){ 
 		var retStr = new String(S); 
 		for (R in RE){ 
 			retStr = retStr.replace(RE[R],R); 
 		} 
 		return retStr; 
 	} 
 	else{ 
 		return escape(S); 
 	} 
 } 

 function dcsLoadHrefIm(evt){ 
 	if ((typeof(gHref)!="undefined")&&(gHref.length>0)){ 
 		window.location=gHref; 
 		gHref=""; 
 	} 
 } 

 function dcsCreateImageIm(dcsSrc){ 
 	if (document.images){ 
 		gImagesIm[gIndexIm]=new Image; 
 		if ((typeof(gHref)!="undefined")&&(gHref.length>0)){ 
 			gImagesIm[gIndexIm].onload=gImagesIm[gIndexIm].onerror=dcsLoadHrefIm; 
 		} 
 		gImagesIm[gIndexIm].src=dcsSrc; 
 		gIndexIm++; 
 	} 
 	else{ 
 		document.write('<IMG BORDER="0" NAME="DCSIMG" WIDTH="1" HEIGHT="1" SRC="'+dcsSrc+'">'); 
 	} 
 } 

 function dcsMetaIm(){ 
 	var elems; 
 	if (document.all){ 
 		elems=document.all.tags("meta"); 
 	} 
 	else if (document.documentElement){ 
 		elems=document.getElementsByTagName("meta"); 
 	} 
 	if (typeof(elems)!="undefined"){ 
 		for (var i=1;i<=elems.length;i++){ 
 			var meta=elems.item(i-1); 
 			if (meta.name){ 
 				if (meta.name.indexOf('WT.')==0){ 
 					WTIm[meta.name.substring(3)]=meta.content; 
 				} 
 				else if (meta.name.indexOf('DCSext.')==0){ 
 					DCSextIm[meta.name.substring(7)]=meta.content; 
 				} 
 				else if (meta.name.indexOf('DCS.')==0){ 
 					DCSIm[meta.name.substring(4)]=meta.content; 
 				} 
 			} 
 		} 
 	} 
 } 

 function dcsTagIm(){ 
 	var P="http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+gDomainIm+(gDcsIdIm==""?'':'/'+gDcsIdIm)+"/dcs.gif?"; 
 	for (N in DCSIm){ 
 		if (DCSIm[N]) { 
 			P+=AIm(N,DCSIm[N]); 
 		} 
 	} 
 	for (N in WTIm){ 
 		if (WTIm[N]) { 
 			P+=AIm("WT."+N,WTIm[N]); 
 		} 
 	} 
 	for (N in DCSextIm){ 
 		if (DCSextIm[N]) { 
 			P+=AIm(N,DCSextIm[N]); 
 		} 
 	} 
 	if (P.length>2048&&navigator.userAgent.indexOf('MSIE')>=0){ 
 		P=P.substring(0,2040)+"&WT.tu=1"; 
 	} 
 	dcsCreateImageIm(P); 
 } 

 function dcsFuncIm(func){ 
 	if (typeof(window[func])=="function"){ 
 		window[func](); 
 	} 
 } 

 function doit()
 {
 	 	dcsVarIm(); 
 		dcsMetaIm(); 
 		dcsFuncIm("dcsAdvIm"); 
 		dcsTagIm(); 
 }
 
function imlist(listtype,count,style,imfrom,name){
	/*var m = new Array(count);
	for(var i=0;i<m.length;i++)
	{
		m[i] = 0;
	}*/
	var userstr = "";
	for(var i=0;i<ArrayTmUsr.length;i++)
	{
		userstr += ArrayTmUsr[i];
		userstr += ":";
	}
	/*try {
		eval(checkmobilestate(userstr));
	} catch(e) {
	}*/
	var ifrom=imfrom;
	var pagesize=count;
	var TMSt=0;
	var YAuthened = "0";
	var stl  = "";
	var layername = "";
	if(name == null) {
		layername = "TmLayer";
	} else {
		layername = name;
	}
	
	if(null == style)
		stl = "1";
	else
		stl =style;
	
	for(i=0;i<pagesize;i++) {
		var  TmState="";
		var TListTmStr="";
		var WriteStr="";
		var TmUsr=ArrayTmUsr[i];
		YAuthened = Array3Days[i];
		if (TmUsr!="") {
			TmState=online[TMSt];
			/*if (TmState == 0) {
				TmState = m[TMSt];
				if (TmState == 1) {
					TmState = 2;
				}
			}*/
			TMSt=TMSt+1;
		} else {
			TmState="";
		}
		TListTmStr=TmRtxIncSC(ArrayTmUsr[i],listtype,TmState,YAuthened,stl,ifrom);
		var aa=document.getElementById(layername+i);
		if (aa!=null){
			aa.innerHTML=TListTmStr;
		}
		TmState="";
	}
}

function imlist2(listtype,count,style,imfrom,name, ArrayTmUsr, Array3Days){
	
	var userstr = "";
	for(var i=0;i<ArrayTmUsr.length;i++)
	{
		userstr += ArrayTmUsr[i];
		userstr += ":";
	}
	
	var ifrom=imfrom;
	var pagesize=count;
	var TMSt=0;
	var YAuthened = "0";
	var stl  = "";
	var layername = "";
	if(name == null) {
		layername = "TmLayer";
	} else {
		layername = name;
	}
	
	if(null == style)
		stl = "1";
	else
		stl =style;
	
	for(i=0;i<pagesize;i++) {
		var  TmState="";
		var TListTmStr="";
		var WriteStr="";
		var TmUsr=ArrayTmUsr[i];
		YAuthened = Array3Days[i];
		if (TmUsr!="") {
			TmState=online[TMSt];
			TMSt=TMSt+1;
		} else {
			TmState="";
		}
		TListTmStr=TmRtxIncSC(ArrayTmUsr[i],listtype,TmState,YAuthened,stl,ifrom);
		var aa=document.getElementById(layername+i);
		if (aa!=null){
			aa.innerHTML=TListTmStr;
		}
		TmState="";
	}
}

/**
* listtype，如果是采购信息取3，其他信息取1
* count，是数组大小，即对应的列表行数
* imform，字符串，用于纪录日志
* name，显示im的span的id，若不传，就用默认的名字TmLayer
**/
function imlist1(listtype,count,imfrom,name){
	var userstr = "";
	for(var i=0;i<ArrayTmUsr.length;i++)
	{
		userstr += ArrayTmUsr[i];
		userstr += ":";
	}
	var ifrom=imfrom;
	var pagesize=count;
	var TMSt=0;
	var YAuthened = "0";
	var stl  = "";
	var layername = "";
	if(name == null) {
		layername = "TmLayer";
	} else {
		layername = name;
	}

	for(i=0;i<pagesize;i++) {
		var  TmState="";
		var TListTmStr="";
		var WriteStr="";
		var TmUsr=ArrayTmUsr[i];
		YAuthened = Array3Days[i];
		
		if(null == ArrayTmStyle[i])
			stl = "1";
		else
			stl = ArrayTmStyle[i];
			
		if (TmUsr!="") {
			TmState=online[TMSt];
			TMSt=TMSt+1;
		}
		else{
			TmState="";
		}
		TListTmStr=TmRtxIncSC(ArrayTmUsr[i],listtype,TmState,YAuthened,stl,ifrom);
		var aa=document.getElementById(layername+i);
		if (aa!=null) {
			aa.innerHTML=TListTmStr;
		}
		TmState="";
	}
}


/**
*	用户名加密使用此imlist
* listtype，如果是采购信息取3，其他信息取1
* count，是数组大小，即对应的列表行数
* imform，字符串，用于纪录日志
* name，显示im的span的id，若不传，就用默认的名字TmLayer
**/
function imlist3(listtype,count,imfrom,name){
	var ifrom=imfrom;
	var pagesize=count;
	var TMSt=0;
	var YAuthened = "0";
	var stl  = "";
	var layername = "";
	if(name == null) {
		layername = "TmLayer";
	} else {
		layername = name;
	}

	for(i=0;i<pagesize;i++) {
		var  TmState="";
		var TListTmStr="";
		var WriteStr="";
		var TmUsr=ArrayTmUsr[i];
		YAuthened = Array3Days[i];
		
		if(null == ArrayTmStyle[i])
			stl = "1";
		else
			stl = ArrayTmStyle[i];
			
		if (TmUsr!="") {
			TmState=online[TMSt];
			TMSt=TMSt+1;
		}
		else{
			TmState="";
		}
		TListTmStr=TmRtxIncSC1(ArrayTmUsr[i],listtype,TmState,YAuthened,stl,ifrom, ArrayInfoId[i], ArrayUserState[i]);
		var aa=document.getElementById(layername+i);
		if (aa!=null) {
			aa.innerHTML=TListTmStr;
		}
		TmState="";
	}
}

function imlist4(listtype,count,style,imfrom,name){
	var ifrom=imfrom;
	var pagesize=count;
	var TMSt=0;
	var YAuthened = "0";
	var stl  = "";
	var layername = "";
	if(name == null) {
		layername = "TmLayer";
	} else {
		layername = name;
	}

	for(i=0;i<pagesize;i++) {
		var  TmState="";
		var TListTmStr="";
		var WriteStr="";
		var TmUsr=ArrayTmUsr[i];
		YAuthened = Array3Days[i];
		
		if(null == style)
			stl = "1";
		else
			stl =style;
			
		if (TmUsr!="") {
			TmState=online[TMSt];
			TMSt=TMSt+1;
		}
		else{
			TmState="";
		}
		TListTmStr=TmRtxIncSC1(ArrayTmUsr[i],listtype,TmState,YAuthened,stl,ifrom, ArrayInfoId[i], ArrayUserState[i]);
		var aa=document.getElementById(layername+i);
		if (aa!=null) {
			aa.innerHTML=TListTmStr;
		}
		TmState="";
	}
}
function imlist5(listtype,count,style,imfrom,name){
	/*var m = new Array(count);
	for(var i=0;i<m.length;i++)
	{
		m[i] = 0;
	}*/
	var userstr = "";
	for(var i=0;i<ArrayTmUsr.length;i++)
	{
		userstr += ArrayTmUsr[i];
		userstr += ":";
	}
	/*try {
		eval(checkmobilestate(userstr));
	} catch(e) {
	}*/
	var ifrom=imfrom;
	var pagesize=count;
	var TMSt=0;
	var YAuthened = "0";
	var stl  = "";
	var layername = "";
	if(name == null) {
		layername = "TmLayer";
	} else {
		layername = name;
	}
	
	if(null == style)
		stl = "1";
	else
		stl =style;
	
	for(i=0;i<pagesize;i++) {
		var  TmState="";
		var TListTmStr="";
		var WriteStr="";
		var TmUsr=ArrayTmUsr[i];
		YAuthened = Array3Days[i];
		if (TmUsr!="") {
			TmState=online[TMSt];
			/*if (TmState == 0) {
				TmState = m[TMSt];
				if (TmState == 1) {
					TmState = 2;
				}
			}*/
			TMSt=TMSt+1;
		} else {
			TmState="";
		}
		TListTmStr=TmRtxIncSC5(ArrayTmUsr[i],listtype,TmState,YAuthened,stl,ifrom);
		var aa=document.getElementById(layername+i);
		if (aa!=null){
			aa.innerHTML=TListTmStr;
		}
		TmState="";
	}
}
function IsInstallIM(){
try{
var im  = new ActiveXObject("HCLogin.DetectHcIM");
var ret = im.IMIsStart();
}
catch(e){
return false;
}
return true;
}

function IsInstallQQ(WebCardUrl,toTmUsr,listType,YAuthened,PopStyle){
try{//安装
var xmlhttp1 = new ActiveXObject("HCLogin.DetectHcIM");
var ret;
if ((listType==3)){//采购   		
//window.open("http://my.b2b.hc360.com/b2b/turbine/template/my,pub,tmlist.html?totmusr="+toTmUsr, "_tmuser","toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=yes,resizable=no,copyhistory=no,top=1000000,width=319,height=121");	
window.open("http://my.b2b.hc360.com/my/turbine/template/pubinfo,tm,tmlist.html?totmusr="+toTmUsr, "_tmuser","toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=yes,resizable=no,copyhistory=no,top=1000000,width=319,height=121");
}
else{//非采购 或 采购日期超过5天
ret = xmlhttp1.IMIsStart();
if(ret == 1){
alert("慧聪发发未运行，请先运行慧聪发发！");
}
else{
xmlhttp1.chat_with_friend(toTmUsr);	
}
}
}
catch(e){//没安装
//if(1 == PopStyle)
window.open("http://www.im.hc360.com/up.html");
//Else
//window.open("http://www.im.hc360.com/up.html", "","toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no,width=310,height=156");

//window.open("http://www.im.hc360.com/IM/files/help.html");
}
return false;
}

function IsInstallMobile(WebCardUrl,toTmUsr,listType,YAuthened,PopStyle) {
	try{//安装
		var xmlhttp1 = new ActiveXObject("HCLogin.DetectHcIM");
		var ret;
		if ((listType==3)){//采购   		
			window.open("http://my.b2b.hc360.com/my/turbine/template/pubinfo,tm,tmlist.html?totmusr="+toTmUsr, "_tmuser","toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=yes,resizable=no,copyhistory=no,top=1000000,width=319,height=121");
		}
		else{//非采购 或 采购日期超过5天
			ret = xmlhttp1.IMIsStart();
			if(ret == 1){
				alert("慧聪发发未运行，请先运行慧聪发发！");
			}
			else{
				xmlhttp1.Send_sms(toTmUsr);
			}
		}
	}
	catch(e){//没安装
		//if(1 == PopStyle) {
			window.open("http://www.im.hc360.com/up.html");
		//}
		//else	
		//	window.open("http://www.im.hc360.com/up.html", "","toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no,width=310,height=156");
	}
	return false;
}

function TmRtxIncSC1(tmusr,listtype,TmState,YAuthened,style,imfrom, infoid, userstate){
	var ifrom=imfrom;
	var TmShow="1";
	//var YAuthened="0";
	var ListTmStr="";
	var stl = "";
	if(null == style)
	stl = "1";
	else
	stl = style;
	var webcard="http://my.b2b.hc360.com/my/turbine/template/pubinfo,tm,tmcard.html?tmusr="+tmusr;
	var Sendwebcard=webcard;
	if (YAuthened==null){
		YAuthened="0";
	}
	if (TmShow=="1")
	{
		if (TmState==1){      
			if( "1" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_online.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\"></td></tr><tr><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">发发在线</span></td></tr></table>";
			else if( "3" == stl)
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_online_12.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\"></div>";
			else if( "4" == stl)
			ListTmStr="<div><TABLE cellSpacing=0 cellPadding=0 width=125 border=0><TR><TD width=32><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_online.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');if(!IsInstallIM()){window.open('http://www.im.hc360.com/up.html', '','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no,width=310,height=156');}else{if(confirm('只有买卖通会员才能与此买家通过IM洽谈，立即申请成为买卖通会员！'))window.open('http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html');}return false;\"></td><td><a href=\"http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html\" onclick=\"javascript:ImlogAd('"+ifrom+"');if(!IsInstallIM()){window.open('http://www.im.hc360.com/up.html', '','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no,width=310,height=156');}else{if(confirm('只有买卖通会员才能与此买家通过IM洽谈，立即申请成为买卖通会员！'))window.open('http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html');}return false;\">我正在网上<BR>马上和我洽谈!</a></TD></TR></TABLE>";
			else if( "5" == stl)
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_online.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\"></div><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">跟我洽谈</span>";
			else if( "6" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='89'><tbody><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_online_2.gif' width=\"23\" height=\"18\" style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\"></td><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">跟我洽谈</span></td></tr></tbody></table>";
			else if( "7" == stl)
			ListTmStr="<table border='0' cellpadding='0' cellspacing='0'><tr><TD align=middle width=38><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_online.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\"></td><TD align=middle width=60><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">跟我洽谈</span></td></tr></table>";
			else if( "8" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/1online14.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">";
			else if( "9" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/zjy_33.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">";
			else if( "10" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/online20.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">";
			else if( "11" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_online_1.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\"></td></tr><tr><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">跟我洽谈</span></td></tr></table>";
			else  
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_online.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\"></div><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">跟我洽谈</span>";
		} else if (TmState==0){
			if( "1" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_offline.gif' style='cursor:hand'  onClick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\"></td></tr><tr><td align=center valign=bottom><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">发发离线</span></td></tr></table>";
			else if( "3" == stl)
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_offline_12.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\"></div>";
			else if( "4" == stl)
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_offline.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');if(!IsInstallIM()){window.open('http://www.im.hc360.com/up.html', '','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no,width=310,height=156');}else{if(confirm('只有买卖通会员才能与此买家通过IM洽谈，立即申请成为买卖通会员！'))window.open('http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html');}return false;\"></div><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:ImlogAd('"+ifrom+"');if(!IsInstallIM()){window.open('http://www.im.hc360.com/up.html', '','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no,width=310,height=156');}else{if(confirm('只有买卖通会员才能与此买家通过IM洽谈，立即申请成为买卖通会员！'))window.open('http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html');}return false;\">留个消息</span>";
			else if( "5" == stl)
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_offline.gif' style='cursor:hand'  onClick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\"></div><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">留个消息</span>";
			else if("6" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='89'><tbody><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_offline_2.gif' width=\"23\" height=\"18\" style='cursor:hand'  onClick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\"></td><td align=center valign=bottom><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">留个消息</span></td></tr></tbody></table>";
			else if("7" == stl)
			ListTmStr="<table border='0' cellpadding='0' cellspacing='0'><tr><TD align=middle width=38><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_offline.gif' style='cursor:hand'  onClick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\"></td><td align=middle width=60><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">留个消息</span></td></tr></table>";
			else if( "8" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_offline2.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">";
			else if( "9" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/zjy_35.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">";
			else if( "10" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/offlineno20.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">";
			else if( "11" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_offline_1.gif' style='cursor:hand'  onClick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\"></td></tr><tr><td align=center valign=bottom><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">留个消息</span></td></tr></table>";
			else
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_offline.gif' style='cursor:hand'  onClick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\"></div><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">留个消息</span>";
		} else if (TmState == 2) {
			if( "1" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/bm_online.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\"></td></tr><tr><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">手机在线</span></td></tr></table>";
			else if( "3" == stl)
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/bm_online_12.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\"></div>";
			else if( "4" == stl)
			ListTmStr="<div><TABLE cellSpacing=0 cellPadding=0 width=125 border=0><TR><TD width=32><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/bm_online.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');if(!IsInstallIM()){window.open('http://www.im.hc360.com/up.html', '','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no,width=310,height=156');}else{if(confirm('只有买卖通会员才能与此买家通过IM洽谈，立即申请成为买卖通会员！'))window.open('http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html');}return false;\"></td><td><a href=\"http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html\" onclick=\"javascript:ImlogAd('"+ifrom+"');if(!IsInstallIM()){window.open('http://www.im.hc360.com/up.html', '','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no,width=310,height=156');}else{if(confirm('只有买卖通会员才能与此买家通过IM洽谈，立即申请成为买卖通会员！'))window.open('http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html');}return false;\">我正在网上<BR>马上发送短信!</a></TD></TR></TABLE>";
			else if( "5" == stl)
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/bm_online.gif' style='cursor:hand' onClick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\"></div><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">发送短信</span>";
			else if( "6" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='89'><tbody><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/bm_online_2.gif' width=\"23\" height=\"18\" style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\"></td><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">发送短信</span></td></tr></tbody></table>";
			else if( "7" == stl)
			ListTmStr="<table border='0' cellpadding='0' cellspacing='0'><tr><TD align=middle width=38><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/bm_online.gif' style='cursor:hand' onClick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\"></td><TD align=middle width=60><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">发送短信</span></td></tr></table>";
			else if( "8" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/1online_1.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">";
			else if( "9" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/zjy_36.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">";
			else if( "10" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/online1_20.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">";
			else if( "11" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/bm_online_1.gif' style='cursor:hand' onClick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\"></td></tr><tr><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">发送短信</span></td></tr></table>";
			else  
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/bm_online.gif' style='cursor:hand' onclick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\"></div><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:ImlogAd('"+ifrom+"');" + UserOperation(userstate, infoid) + ";\">发送短信</span>";	
		} else {
			ListTmStr="<div>未安装</div>" ; 
		}
	}
	return ListTmStr;
}

function UserOperation(userstate, infoid) {
	if (userstate == "0") {
		return "doTalkSubmit();";
	} else {
		return "window.open('http://b2b.hc360.com/buy/" + infoid + ".html','_blank')";
	}
}

function TmRtxIncSC(tmusr,listtype,TmState,YAuthened,style,imfrom){
	var ifrom=imfrom;
	var TmShow="1";
	//var YAuthened="0";
	var ListTmStr="";
	var stl = "";
	if(null == style)
	stl = "1";
	else
	stl = style;
	var webcard="http://my.b2b.hc360.com/my/turbine/template/pubinfo,tm,tmcard.html?tmusr="+tmusr;
	var Sendwebcard=webcard;
	if (YAuthened==null){
		YAuthened="0";
	}
	if (TmShow=="1")
	{
		if (TmState==1){      
			if( "1" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td></tr><tr><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">跟我洽谈</span></td></tr></table>";
			else if( "3" == stl)
			ListTmStr="<div><img alt='点击交谈' src='http://style.org.hc360.com/search/images/b_online_12.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\"></div>";
			else if( "4" == stl)
			ListTmStr="<div><TABLE cellSpacing=0 cellPadding=0 width=125 border=0><TR><TD width=32><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');if(!IsInstallIM()){window.open('http://www.im.hc360.com/up.html', '','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no,width=310,height=156');}else{if(confirm('只有买卖通会员才能与此买家通过IM洽谈，立即申请成为买卖通会员！'))window.open('http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html');}return false;\"></td><td><a href=\"http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html\" onclick=\"javascript:Imlog('"+ifrom+"');if(!IsInstallIM()){window.open('http://www.im.hc360.com/up.html', '','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no,width=310,height=156');}else{if(confirm('只有买卖通会员才能与此买家通过IM洽谈，立即申请成为买卖通会员！'))window.open('http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html');}return false;\">我正在网上<BR>马上和我洽谈!</a></TD></TR></TABLE>";
			else if( "5" == stl)
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\"></div><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">跟我洽谈</span>";
			else if( "6" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='89'><tbody><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_online_2.gif' width=\"23\" height=\"18\" style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">跟我洽谈</span></td></tr></tbody></table>";
			else if( "7" == stl)
			ListTmStr="<table border='0' cellpadding='0' cellspacing='0'><tr><TD align=middle width=38><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td><TD align=middle width=60><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">跟我洽谈</span></td></tr></table>";
			else if( "8" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/1online14.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">";
			else if( "9" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/zjy_33.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">";
			else if( "10" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/online20.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">";
			else if( "11" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_online_1.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td></tr><tr><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">跟我洽谈</span></td></tr></table>";
			else if( "12" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td></tr><tr><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">在线咨询</span></td></tr></table>";
			else if( "13" == stl)
			ListTmStr="<img width='17' height='17' align='absmiddle' src='http://style.org.hc360.com/search/images/b_online_12.gif' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"><span style='font-size:9pt;cursor:hand;padding-left:4px;' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">发发在线</span>";
			else if( "14" == stl)
			ListTmStr="<img src='http://style.org.hc360.com/search/images/b_online_2.gif' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"><span style='cursor:hand;' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">" + tmusr + "</span>";
			else  
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></div><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">跟我洽谈</span>";
		} else if (TmState==0){
			if( "1" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_offline.gif' style='cursor:hand'  onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td></tr><tr><td align=center valign=bottom><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">留个消息</span></td></tr></table>";
			else if( "3" == stl)
			ListTmStr="<div><img alt='点击留言' src='http://style.org.hc360.com/search/images/b_offline_12.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\"></div>";
			else if( "4" == stl)
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_offline.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');if(!IsInstallIM()){window.open('http://www.im.hc360.com/up.html', '','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no,width=310,height=156');}else{if(confirm('只有买卖通会员才能与此买家通过IM洽谈，立即申请成为买卖通会员！'))window.open('http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html');}return false;\"></div><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:Imlog('"+ifrom+"');if(!IsInstallIM()){window.open('http://www.im.hc360.com/up.html', '','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no,width=310,height=156');}else{if(confirm('只有买卖通会员才能与此买家通过IM洽谈，立即申请成为买卖通会员！'))window.open('http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html');}return false;\">留个消息</span>";
			else if( "5" == stl)
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_offline.gif' style='cursor:hand'  onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\"></div><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">留个消息</span>";
			else if("6" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='89'><tbody><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_offline_2.gif' width=\"23\" height=\"18\" style='cursor:hand'  onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td><td align=center valign=bottom><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">留个消息</span></td></tr></tbody></table>";
			else if("7" == stl)
			ListTmStr="<table border='0' cellpadding='0' cellspacing='0'><tr><TD align=middle width=38><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_offline.gif' style='cursor:hand'  onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td><td align=middle width=60><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">留个消息</span></td></tr></table>";
			else if( "8" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_offline2.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">";			
			else if( "9" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/zjy_35.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">";
			else if( "10" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/offlineno20.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">";
			else if( "11" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_offline_1.gif' style='cursor:hand'  onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td></tr><tr><td align=center valign=bottom><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">留个消息</span></td></tr></table>";
			else if( "12" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_offline.gif' style='cursor:hand'  onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td></tr><tr><td align=center valign=bottom><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">留言咨询</span></td></tr></table>";
			else if( "13" == stl)
			ListTmStr="<img width='17' height='17' align='absmiddle' src='http://style.org.hc360.com/search/images/b_offline_12.gif' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"><span style='font-size:9pt;cursor:hand;padding-left:4px;' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">发发留言</span>";
			else if( "14" == stl)
			ListTmStr="<img src='http://style.org.hc360.com/search/images/b_offline_2.gif' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"><span style='cursor:hand;' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">" + tmusr + "</span>";
			else
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/b_offline.gif' style='cursor:hand'  onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></div><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">留个消息</span>";
		} else if (TmState == 2) {
			if( "1" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/bm_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td></tr><tr><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">发送短信</span></td></tr></table>";
			else if( "3" == stl)
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/bm_online_12.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\"></div>";
			else if( "4" == stl)
			ListTmStr="<div><TABLE cellSpacing=0 cellPadding=0 width=125 border=0><TR><TD width=32><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/bm_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');if(!IsInstallIM()){window.open('http://www.im.hc360.com/up.html', '','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no,width=310,height=156');}else{if(confirm('只有买卖通会员才能与此买家通过IM洽谈，立即申请成为买卖通会员！'))window.open('http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html');}return false;\"></td><td><a href=\"http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html\" onclick=\"javascript:Imlog('"+ifrom+"');if(!IsInstallIM()){window.open('http://www.im.hc360.com/up.html', '','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no,width=310,height=156');}else{if(confirm('只有买卖通会员才能与此买家通过IM洽谈，立即申请成为买卖通会员！'))window.open('http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html');}return false;\">我正在网上<BR>马上发送短信!</a></TD></TR></TABLE>";
			else if( "5" == stl)
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/bm_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\"></div><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">发送短信</span>";
			else if( "6" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='89'><tbody><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/bm_online_2.gif' width=\"23\" height=\"18\" style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">发送短信</span></td></tr></tbody></table>";
			else if( "7" == stl)
			ListTmStr="<table border='0' cellpadding='0' cellspacing='0'><tr><TD align=middle width=38><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/bm_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td><TD align=middle width=60><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">发送短信</span></td></tr></table>";
			else if( "8" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/1online_1.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">";
			else if( "9" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/zjy_36.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">";
			else if( "10" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/online1_20.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">";
			else if( "11" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/bm_online_1.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td></tr><tr><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">发送短信</span></td></tr></table>";
			else if( "12" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/bm_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td></tr><tr><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">留言咨询</span></td></tr></table>";
			else if( "13" == stl)
			ListTmStr="<img width='17' height='17' align='absmiddle' src='http://style.org.hc360.com/search/images/bm_online_12.gif' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"><span style='font-size:9pt;cursor:hand;padding-left:4px;' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">手机在线</span>";
			else if( "14" == stl)
			ListTmStr="<img src='http://style.org.hc360.com/search/images/bm_online_2.gif' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"><span style='cursor:hand;' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">" + tmusr + "</span>";
			else  
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/bm_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></div><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">发送短信</span>";	
		} else {
			ListTmStr="<div>未安装</div>" ; 
		}
	}
	return ListTmStr;
}
function TmRtxIncSC5(tmusr,listtype,TmState,YAuthened,style,imfrom){
	var ifrom=imfrom;
	var TmShow="1";
	//var YAuthened="0";
	var ListTmStr="";
	var stl = "";
	if(null == style)
	stl = "1";
	else
	stl = style;
	var webcard="http://my.b2b.hc360.com/my/turbine/template/pubinfo,tm,tmcard.html?tmusr="+tmusr;
	var Sendwebcard=webcard;
	if (YAuthened==null){
		YAuthened="0";
	}
	if (TmShow=="1")
	{
		if (TmState==1){      
			if( "1" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td></tr><tr><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">跟我洽谈</span></td></tr></table>";
			else if( "3" == stl)
			ListTmStr="<div><img alt='点击交谈' src='http://style.org.hc360.com/search/images/im_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\"></div>";
			else if( "4" == stl)
			ListTmStr="<div><TABLE cellSpacing=0 cellPadding=0 width=125 border=0><TR><TD width=32><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');if(!IsInstallIM()){window.open('http://www.im.hc360.com/up.html', '','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no,width=310,height=156');}else{if(confirm('只有买卖通会员才能与此买家通过IM洽谈，立即申请成为买卖通会员！'))window.open('http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html');}return false;\"></td><td><a href=\"http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html\" onclick=\"javascript:Imlog('"+ifrom+"');if(!IsInstallIM()){window.open('http://www.im.hc360.com/up.html', '','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no,width=310,height=156');}else{if(confirm('只有买卖通会员才能与此买家通过IM洽谈，立即申请成为买卖通会员！'))window.open('http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html');}return false;\">我正在网上<BR>马上和我洽谈!</a></TD></TR></TABLE>";
			else if( "5" == stl)
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\"></div><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">跟我洽谈</span>";
			else if( "6" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='89'><tbody><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_online.gif' width=\"23\" height=\"18\" style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">跟我洽谈</span></td></tr></tbody></table>";
			else if( "7" == stl)
			ListTmStr="<table border='0' cellpadding='0' cellspacing='0'><tr><TD align=middle width=38><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td><TD align=middle width=60><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">跟我洽谈</span></td></tr></table>";
			else if( "8" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">";
			else if( "9" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">";
			else if( "10" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">";
			else if( "11" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td></tr><tr><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">跟我洽谈</span></td></tr></table>";
			else if( "12" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td></tr><tr><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">在线咨询</span></td></tr></table>";
			else  
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_online.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></div><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">跟我洽谈</span>";
		} else if (TmState==0){
			if( "1" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_offline.gif' style='cursor:hand'  onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td></tr><tr><td align=center valign=bottom><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">留个消息</span></td></tr></table>";
			else if( "3" == stl)
			ListTmStr="<div><img alt='点击留言' src='http://style.org.hc360.com/search/images/im_offline.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\"></div>";
			else if( "4" == stl)
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_offline.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');if(!IsInstallIM()){window.open('http://www.im.hc360.com/up.html', '','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no,width=310,height=156');}else{if(confirm('只有买卖通会员才能与此买家通过IM洽谈，立即申请成为买卖通会员！'))window.open('http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html');}return false;\"></div><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:Imlog('"+ifrom+"');if(!IsInstallIM()){window.open('http://www.im.hc360.com/up.html', '','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no,width=310,height=156');}else{if(confirm('只有买卖通会员才能与此买家通过IM洽谈，立即申请成为买卖通会员！'))window.open('http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html');}return false;\">留个消息</span>";
			else if( "5" == stl)
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_offline.gif' style='cursor:hand'  onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\"></div><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">留个消息</span>";
			else if("6" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='89'><tbody><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_offline.gif' width=\"23\" height=\"18\" style='cursor:hand'  onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td><td align=center valign=bottom><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">留个消息</span></td></tr></tbody></table>";
			else if("7" == stl)
			ListTmStr="<table border='0' cellpadding='0' cellspacing='0'><tr><TD align=middle width=38><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_offline.gif' style='cursor:hand'  onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td><td align=middle width=60><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">留个消息</span></td></tr></table>";
			else if( "8" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_offline.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">";			
			else if( "9" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_offline.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">";
			else if( "10" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_offline.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">";
			else if( "11" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_offline.gif' style='cursor:hand'  onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td></tr><tr><td align=center valign=bottom><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">留个消息</span></td></tr></table>";
			else if( "12" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_offline.gif' style='cursor:hand'  onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td></tr><tr><td align=center valign=bottom><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">留言咨询</span></td></tr></table>";
			else
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_offline.gif' style='cursor:hand'  onClick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></div><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">留个消息</span>";
		} else if (TmState == 2) {
			if( "1" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_bmonline.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td></tr><tr><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">发送短信</span></td></tr></table>";
			else if( "3" == stl)
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_bmonline.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\"></div>";
			else if( "4" == stl)
			ListTmStr="<div><TABLE cellSpacing=0 cellPadding=0 width=125 border=0><TR><TD width=32><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_bmonline.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');if(!IsInstallIM()){window.open('http://www.im.hc360.com/up.html', '','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no,width=310,height=156');}else{if(confirm('只有买卖通会员才能与此买家通过IM洽谈，立即申请成为买卖通会员！'))window.open('http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html');}return false;\"></td><td><a href=\"http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html\" onclick=\"javascript:Imlog('"+ifrom+"');if(!IsInstallIM()){window.open('http://www.im.hc360.com/up.html', '','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no,width=310,height=156');}else{if(confirm('只有买卖通会员才能与此买家通过IM洽谈，立即申请成为买卖通会员！'))window.open('http://my.b2b.hc360.com/my/turbine/template/firstview,apply_mmt.html');}return false;\">我正在网上<BR>马上发送短信!</a></TD></TR></TABLE>";
			else if( "5" == stl)
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_bmonline.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\"></div><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">发送短信</span>";
			else if( "6" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='89'><tbody><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_bmonline.gif' width=\"23\" height=\"18\" style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">发送短信</span></td></tr></tbody></table>";
			else if( "7" == stl)
			ListTmStr="<table border='0' cellpadding='0' cellspacing='0'><tr><TD align=middle width=38><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_bmonline.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td><TD align=middle width=60><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">发送短信</span></td></tr></table>";
			else if( "8" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_bmonline.gi' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">";
			else if( "9" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_bmonline.gi' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">";
			else if( "10" == stl)
			ListTmStr="<img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_bmonline.gi' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallQQ('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"',1);\">";
			else if( "11" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_bmonline.gi' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td></tr><tr><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">发送短信</span></td></tr></table>";
			else if( "12" == stl)
			ListTmStr="<table id='tmtalk' border='0'cellpadding='0' cellspacing='0' height=10 width='48'><tr><td align=center><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_bmonline.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></td></tr><tr><td align=center valign='bottom'><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">留言咨询</span></td></tr></table>";
			else  
			ListTmStr="<div><img alt='慧聪发发' src='http://style.org.hc360.com/search/images/im_bmonline.gif' style='cursor:hand' onclick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\"></div><span style='font-size:9pt;cursor:hand;TEXT-DECORATION: underline' onClick=\"javascript:Imlog('"+ifrom+"');IsInstallMobile('"+webcard+"','"+tmusr+"','"+listtype+"','"+YAuthened+"');\">发送短信</span>";	
		} else {
			ListTmStr="<div>未安装</div>" ; 
		}
	}
	return ListTmStr;
}
function dealURL(urlobj){//
}

function searchon(tmpword){
if (frmsearch.word.value==""){
alert("请输入关键字！");
frmsearch.word.focus();
return false;
}
frmsearch.word.value = tmpword + " " + frmsearch.word.value;
frmsearch.submit();}
function searchonsubmit(thisform){
if (thisform.word.value=="" || thisform.word.value=="输入关键字"){
alert("请输入关键字！");
thisform.word.focus();
return false;
}
return true;
}

function Imlog(imfrom)
{
	doit();
	var ifrom=imfrom;
	
	if(ifrom == null || ifrom == "")
		return;
	try {
	  xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
	  try {
	    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	  } catch (e2) {
	    xmlHttp = false;
	  }
	}
	
	if (!xmlHttp && typeof(XMLHttpRequest) != 'undefined') {
	  xmlHttp = new XMLHttpRequest();
	}


	if(xmlHttp){
		var bust = Math.random()* 1000000000000000000;
		var u = "/search/imlog.html?clickfrom="+ifrom + "&rnd=" + bust;
		try {
			xmlHttp.open("GET",u,true);
			xmlHttp.send(null);
		} catch (e) {
			hcsearchclick(u);
		}
	}
}


function ImlogAd(imfrom)
{
	doit();
	var ifrom=imfrom;
	
	if(ifrom == null || ifrom == "")
		return;
	try {
	  xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
	  try {
	    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	  } catch (e2) {
	    xmlHttp = false;
	  }
	}
	
	if (!xmlHttp && typeof(XMLHttpRequest) != 'undefined') {
	  xmlHttp = new XMLHttpRequest();
	}


	if(xmlHttp){
		var bust = Math.random()* 1000000000000000000;
		var u = "/search/adimlog.html?clickfrom="+ifrom + "&rnd=" + bust;
		try {
			xmlHttp.open("GET",url,true);
			xmlHttp.send(null);
		} catch (e) {
			hcsearchclick(u);
		}
	}
}

function checkmobilestate(userstr){
	var httpRequest = GetHttpRequest();
	var txt = "";
	httpRequest.onreadystatechange = function()
	{
		if(httpRequest.readyState == 1)// 开始加载
		{
			//html = "数据载入中...";
		}
		
		if(httpRequest.readyState == 4)	// 调用完毕
		{
			if(httpRequest.status == 200) // 加载成功
			{
		
				txt = httpRequest.responseText;
			}
		}
	}
	try{
		var realurl='http://online2.im.hc360.com/mobile/mobileonline?u=' + userstr;
		var url = 'http://www.search.hc360.com/cgi-bin/htreq?h=online2.im.hc360.com&u=' + escape(realurl);
		httpRequest.open("get", url, false);
		httpRequest.setRequestHeader("Content-Type", "text/xml");
		httpRequest.setRequestHeader("charset", "GBK");
		httpRequest.send(null);
	} catch(e) {}
	return txt;
}

function checkimstate(count, userstr){
	var httpRequest = GetHttpRequest();
	var txt = "";
	httpRequest.onreadystatechange = function()
	{
		if(httpRequest.readyState == 1)// 开始加载
		{
			//html = "数据载入中...";
		}
		
		if(httpRequest.readyState == 4)	// 调用完毕
		{
			if(httpRequest.status == 200) // 加载成功
			{
		
				txt = httpRequest.responseText;
			}
		}
	}
	try{
		var realurl='/getonline?amount=' + count + '&pigid=' + userstr;
		var url = 'http://www.search.hc360.com/cgi-bin/htreq?h=online.im.hc360.com&u=' + escape(realurl);
		httpRequest.open("get", url, false);
		httpRequest.setRequestHeader("Content-Type", "text/xml");
		httpRequest.setRequestHeader("charset", "GBK");
		httpRequest.send(null);
	} catch(e) {}
	return txt;
}

function GetHttpRequest(){
	var httpRequest;
	
	if (window.XMLHttpRequest){ // Mozilla, Safari,...
		httpRequest = new XMLHttpRequest();

		if (httpRequest.overrideMimeType){
			httpRequest.overrideMimeType('text/xml');
		}
	}
	else if (window.ActiveXObject){ // IE
		try{
			httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
			
		}
		catch(e){
			try {
				httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
				
			} 
			catch(e){}
		}
	}
	
	return httpRequest;
}

function hcsearchclick(u) {
    if(document.images) {
        (new Image()).src = u;
    }
    return true;
}