function openPopupEx(address, name, width, height)
	{
		var width_c;
		var height_c;
		var dX = 10;
		var dY = 30;
		
		width_s = window.screen.availWidth - dX;
		height_s = window.screen.availHeight - dY;

		var scrollbars = "scrollbars=no";
		var width_r = "width=" + width + ",";
		var height_r = "height=" + height + ",";
		var top_r = "top=" + (height_s - height)/2 + ",";
		var left_r = "left=" + (width_s - width)/2 + ",";

		if (width > width_s)
		{
			width_r = "width=" + (width_s) + ","
			scrollbars = "scrollbars=yes";
			left_r = "left=0,";
		}

		if (height > height_s)
		{
			height_r = "height=" + (height_s) + ","
			scrollbars = "scrollbars=yes";
			top_r = "top=0,";
		}

		window.open(address, name, 'menubar=no,toolbar=no,directories=no, scrollbars=yes,resizable=no,'+width_r+height_r+top_r+left_r);
	}

	function openPopupAx(address, name, width, height)
	{
		var width_c;
		var height_c;
		var dX = 10;
		var dY = 30;
		
		width_s = window.screen.availWidth - dX;
		height_s = window.screen.availHeight - dY;

		var scrollbars = "scrollbars=yes";
		var width_r = "width=" + width + ",";
		var height_r = "height=" + height + ",";
		var top_r = "top=" + (height_s - height)/2 + ",";
		var left_r = "left=" + (width_s - width)/2 + ",";

		if (width > width_s)
		{
			width_r = "width=" + (width_s) + ","
			scrollbars = "scrollbars=yes";
			left_r = "left=0,";
		}

		if (height > height_s)
		{
			height_r = "height=" + (height_s) + ","
			scrollbars = "scrollbars=yes";
			top_r = "top=0,";
		}

		window.open(address, name, 'menubar=no,toolbar=no,directories=no,scrollbars=yes,resizable=no,'+width_r+height_r+top_r+left_r);
	}



function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		spbtrltd_over = newImage("images/spbtrltd-over.gif");
		preloadFlag = true;
	}
}

