function OpenPopup(url, width, height, resizable)
{
	if (typeof(width) == "undefined") width = 640;
	if (typeof(height) == "undefined") height = 450;
	if (typeof(resizable) == "undefined") resizable = "no";
	window.open(url, '_blank', 'width='+width+', height='+height+', location=no, menubar=no, resizable='+resizable+', scrollbars=yes, status=yes, titlebar=yes, toolbar=no');
}

function SendMessage(uid)
{
	OpenPopup(pages.send_msg + uid);
}

function ShowHelp(topic)
{
	OpenPopup(pages.show_help + topic);
}

function HideShowLP(id)
{
	var src = document.getElementById(id);
	var tds = document.getElementsByTagName("TD");
	var new_style = "";

	for (i=0; i<tds.length; i++)
		if (tds[i].id.substr(0, 3) == "lpp")
		{
			if (new_style == "")
			{
				if (tds[i].style.display == "none")
				{
					new_style = (ie ? "block" : "table-cell" );
					src.innerHTML = "&lt;&lt;&lt;";
				}
				else
				{
					new_style = "none";
					src.innerHTML = "&gt;&gt;&gt;";
				}
			}
			tds[i].style.display = new_style;
		}

	url = pages.xml_forum_view + "&amp;lp=" + new_style;
	var req = new XMLRequest(null, url);
	req.send();
}
