function print(inDiv){
 
	var div2Print = document.getElementById(inDiv).innerHTML;
	 
	window1= window.open ("", "mywindow");
	window1.document.open();
	window1.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head></head><body>');
	window1.document.write("<div id='main'>");
	window1.document.write(div2Print);
	window1.document.write("</div></body></html>");
	window1.document.close();
	window1.print();
}