
var prnwin;

function printme() 
{
	var ht = 500;
	var wd = 760;

	var features = 'toolbar=0,menubar=0,resizable=1,scrollbars=1,status=1,height=' + ht + ',width=' + wd + ',top=' + (screen.availHeight/2 - ht/2) + ',left=' + (screen.availWidth/2 - wd/2);
	var content = document.getElementById("printblock").innerHTML; 

	var title = document.title;

	var tDate = new Date();
	var curDT = tDate.toDateString() + ' ' + tDate.getHours() + ':' + tDate.getMinutes() + ':' + tDate.getSeconds();
		
	if(prnwin) if(!prnwin.closed) prnwin.close();

	prnwin = window.open("", "", features); 

	prnwin.document.open(); 
	prnwin.document.write('<html><head>');
	prnwin.document.write('<link rel="stylesheet" type="text/css" href="./styles/print.css">'); 
	prnwin.document.write('<title>' + title + '</title>');
	prnwin.document.write('</head><body onLoad="self.print();">');
	prnwin.document.write('<div id="printheader">'); 
	prnwin.document.write('<img alt="53rd All India Police Duty Meet" border="0" src="./admin/images/logo_print.jpg" />');
	prnwin.document.write('<h2>53<sup>rd</sup> All India Police Duty Meet 2010</h2>');
	prnwin.document.write('<h3>February 2-9, 2010 | Gandhinagar - Gujarat</h3>');
	prnwin.document.write('<h4>' + title + '</h4>');
	prnwin.document.write('</div>');
	prnwin.document.write(content);          
	prnwin.document.write('<div id="printfooter">Printed From <b>www.aipdm-gujarat.in</b> on ' + curDT + '<br/>53<sup>rd</sup> All India Police Duty Meet, Gandhinagar - Gujarat</div>'); 
	prnwin.document.write('</body></html>'); 
	prnwin.document.close(); 
	prnwin.focus(); 
}