
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 align="left" border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td><a href="index.php"><img name="index_r1_c1" src="images/logo-print.jpg" width="346" height="92" border="0" alt=""></a></td><td align="right"><table border="0" cellpadding="0" cellspacing="0" style="font-size: 12px; font-family: Arial, Helvetica, sans-serif; color: #005030;"><tr><td height="61" valign="top"><div align="right">Philadelphia, PA - (215) 587-9400<br>Haddonfield, NJ - (856) 429-6331<br>Media, PA - (610) 892-2732<br>www.dmvnlaw.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><tr><td colspan="2" style="font-size: 12px; font-family: Arial, Helvetica, sans-serif; color: #000000;"><div align="center">Suite 3400 - 1601 Market St.- Philadelphia, PA 19103 - Telephone: (215) 587-9400 - Facsimile: (215) 587-9456<br />80 Tanner Street - Haddonfield, NJ 08033-2419 - Telephone: (856) 429-6331 - Facsimile: (856) 429-6562<br />103 Chesley Drive - Lafayette Building - Suite 101 - Media, PA 19063 - Telephone: (610) 892-2732 - Facsimile: (610) 892-2926</div></td></tr><tr><td colspan="2">&nbsp;</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.");
}
}
