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];
		}
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function openSizedWindow(page, wid, hgt) {
        var screenwidth = window.screen.availWidth;
        var screenheight = window.screen.availHeight;
        var halfwidth = Math.floor(wid/2);
        var halfheight = Math.floor(hgt/3);
        var leftpos = screenwidth/2 - halfwidth;
        var toppos = screenheight/3 - halfheight;
        var _width = "width=" + wid + ",";
        var _height = "height=" + hgt + ",";
        var _scroll = "scrollbars=yes,resizable=no,";
        var _posLeft= "screenX=" + leftpos + ",left=" + leftpos + ",";
        var _posTop = "screenY=" + toppos + ",top=" + toppos ;
        var w = window.open(page,"uni", _width + _height + _scroll + _posLeft + _posTop);
        w.focus();
        return false;
}
