function printSpecial(divID)
{
    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</HE' + 'AD>\n<BODY style="margin:0px; padding:0px;">\n';
        html += '\n<div style="width:600px; height:auto; margin:0px auto;">\n';
       
        var printReadyElem = document.getElementById(divID);
       
        if (printReadyElem != null)
        {
                html += printReadyElem.innerHTML;
        }
        else
        {
            alert("Could not find the printReady section in the HTML");
            return;
        }
        
        html += '\n</div>\n';  
        html += '\n</BO' + 'DY>\n</HT' + 'ML>';
       
        var printWin = window.open("","printSpecial");
        printWin.document.open();
        printWin.document.write(html);
        printWin.print();
        printWin.close();
    }
    else
    {
        alert("Sorry, the print ready feature is only available in modern browsers.");
    }
}