	/**显示访问统计信息**/
    var visitStat=function()
	{
		var url="/visitStat.do"
		ibXmlHttp.send(url,"",function(sendReq)
	    {
	  	if(sendReq.readyState == 4) //此时请求已经完成
	    {
	   	  	
	   	  	//获得返回后的XML文件
	   	  	var xmldoc 				= 	sendReq.responseXML;
	   	  	//得到所有的新的消息记录
	   	  	var message_nodes 		= 	xmldoc.getElementsByTagName("messages"); 
	   	  	var n_messages 			= 	message_nodes.length;
	   	  	//循环每一条新消息，组织成HTML格式数据
	   	  	for (var i = 0; i < n_messages; i++) 
	   	  	{
	   	  	   //得到数据
	   	  	   document.getElementById('water_counter').innerHTML=message_nodes[i].getElementsByTagName("allVisitSum")[0].firstChild.nodeValue;
	   	  	}
	    }  
	  });
	}
	/**添加访问统计信息**/
	var addVisitStat=function(model,loginId)
	{
		var url="/visitStat.do";
		var param="op=add";
		param+="&model="+model+"&url="+urlCode(document.location.href)+"&loginId="+loginId;
		ibXmlHttp.send(url,param,function(sendReq)
	    {
	  	if(sendReq.readyState == 4) //此时请求已经完成
	    {
	    }  
	  });
	}
//	document.write("<img src='http://stat.javaeye.com/?url="+ encodeURIComponent(document.location.href) + "&referrer=" + encodeURIComponent(document.referrer) + "&logged_in=no" + "' width='0' height='0' />"); 