function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
function changeImagesArray(array) {
	if (preloadFlag == true) {
		var d = document; var img;
		for (var i=0; i<array.length; i+=2) {
			img = null; var n = array[i];
			if (d.images) {img = d.images[n];}
			if (!img && d.getElementById) {img = d.getElementById(n);}
			if (img) {img.src = array[i+1];}
		}
	}
}
function changeImages() {
	changeImagesArray(changeImages.arguments);
}
function openPopup(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function openCenteredPopup(name, height, width){
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	var windowName = name.slice(name.indexOf('-')+1, 50);
	var windowLoc = ''+name+'.html';
	var winProps = 'toolbar=no,statusbar=no,location=no,scrollbars=no,resizable=yes,width='+width+',height='+height+',top='+wint+',left='+winl;
	window.open(windowLoc, windowName, winProps);
}