
// Craig's open window script
// opens a new window displaying image and title
// 
// Craig Nuttall admin@aus.sh 14-06-2001
// 
// put the next line somewhere between your <head> and </head> tags
// <script src="includes/newWindow.js"></script>

function openWindow(imageURL,title,width,height)
{
        myWindow = window.open('','myWindow','width='+width+',height='+height+'');
        myWindow.document.open();
        myWindow.document.write('<html>\n');
        myWindow.document.write('<head>\n');
        myWindow.document.write('<title>'+title+'</title>\n');
        myWindow.document.write('</head>\n');
        myWindow.document.write('<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">\n');
        myWindow.document.write('<IMG SRC='+imageURL+' ALT="">\n');
        myWindow.document.write('</body>\n');
        myWindow.document.write('</html>\n');
        myWindow.document.close();
        myWindow.focus();
}
