function MakeHtmlSource()
    {
    var content = document.getElementById("vbox_content").innerHTML;  
    var title = document.title;         
    return ("<html>" + "<head><link href='css/vbox.css' rel='stylesheet' type='text/css' />" + "<title>"+ title +"</title>" + "<script>" + "function step1() {" + "setTimeout('step2()', 100); }" 
    + "function step2() {" + "window.print(); " + "window.close(); }" 
    + "</scr" + "ipt>" 
    + "</head>" 
    + "<body onLoad='step1()'>" 
    + content 
    + "</body>" 
    + "</html>");
    }
    function MakeHtmlSource1()
    {
    var content = document.getElementById("vbox_content").innerHTML;  
    var title = document.title;         
    return ("<html>" + "<head>" + "<title>"+ title +"</title>" + "<script>" + "function step1() {" + "setTimeout('step2()', 100); }" 
    + "function step2() {" + "window.print(); " + "window.close(); }" 
    + "</scr" + "ipt>" 
    + "</head>" 
    + "<body onLoad='step1()'>" 
    + "<img  src='popups/images/ISO-9001.jpg' style='height:750px;' />"
    + "</body>" 
    + "</html>");
    }
    function SendToPrinter()
    {
    var link = "about:blank";
    var winRef = window.open(link, "_new");
        winRef.document.open();
          winRef.document.write(MakeHtmlSource());          
    winRef.document.close();
    }        
        
        function SendToPrinter1()
    {
    var link = "about:blank";
    var winRef = window.open(link, "_new");
        winRef.document.open();
          winRef.document.write(MakeHtmlSource1());          
    winRef.document.close();
    }     