function tell(uN)
{
	gE("loaderShoutBox").style.display	=	"";
	var msg		=	vTrim(gE("msg").value);
	var chat	=	gE("chat").innerHTML;
	if (!isLogged) {
		if (confirm("You are not logged. Login now?")) 
			location.href="/login.php?uback=/users/"+uN+"/";
			
		gE("loaderShoutBox").style.display	=	"none";
		return false;
	}
	
	if (!msg.length) {
		return false;
	}
	var dat = new Date;
	var url		=	"/my/shoutbox.php?msg="+escape(msg)+"&un="+escape(uN)+"&rnd="+dat.getTime();
	
	getUrlXMLResponse(url, function(xmlHttpReq)
	{
		html_content	=	getNodeValue(xmlHttpReq.responseXML.documentElement, "html_content");
		id				=	getNodeValue(xmlHttpReq.responseXML.documentElement, "errors");	
		code			=	getNodeValue(xmlHttpReq.responseXML.documentElement, "return_code");	
		p				=	getNodeValue(xmlHttpReq.responseXML.documentElement, "page");
		
		gE("chat").innerHTML	= 	html_content;
		gE("chat").scrollTop 	= 	gE("chat").scrollHeight;
		gE("loaderShoutBox").style.display	=	"none";
	});
	gE("msg").value	=	"";
	gE("msg").focus();
	return true;
}
function refreshShoutbox()
{
	
	var dat = new Date;
	gE("loaderShoutBox").style.display	=	"";
	var url		=	"/my/shoutbox.php?un="+user+"&rnd="+dat.getTime();
	getUrlXMLResponse(url, function(xmlHttpReq){
		html_content	=	getNodeValue(xmlHttpReq.responseXML.documentElement, "html_content");
		id				=	getNodeValue(xmlHttpReq.responseXML.documentElement, "errors");	
		code			=	getNodeValue(xmlHttpReq.responseXML.documentElement, "return_code");	
		p				=	getNodeValue(xmlHttpReq.responseXML.documentElement, "page");

		gE("chat").innerHTML	= 	html_content;
		gE("chat").scrollTop 	= 	gE("chat").scrollHeight;
		gE("loaderShoutBox").style.display	=	"none";
	});
}
function cleanShoutbox(uN)
{
	var dat = new Date;
	gE("loaderShoutBox").style.display	=	"";
	var url		=	"/my/shoutbox.php?clear=true&un="+escape(uN)+"&rnd="+dat.getTime();
	getUrlXMLResponse(url, function(xmlHttpReq){
		html_content	=	getNodeValue(xmlHttpReq.responseXML.documentElement, "html_content");
		id				=	getNodeValue(xmlHttpReq.responseXML.documentElement, "errors");	
		code			=	getNodeValue(xmlHttpReq.responseXML.documentElement, "return_code");	
		p				=	getNodeValue(xmlHttpReq.responseXML.documentElement, "page");

		gE("chat").innerHTML	= 	html_content;
		gE("chat").scrollTop 	= 	gE("chat").scrollHeight;
		gE("loaderShoutBox").style.display	=	"none";
	});
}