// SnB_3 JavaScript Document
function pointercursor(){document.body.style.cursor = "move";}
function unpointercursor(){document.body.style.cursor="";}

function onLoadFunction() {
	if (document.getElementById) {  // DOM3 = IE5, NS6
		document.getElementById('loadingLayer').style.visibility = 'hidden';
	}
	else {
		if (document.layers) {  // Netscape 4
			document.loadingLayer.visibility = 'hidden';
		}
		else {  // IE 4
			document.all.loadingLayer.style.visibility = 'hidden';
		}
	}
}

function select_switch(status)
{
	for (i = 0; i < document.privmsg_list.length; i++)
	{
		document.privmsg_list.elements[i].checked = status;
	}
}

function maxWindow()
{
	window.moveTo(0,0);
	if (document.all)
	{
		top.window.resizeTo(screen.availWidth,screen.availHeight);
	}
	else if (document.layers||document.getElementById)
	{
		if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth)
		{
			top.window.outerHeight = screen.availHeight;
			top.window.outerWidth = screen.availWidth;
		}
	}
}

function refresh_username(selected_username)
{
	opener.document.forms['post'].username.value = selected_username;
	opener.focus();
	window.close();
}