﻿function getPrint(print_area, title)
		{	
			var pp = window.open(null, null, 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=1030,height=800,left=50,top=50');
			pp.document.writeln('<html>')
			pp.document.writeln('<head>')
			pp.document.writeln('<title>')
			pp.document.writeln(title)
			pp.document.writeln('</title>')
			pp.document.writeln('<link href="/Asosai/Scripts/docbao.css" type="text/css" rel="stylesheet" media="print">')
			pp.document.writeln('<base target="_self">')
			pp.document.writeln('</head>')
			pp.document.writeln('<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0">');
			pp.document.writeln('<form method="post">');
			pp.document.writeln('<table cellspacing="2" class="MnContentDetail" cellpadding="2" width="100%" border="0">')
			pp.document.writeln('<tr>')
			pp.document.writeln('<td colspan="3" height="10">')
			pp.document.writeln('</td>')
			pp.document.writeln('</tr>')
			pp.document.writeln('<tr>')
			pp.document.writeln('<td colspan="3">')
			pp.document.writeln('<img width="1000" src="/Asosai/Images/banner.jpg" />')
			pp.document.writeln('</td>')
			pp.document.writeln('</tr>')
			pp.document.writeln('<tr>')
			pp.document.writeln('<td colspan="3" height="10">')
			pp.document.writeln('</td>')
			pp.document.writeln('</tr>')
			pp.document.writeln('<tr>')
			pp.document.writeln('<td width="10">')
			pp.document.writeln('</td>')
			pp.document.writeln('<td style="text-align:justify">')
			pp.document.writeln(document.getElementById(print_area).innerHTML);
			pp.document.writeln('</td>')
			pp.document.writeln('<td width="10">')
			pp.document.writeln('</td>')
			pp.document.writeln('</tr>')
			pp.document.writeln('<tr>')
			pp.document.writeln('<td width="10">')
			pp.document.writeln('</td>')
			pp.document.writeln('<td style="text-align:left">')
            pp.document.writeln('www.sav.gov.vn')
			pp.document.writeln('</td>')
			pp.document.writeln('<td width="10">')
			pp.document.writeln('</td>')
			pp.document.writeln('</tr>')
			pp.document.writeln('<tr>')
			pp.document.writeln('<td colspan="3" align="center" valign="middle" height="60">')
			pp.document.writeln('<input id="Print" type="button" value="Print" onclick="javascript:location.reload(true);window.print();">&nbsp;&nbsp;&nbsp;')
			pp.document.writeln('<input id="Close" type="button" value="Close" onclick="window.close();">')
			pp.document.writeln('</td>')
			pp.document.writeln('</tr>')
			pp.document.writeln('</table')
			pp.document.writeln('</form>')
			pp.document.writeln('</body>')
			pp.document.writeln('</html>');			
		}
		
		function Print(URL) 
		    {
                day = new Date();
                id = day.getTime();
                eval("page" + id + " = window.open(URL, '" + id + "');");
            }
            
    function OpenModalDialog1(url)
        {
            var vReturnValue;
            if(url != null)
            {
                vReturnValue = window.showModalDialog(url,"#1","dialogHeight: 450px; dialogWidth: 400px; dialogTop: 290px; dialogLeft: 320px; edge:sunken; center: Yes; help: No; resizable: No; status: No; Scroll : No;");
            }
            else
            {
                alert("No URL passed to open");
                vReturnValue = null;
            }
        }
        
    function OpenModalDialog2(url)
        {
            var vReturnValue;
            if(url != null)
            {
                vReturnValue = window.showModalDialog(url,"#1","dialogHeight: 250px; dialogWidth: 800px; dialogTop: 290px; dialogLeft: 160px; edge:sunken; center: Yes; help: No; resizable: No; status: No; Scroll : No;");
            }
            else
            {
                alert("No URL passed to open");
                vReturnValue = null;
            }
        }  
