// JavaScript Document
function viewPicture(name)
{
	img = new Image();
	img.src = name;
	var param = "resizable=yes,width=250,height=90";
	picwindow = window.open("pic.html","picwindow_",param);
	picwindow.resizeTo(250, 90);
	picwindow.focus();
	content = "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'><html><head><title>Matz pics inc.</title><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'><link rel='stylesheet' type='text/css' href='formate.css'></head><body><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td><img src='" + name + "'></td></tr></table></body></html>";
	picwindow.document.write(content);
	self.setTimeout("picture()", 400);
}
function picture()
{
	if (picwindow.document.images.length > 0 && picwindow.document.images[0].complete == false) {
		self.setTimeout("picture()",400);
		return;
	} else {
		var width = img.width+13;
		var height = img.height+32;
		var dx = width - 250;
		var dy = height -100;
		var x = dx/(dy/2);
		var xx = 250;
		for(var y = 100; y < dy+100; y+=2){
			picwindow.resizeTo(xx+=x, y);
		}
		picwindow.resizeTo(img.width+13, img.height+32);
	}
}