
function ImageViewer(imagesrc,winwidth,winheight)
{
	var j = new Image();
	j.src = imagesrc;
	winwidth = j.width?  j.width : winwidth;
	winheight = j.height?  j.height : winheight;
	var look='width='+winwidth+',height='+winheight+','
	popwin=window.open("","",look)
	popwin.document.open()
	popwin.document.write('<title>Enlarged Preview</title><script language="JavaScript" src="script.js">	</script><body style="MARGIN: 0px" onload="callIt()"><img src="'+imagesrc+'" name="myimage"></body>')
	popwin.document.close()
}



var message="Nice Try!";

function callIt()
{
	ww = document['myimage'].width + 10
	 wh = document['myimage'].height + 29
	window.resizeTo(ww, wh);
}


