﻿function printSpecial()
{
    var html = '<HTML>\n<HEAD><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n';
    var printWin;
    if (document.getElementsByTagName != null)
    {
        var headTags = document.getElementsByTagName("head");
        if (headTags.length > 0)
            html += headTags[0].innerHTML;
    }
    html += '\n</HEAD>\n<BODY>';
    // Div contain news
    
    html +='<DIV id=baninLongAn><img src=/PublishingImages/img-longan/bannerPrint.jpg></DIV>';
    html +='<div class=pr-home>';
    html +='<div class=pr-preview>';
    
    var printReadyElem = document.getElementById("print-news");
    if (printReadyElem != null)
    {
        html += printReadyElem.innerHTML;
    }
    else
    {
        alert("Could not find the print-news div");
        return;
    }
    //
    html +='</div>';
    html +='</div>';
    
    html +='<div class=printpreview><a href=javascript:window.print();>In bài</a></div>';
    html +='<div>CỔNG THÔNG TIN ĐIỆN TỬ LONG AN</div>';
    html += '\n</BODY>\n</HTML>';
    //
    printWin = window.open("","printSpecial");
    printWin.document.open();
    printWin.document.write(html);
    printWin.document.close();
}






