function changeImage(imageId, width, height) {
	var imgClicked = getObject(imageId);
	if (imgClicked) {
		var imgLayer = getObject('imgMainLayer');
		if(imgLayer) {
			text = '<img id="imgMain" src="' + imgClicked.src + '" style="border-color:#ffffff;border-width:4px;border-style:Outset" width="' + width + '" height="' + height + '" border="0">';
			if (document.getElementById)
			{
				imgLayer.innerHTML = '';
				imgLayer.innerHTML = text;
			}
			else if (document.all)
			{
				imgLayer.innerHTML = text;
			}
			else if (document.layers)
			{
				textWrap = '<P CLASS="wrapperclass">' + text + '</P>';
				imgLayer.document.open();
				imgLayer.document.write(textWrap);
				imgLayer.document.close();
			}
		} 
		else {
			//we couldn't find the object
			//alert('could not find the image layer');
		}
	}
	else {
		//alert('could not find the click object');
	}
}

