function newimage(url) {
	if (document.images) {
		result = new Image();
		result.src = url;
		return result;
	}
}

function changeimage(name,url) {
	image = null;
	if (document.images) {
		if (document.layers) {
			image = findElement(name,0);
		} else {
			image = document.images[name];
		}
	}
	
	if (!image && document.getElementById) {
		image = document.getElementById(name);
	}
	
	if (!image && document.getElementsByName) {
		var e = document.getElementsByName(name);
		if (e) {
			for (i=0; i<e.length; i++) {
				if (e[i].src) {
					image = e[j];
					break;
				}
			}
		}
	}
	
	if (image) {
		image.src = url;
	}

}