function ChangeImage(strName, strSource) {
	document.images[strName].src = strSource;
}

function Popup(strURL, strName, intWidth, intHeight, strStatus, strScroll, strResize, strToolbar, strMenu, intTop, intLeft) {
	if (!strURL) {
		alert('A link must be specified when using the Popup function.');
	}
	else {
		window.name = 'popupopener';
		var strTop, strLeft;
		if (!strName) strName = 'popup';
		if (!intWidth) intWidth = 600;
		if (intWidth > (window.screen.width - 25)) intWidth = (window.screen.width - 25);
		if (!intHeight) intHeight = 400;
		if (intHeight > (window.screen.height - 125)) intHeight = (window.screen.height - 125);
		if (!strStatus) strStatus = 'yes';
		if (!strScroll) strScroll = 'yes';
		if (!strResize) strResize = 'yes';
		if (!strToolbar) strToolbar = 'no';
		if (!strMenu) strMenu = 'no';
		if (intTop && !isNaN(intTop)) strTop = ',top=' + intTop;
		if (intLeft && !isNaN(intLeft)) strLeft = ',left=' + intLeft;
		if (typeof window.objWindow != "undefined" && typeof window.objWindow == "object" && !window.objWindow.closed)
		{
			window.objWindow.close();
		}
		window.objWindow = window.open(strURL, strName, 'width=' + intWidth + ',height=' + intHeight + ',status=' + strStatus + ',scrollbars=' + strScroll + ',resizable=' + strResize + ',toolbar=' + strToolbar + ',menubar=' + strMenu + strTop + strLeft);
		window.objWindow.focus();
	}
}