//By HK, Date 2008.06.27 WANMEI.COM

//config
var serverid = "http://cookie.bi.wanmei.com/servlet/wanmei.html";
var serverid2 = "http://cookie.bi.wanmei.com/servlet/huodongcount.html";
	
//config

function wanmeihuodongbi(id){
	
	var addr = encodeURIComponent(window.location.href);	
	//addr = addr.replace('\?','&');	
	addr += '&referer=' + encodeURIComponent(document.referrer);
	if(id){
		addr += '&bihuodongid=' + encodeURIComponent(id);
	}
	
		var ifrmwanmeibi = '<iframe id=ifrmwanmeibi01 src=\"'+serverid+'?addr='+addr+'\" scrolling=no width=0 height=0 marginWidth=0 marginHeight=0 frameborder=0 border=0 ></iframe>';	
		
		document.write(ifrmwanmeibi);
		
		//alert('url ' + encodeURI(window.location.href));
		//alert('urlc ' +encodeURIComponent(window.location.href));
	
	//alert(ifrmwanmeibi);
		
}


