function popupWin(url, window_name, window_width, window_height) {
	settings= "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+window_width+",height="+window_height; 
	NewWindow=window.open(url,window_name,settings);
}
function newPM() {
	confirmReturn = confirm("You have received a new private message. Click OK to view it, or cancel to hide this prompt.");
	if(confirmReturn = true) {
		settings= "toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=600,height=500"; 
		NewWindow=window.open('private.php','pmPopup',settings);
	} else {
	// do nothing
	}
}
function checkall(formname)
{
	for (var i = 0; i < formname.elements.length; i++)
	{
		var element = formname.elements[i];
		if ((element.name != "allbox") && (element.type == "checkbox"))
		{
			element.checked = formname.allbox.checked;
		}
	}
}

function checkAll(formName) {
	for(var i=0;i<formName.elements.length;i++) {
		var element = formName.elements[i];
		if((element.name != "allbox") && (element.type == "checkbox")) {
			element.checked = formName.allbox.checked;
		}
	}
}
function reportPost(pid) {
	popupWin("report.php?pid=" + pid, "reportPost", 400, 300)
}
function whoPosted(tid) {
	popupWin("misc.php?action=whoposted&tid=" + tid, "whoPosted", 230, 300)
}

