function changeImages(imgname, imgselected, baseloc) {
	d = document;
	if (d.images) {
		var img;
		img = null;
		if (d.layers) {img = findElement(imgname,0);}
		else {img = d.images[imgname];}
		if (img) {img.src = baseloc+imgname+imgselected+'.gif';}
	}
}

function newImg(loc){
	if(document.images){
		img = new Image;
		img.src = loc;
		return img;
	}
}