var gAutoPrint = true; 
// Flag for whether or not 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">\n<html xmlns="http://www.w3.org/1999/xhtml">\n<HTML>\n<HEAD>\n';

html += '\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>\n<link rel="stylesheet" href="/library/default.css" type="text/css"/>\n<style>.printshare {display:none;}</style>\n</HE' + 'AD>\n\n<BODY style="background-color:#fffffff;background-image:none;">\n';
var printReadyElem = document.getElementById("print");

if (printReadyElem != null)
{
html += printReadyElem.innerHTML;
}
else
{
alert("Could not find the printReady section in the HTML");
return;
}

html += '\n</BO' + 'DY>\n</HT' + 'ML>';

var printWin = window.open("","content");
printWin.document.open();
printWin.document.write(html);
printWin.document.close();

var links = printWin.document.getElementsByTagName("a");
var i;

for (i=0;i<links.length;i++)
{
//links[i].parentNode.innerHTML=links[i].innerHTML;
txt = links[i].innerHTML;
links[i].parentNode.insertBefore(document.createTextNode(txt),
links[i]);
links[i].parentNode.removeChild(links[i]);
i--;
}

if (gAutoPrint)
printWin.print();
}
else
{
alert("Sorry, the print ready feature is only available in modern browsers.");
}


}