﻿/* printer-friendly code begins */

function Clickheretoprint() {
    var disp_setting = "toolbar=yes,location=no,directories=yes,menubar=yes,";
    disp_setting += "scrollbars=yes,width=800, height=600, left=100, top=25";
    var content_vlue = document.getElementById("print_content").innerHTML;
    
    var docprint = window.open("", "", disp_setting);
    docprint.document.open();
    //Commented on Nov. 11, 2010 to include stylesheet tag in <head> element  begins
    //docprint.document.write('<html><head><title>Printer Friendly Version</title>');
    //Commented on Nov. 11, 2010 to include stylesheet tag in <head> element  ends

    //Added on Nov. 11, 2010 to add <link> tag to retain a stylesheet of a page  begins
    docprint.document.write('<html><head><title>Printer Friendly Version</title><link type="text/css" rel="Stylesheet" href="fp.css" />');
    //Added on Nov. 11, 2010 to add <link> tag to retain a stylesheet of a page  ends

    docprint.document.write('</head><body onLoad="self.print()"><br /><br />');
    docprint.document.write(content_vlue);
    docprint.document.write('</body></html>');
    docprint.document.close();
    docprint.focus();
}

function ClickheretoprintFR() {
    var disp_setting = "toolbar=yes,location=no,directories=yes,menubar=yes,";
    disp_setting += "scrollbars=yes,width=800, height=600, left=100, top=25";
    var content_vlue = document.getElementById("print_content").innerHTML;
    
    var docprint = window.open("", "", disp_setting);
    docprint.document.open();
    //Commented on Nov. 11, 2010 to include stylesheet tag in <head> element  begins
    //docprint.document.write('<html><head><title>Version imprimable</title>');
    //Commented on Nov. 11, 2010 to include stylesheet tag in <head> element  ends

    //Added on Nov. 11, 2010 to add <link> tag to retain a stylesheet of a page  begins
    docprint.document.write('<html><head><title>Version imprimable</title><link type="text/css" rel="Stylesheet" href="fp.css" />');
    //Added on Nov. 11, 2010 to add <link> tag to retain a stylesheet of a page  ends

    docprint.document.write('</head><body onLoad="self.print()"><br /><br />');
    docprint.document.write(content_vlue);
    docprint.document.write('</body></html>');
    docprint.document.close();
    docprint.focus();
}

/* printer-friendly code ends */


