/*****************************************************************************************************
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="../cssStyles/MasterStyle.css" rel="stylesheet" type="text/css" media="all" id="screenCSS" />')
			pp.document.writeln('<link href="../cssStyles/mapPrint.css" rel="stylesheet" type="text/css" media="print" id="printCSS" /></head>')
			//Adding Body Tag
			pp.document.writeln('<body>');

			pp.document.writeln('<div id="mapPreview">');
			
			//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></TD></TR><TR><TD align=right><INPUT ID="PRINT" type="button" value="Print" onclick="javascript:location.reload(true);window.print();"><INPUT ID="CLOSE" type="button" value="Close" onclick="window.close();"></TD></TR><TR><TD></TD></TR></TABLE>');
			//Writing print area of the calling page
			pp.document.writeln(document.getElementById(print_area).innerHTML);

			//pp.document.writeln('<INPUT ID="PRINT" type="button" value="Print" onclick="javascript:location.reload(true);window.print();"><INPUT ID="CLOSE" type="button" value="Close" onclick="window.close();"></TD></TR><TR><TD></TD></TR></TABLE>');
			pp.document.writeln('</div>');

			pp.document.writeln('<div id="mapExtra">');
			//<input id="btnPrint" type="button" value="Print" onclick="javascript:location.reload(true);window.print();">
			pp.document.writeln('<input id="btnClose" type="button" value="Close" onclick="window.close();">');  
			pp.document.writeln('</div>');
			
			//Ending Tag of </form>, </body> and </HTML>
			pp.document.writeln('</body></html>');

			pp.document.close();			
		}		
		
