		function SetCookie(name,value)
		{
		    var Days = 30;
		    var exp  = new Date();
		    exp.setTime(exp.getTime() + Days*24*60*60*1000);
		    document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
		}
		function getCookie(name)
		{
		    var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
		     if(arr != null) return unescape(arr[2]); return null;

		}
		function delCookie(name)
		{
		    var exp = new Date();
		    exp.setTime(exp.getTime() - 1);
		    var cval=getCookie(name);
		    if(cval!=null) document.cookie= name + "="+cval+";expires="+exp.toGMTString();
		}

		function   randomChar(l)   {
		   var   x="0123456789qwertyuioplkjhgfdsazxcvbnm";
		   var   tmp="";
		   for(var   i=0;i<   l;i++)   {
		   tmp   +=   x.charAt(Math.ceil(Math.random()*100000000)%x.length);
		   }
		   return   tmp;
		}

		function GetIframeInnerHtml(objIFrame)
		{
        var iFrameHTML = "";
	        if (objIFrame.contentDocument)
	        {
	                // For NS6 and FF
	                iFrameHTML = objIFrame.contentDocument.innerHTML;
	                if(iFrameHTML==undefined){
	                	try{
	                		iFrameHTML=objIFrame.contentDocument.getElementById('service_body').innerHTML;
	                	}catch(ex){}
	                }
	        }
	        else if (objIFrame.contentWindow)
	        {
	                // For IE5.5 and IE6
	                iFrameHTML = objIFrame.contentWindow.document.body.innerHTML;
	        }
	        else if (objIFrame.document)
	        {
	                // For IE5
	                iFrameHTML = objIFrame.document.body.innerHTML;
	        }
        return iFrameHTML;
		}
		var biaoshi = getCookie('biaoshi');
		var rc=randomChar(10);
		if(biaoshi==null){
			SetCookie('biaoshi',rc);
			biaoshi=rc;
		}
		var thisURL = document.URL;
		String.prototype.trim = function() {
			return this.replace(/[\s\u3000\xA0]+/g, "");
		};
		kdocTitle = document.title;//±êÌâ
		kdocTitle = kdocTitle.trim();
		thisURL=escape(thisURL);		
		try{
			var relateiFrame=document.getElementById("fwjl");
		    	relateiFrame.src="http://relate.people.com.cn:8080/viewlist/service.jsp?biaoshi="+biaoshi+"&thisurl="+thisURL+"&title="+kdocTitle;
			var iFrameContent=GetIframeInnerHtml(relateiFrame);

			document.getElementById("txtHint").innerHTML=iFrameContent;
		}catch(ex){}		