
var gAutoPrint = true; // Tells whether to automatically call the print function

function printSpecial()
{
if (document.getElementById != null)
{
var html = '<HTML>\n<HEAD>\n';

if (document.getElementsByTagName != null)
{
var headTags = document.getElementsByTagName("head");
if (headTags.length > 0)
html += headTags[0].innerHTML;
}

html += '\n<link href="untitled.css" rel="stylesheet" type="text/css"></HEAD>\n<BODY STYLE="background-color: rgb(255,255,255); background-image: none;"><table width="100%" border="0" cellspacing="0" cellpadding="10"><tr><td><table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" class="text"><tr><td><a href="index.php"><img name="index_r1_c1" src="images/logo-print.jpg" width="400" height="76" border="0" alt=""></a></td><td align="right"><table border="0" cellpadding="0" cellspacing="0" class="text"><tr><td height="61" valign="top"><div align="right">Willig, Williams & Davidson<br>1845 Walnut Street - 24th Floor<br>Philadelphia, PA 19103<br>Toll free: (800) 631-1233 / (215) 656-3600<br>www.wwdlaw.com</div></td></tr></table></td></tr><tr><td colspan="2">&nbsp;</td></tr><tr><td colspan="2">\n';

var printReadyElem = document.getElementById("printReady");

if (printReadyElem != null)
{
html += printReadyElem.innerHTML;
}
else
{
alert("Could not find the printReady function");
return;
}

html += '\n</td></tr><tr><td colspan="2">&nbsp;</td></tr></table></td></tr></table></BODY>\n</HTML>';

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 an browser. Please update your browswer.");
}
}
