/******************** PRINT FUNCTION **************************/

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</HEAD>\n<BODY class=printbg>\n';

var printReadyElem = document.getElementById("printReady");
if (printReadyElem != null)
{
html += '<p bgcolor="#FFFFFF"><img src="../SiteFiles/passmorescomau/images/printpage.gif" width="415" height="110"></p>';
html += '                          <br>';
html += printReadyElem.innerHTML;

html = html.replace('<SPAN class=productName>', '<font face=\"verdana\" size=\"2\"><b>');
html = html.replace('class=headingarea', '');
html = html.replace('<IMG src=\"../../images/printer.gif\" align=middle border=0>PRINT THIS PAGE', '');
html = html.replace('<IMG src=\"../images/printer.gif\" align=middle border=0>PRINT THIS PAGE', '');
html = html.replace('class=PRINT', '')
html = html.replace('FAQ', '')
html = html.replace('WHERE TO BUY', '')
html = html.replace('COMPARE PRODUCT', '')

}
else
{
alert("Could not find the printReady function");
return;
}
html += '\n</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 browser.");
}
}

/*****************************************************************************************************/