
//=============================================================================
// newImage(arg)
// creates a new image object
//
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

//=============================================================================
// changeImages()
// changes the image src of an image to a new image
//
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];
		}
	}
}

//=============================================================================
// jumpToUrl()
// Jump to the selected URL
//
function jumpToUrl(form){
	window.location.href=form.options[form.selectedIndex].value;
}


//=============================================================================
// openWindow(url,name,width,height)
// open URL in popup window
//
function openWindow(url,name,width,height,scroll){
	params = "width="+width+",height="+height+",toolbar=no,scrollbars="+scroll+",directories=no,menu=no,location=no";
	popup = window.open(url,name,params);	// open it
	window.name = "contentWin";				// name the opener so we can reference it
}
