var gAutoPrint = true; // Tells whether to automatically call the print function

function printSpecial()
{
if (document.getElementById != null)
{
var html ='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
html += '<HTML>\n<HEAD>\n';
html +='<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />';
html +='<meta content="text/html; charset=utf-8" http-equiv="content-type"/>';
html += '<link rel="stylesheet" type="text/css" href="http://www.starbase.co.uk/templates/jaw049/css/print.css"/>';
html += '\n</HE>\n<BODY widht="70%">\n';
html += '<img src="http://www.starbase.co.uk/images/stories/starbase.jpg" alt="Starbase Logo" title="Starbase Logo"/><br/>';
//html += '<p style="font-size:11pt">This page has been printed from the <b>www.starbase.co.uk</b> web site<br />Contact StarBase by telephoning +44(0) 20 8236 7000<br/>©2005 StarBase Computer Services Ltd</p>';

var printReadyElem = document.getElementById("printReady");

if (printReadyElem != null)
{
html += printReadyElem.innerHTML;
}
else
{
alert("Could not find the printReady function");
return;
}

html += '\n</BO>\n</HT>';

var printWin = window.open("","printSpecial");
printWin.document.open();
printWin.document.write(html);
printWin.document.close();
if (gAutoPrint)
printWin.print();
}
else
{
alert("The print ready feature is only available if you are using a browser. Please update your browswer.");
}
}
