// Javascript: Picture Viewer
// Scripting Copyright 2003 Chris Colefax (ccolefax@yahoo.com)
// All rights reserved
// Use as onclick event of link to image, passing 'this' as the picname

function PicView (PicName, Caption) {
	var PicWindow = window.open ('', 'PicWindow', 'width=620,height=470,resizable=1,dependent=1,scrollbars=1,menubar=0');
	with (PicWindow.document) {
		open ("text/html");
		writeln ('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">');
		writeln ('<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">');
		writeln ('<head>');
		writeln ('<title>traqua.com Picture Viewer</title>');
		writeln ('<meta name="author" content="Webdesign, graphics and scripting copyright &copy; 2005, Chris Colefax (ccolefax@yahoo.com)" />');
		writeln ('<link href="styles.css" rel="stylesheet" type="text/css" />');
		writeln ('</head>');
		writeln ('<body bgcolor="#223355" text="#ffffff" link="#ffee99" alink="#ffee99" vlink="#999999">');
		writeln ('<h2>Traqua.com</h2>');
		writeln ('<center><p>' + Caption + '</p>');
		writeln ('<img src="' + PicName.href + '" border="1" class="Bordered" alt="' + Caption + '" />');
		writeln ('</center>');
		writeln ('<br /><div class="SepBar"></div>');
		writeln ('<center><small><a href="javascript: close();">[Close Window]</a></small></center>');
		writeln ('</body></html>');
		close();
		}
	PicWindow.focus();
	return false;
	}
