<!-- Javascript utilities for various window commands.				 	-->
<!-- Source of inspiration:  The JavaScript Source: http://javascript.internet.com 	-->

function popupWindow(url,hgt,wdh)
{
window.open(url,'','height=' + hgt + ',width=' + wdh + ',left=200,top=200');
}

function displayProduct(imagepath,prodname,proddescription)
{

popup=window.open("","","height=580,width=640,left=200,top=200");

popup.document.write("<html><head><title>" + prodname + "</title>");
popup.document.write("<link rel='stylesheet' type='text/css' href='styles/asl.css'></head><body>");
popup.document.write("<center><table width='100%' height='100%'>");
popup.document.write("<tr><td width='618' height='417' background='" + imagepath + "'><center><img src='images/skin.gif'>");
popup.document.write("</center></td></tr><tr><td width='100%'>");
popup.document.write("<P><center class='defaulttext'>" + proddescription + "</center></td></tr></table></center>");
popup.document.write("</body></html>");

// If you just want to open an existing HTML page in the 
// new window, you can replace win()'s coding above with:
// window.open("page.html","","height=200,width=200,left=80,top=80");

}

function displaySlips(imagepath,prodname,proddescription)
{

popup=window.open("","","height=530,width=640,left=200,top=200");

popup.document.write("<html><head><title>" + prodname + "</title>");
popup.document.write("<link rel='stylesheet' type='text/css' href='styles/asl.css'></head><body>");
popup.document.write("<center><table width='100%' height='100%'>");
popup.document.write("<tr><td width='618' height='417' background='" + imagepath + "'><center><img src='images/skin.gif'>");
popup.document.write("</center></td></tr><tr><td width='100%'>");
popup.document.write("<P><center class='defaulttext'>" + proddescription + "<p><p><p>Copyright © 2006 Arran Sealife - Angus Robson</center></td></tr></table></center>");
popup.document.write("</body></html>");

// If you just want to open an existing HTML page in the 
// new window, you can replace win()'s coding above with:
// window.open("page.html","","height=200,width=200,left=80,top=80");

}