function chg_img(img, r_img, t_img)
{
	img.src = img.src.replace(t_img, r_img);
}

function image_zoom(img_big, description)
{
	var temp = new Image();
	temp.src=img_big;
	var page = '<html>'+
					'<head></head>'+
						'<body bgcolor="#ffffff" rightmargin="5" leftmargin="5" bottommargin="5" topmargin="5">'+
						'<table cellspacing="0" cellpadding="0" border="0" width="100%" height="100%">'+
						'<tr><td height="100%" align="center"><img align="middle" src="'+temp.src+'" border=0 id="imag"></td></tr>'+
						'<tr><td align="center" id="desc">'+description+'</td></tr>'+
					'</table></body>'+
					'<script type="text/javascript">' + 
					'window.onload = function () {' + 
					'var imag = document.getElementById("imag");' +
					'var desc = document.getElementById("desc");' +
					'var widt = imag.width;' +
					'var heigh = imag.height + desc.offsetHeight;' +
					'window.resizeTo((widt+25),(heigh+110));' +
					'if(screen) window.moveTo( ((screen.width-widt)/2), ((screen.height-heigh)/2));' +
					'}' + 
					'</script>' + 
				'</html>';
	var attribs = ',' + "menubar=0,location=0,toolbar=0,status=0,scrollbars=0,resizable=0, width=100,height=100";
	var wind = window.open('','_blank',attribs);
	wind.document.open();
	wind.document.write(page);
	wind.document.close();
}