function Popup(strURL, strName, intWidth, intHeight, strStatus, strScroll, strResize, strToolbar) {
	if (!strURL) {
		alert('A link must be specified when using the Popup function.');
	}
	else {
		if (!strName) strName = 'popup';
		if (!intWidth) intWidth = 600;
		if (!intHeight) intHeight = 400;
		if (!strStatus) strStatus = 'yes';
		if (!strScroll) strScroll = 'yes';
		if (!strResize) strResize = 'yes';
		if (!strToolbar) strToolbar = 'no';
		var objWindow = window.open(strURL, strName, 'width=' + intWidth + ',height=' + intHeight + ',status=' + strStatus + ',scrollbars=' + strScroll + ',resizable=' + strResize + ',toolbar=' + strToolbar);
		objWindow.focus();
	}
}

/* preload images */
if (document.images)
{
	menuOff=new Image();
	menuOff.src="images/spacer.gif";
	menuOn=new Image();
	menuOn.src="images/menu_on.gif";
}

function menuSwap(boolIsOver, strImgName, strMsg)
{
	document.images ? document.images[strImgName].src = eval((boolIsOver ? "menuOn" : "menuOff") + ".src") : null;
	printStatus(strMsg);
}

function printStatus(strMsg)
{
	window.status = (strMsg.length > 0 ? strMsg : "");
}
