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

function printSpecial(div)
{
if (document.getElementById != null)
{
var html = '<HTML>\n<HEAD>\n';

html += '<link href="roam_css/roam_css.css" rel="stylesheet" type="text/css" />\n<title>Receipt - ROAM Data</title>\n<style type="text/css">\n<!--\nbody {\nbackground-color: #FFFFFF;\n}\n-->\n</style></HEAD>\n<BODY>\n<span class="text">\n';

var printReadyElem = document.getElementById(div);

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

html += '</span>\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.");
}
}
