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);
}

var popup=0; 
function newWindow(newURL,left,top,width,height) { 
popup = window.open(newURL,'popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+''); 
}

		
function switchImage(frontorback,imgID,imgSRC){
	if (document.getElementById){
		document.getElementById(imgID).src = imgSRC;
		if(frontorback=="front"){
			document.getElementById('front').style.fontWeight="bold";
			document.getElementById('rear').style.fontWeight="normal";
			}else{
			document.getElementById('rear').style.fontWeight="bold";
			document.getElementById('front').style.fontWeight="normal";
			}
		}
}
