if (document.getElementById) DOM = true; else DOM = false;
dom = DOM;

function displayStatusbarMessage (msgStr)
{
	document.returnValue = false;
	if (document.images) {
			window.status = msgStr;
			document.returnValue = true;
	}
} // function displayStatusbarMessage

function openWin (winname, location, winwidth, winheight, scrollbars)
{
	if (scrollbars == "") scrollbars = ",scrollbars=no,"; else scrollbars = "," + scrollbars + ",";
	win = window.open('', winname, 'width=' + winwidth + ',height=' + winheight + scrollbars + 'resizable=yes, toolbar=no, status=no, directories=no, menubar=no, location=no');
	win.moveTo(screen.width / 2 - winwidth / 2, screen.height / 2 - winheight / 2);
	win.location.href = location;
	win.focus();
} // function openWin

