/* ********************************************************************

# Picture PopUp procedures
# Author : PHA, 2002

************************************************************************ */
	
	var pic = new Image();

	var pWin = null;
	var iPath;
	var pWidth = screen.availWidth;
	var pHeight = screen.availHeight;
	var w = 0;
	var h = 0;


	function ShowPic(pic,w,h,iPath)

	{
		
		pWin = window.open('','posB','width=' + w + ',height=' + h + ',left=' + ((pWidth - w - 10) * .5) + ',top=' + ((pHeight - h - 30) * .5));
		var fd = pWin.document;
		fd.open();
		fd.write('<html><head><title>Picture #' + pic + '</title></head>');
		fd.write('<body bgcolor="#ffffff" onLoad="window.focus()">');
		fd.write('<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">');
		fd.write('<tr><td align="center" valign="middle"><img src="' + 'images/' + iPath + '/' + pic + '.jpg"></td></tr>');
		fd.write('</table></body></html>');
		fd.close();
	}

	function pCloseWin()

	{
		if (pWin != null && pWin.open) pWin.close();
	}
