function OpenNewWindow(Picture,width,height,title,copyright)
{
xsize = width+100;
if (copyright==true) ysize = height+260;
else  ysize = height+90;
    
ScreenWidth = screen.width;
ScreenHeight = screen.height;

xpos = (ScreenWidth/2)-(xsize/2);
ypos = (ScreenHeight/2)-(ysize/2);
	
	NewWindow=window.open("","Picture","height="+ysize+",width="+xsize+",scrollbars=yes,resizable=no,top="+ypos+",left="+xpos+"");
	NewWindow.document.write ("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>");
	NewWindow.document.write ("<html><head><title>");
	NewWindow.document.write (title);
	NewWindow.document.write ("</title></head>");
                     NewWindow.document.write ("<body bgcolor='#FFCC00' onload='focus()'>");
	//NewWindow.document.write ("<body bgcolor='#cccccc'>");
	NewWindow.document.write ("<table border='0' cellspacing='0' cellpadding='5' align='center'><tr>");
	NewWindow.document.write ("<td align='left' valign='top'>");
	NewWindow.document.write ("<img src='images/pop_logo.jpg'  width='161' height='34'></td></tr><tr>");
	NewWindow.document.write ("<td align='left' valign='top'><h3 style='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; color: #000000; text-decoration: none;'>");
	NewWindow.document.write (title);
	NewWindow.document.write ("</h3></td></tr><tr>");
	NewWindow.document.write ("<td align='center'>");
	NewWindow.document.write ("<img src=\"");
	NewWindow.document.write (Picture);
	NewWindow.document.write ("\"></td></tr>");
	if (copyright==true) {
	NewWindow.document.write ("<tr><td align='left' valign='top'>");
	NewWindow.document.write ("<img src='images/melway.gif' width='96' height='33'>");
	NewWindow.document.write ("<span style='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #000000\; text-decoration: none'><br>Copyright Melway Publishing Pty. Ltd.<br>Reproduced with permission.</span></td></tr>");
	}
	NewWindow.document.write ("<tr><td align='center' valign='bottom'>");
	NewWindow.document.write ("<br><center><form><input type='button' value='Close Window' style='font-family: Verdana; font-size: 10px' onClick='self.close()'>");
	NewWindow.document.write ("</td></tr></table>");
	NewWindow.document.write ("</form></body></html>");
	NewWindow.document.close();
    NewWindow.resizeTo(xsize,ysize); 
}