/*****************************************************************************************************
Created By: Ferdous Md. Jannatul, Sr. Software Engineer
Created On: 10 December 2005
Last Modified: 13 April 2006
******************************************************************************************************/
		//Generating Pop-up Print Preview page
		function getPrint(print_area)
		{	
			//Creating new page
			var pp = window.open();
			//Adding HTML opening tag with <HEAD> … </HEAD> portion
			pp.document.writeln('<HTML><HEAD><title>Print Preview</title><LINK href=/App_Themes/Theme_print/print.css  type="text/css" rel="stylesheet">')
			pp.document.writeln('<base target="_self"></HEAD>')
			//Adding Body Tag
			pp.document.writeln('<body>');
			//Adding form Tag
			pp.document.writeln('<form  method="post">');
			//Creating two buttons Print and Close within a table
			pp.document.writeln('<TABLE width=100%><TR><TD>&nbsp;&nbsp;&nbsp;<img src=/App_Themes/Theme_default/Img/295x70_logo_bouwkostenkompas.png></TD><TD align=right><INPUT ID="PRINT" type="button" value="Print" CssClass="MyButton" onclick="javascript:location.reload(true);window.print();"> <INPUT ID="CLOSE" type="button" CssClass="MyButton" value="Close" onclick="window.close();"></TD></TR><TR><TD></TD></TR></TABLE><br><div id="content"><div id="middle">');
			//Writing print area of the calling page
			pp.document.writeln(document.getElementById(print_area).innerHTML);
			//Ending Tag of </form>, </body> and </HTML>
			pp.document.writeln('</div></div></form></body></HTML>');			
			
		}		
		
