/*****************************************************************************************************
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();
			window.title='';
			//Adding HTML opening tag with <HEAD> … </HEAD> portion 
			pp.document.writeln('<HTML><HEAD><title></title>')
			pp.document.writeln("<LINK href='../js/PrintStyle.css'  type='text/css' rel='stylesheet' ></LINK><base target='_self'></HEAD>")
			//Adding Body Tag
			pp.document.writeln('<body>');
			//Adding form Tag
			pp.document.writeln('<form  method="post" id="formprint">');
			//Creating two buttons Print and Close within a table
			document.getElementById('dropdown').style.display='none';
			document.getElementById('datalistpager').style.display='none';
			//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>');
			pp.document.writeln('<TABLE width="690" border="0" align="center" cellpadding="0" cellspacing="0"><TR><TD></TD></TR><TR><TD align=right style="padding-bottom:20px"><a class="sidelink" href="javascript:location.reload(true);window.print();">Print</a></a></TD></TR><TR><TD></TD></TR>');
			//Writing print area of the calling page
			//pp.document.writeln('<br /><br />');
			pp.document.writeln('<br/>');
			pp.document.writeln('<TR><TD>');
			pp.document.writeln(document.getElementById(print_area).innerHTML);
			pp.document.writeln('</TD></TR>');
			pp.document.writeln('</TABLE>');
			
			//Ending Tag of </form>, </body> and </HTML>
			pp.document.writeln('</form></body></HTML>');			
		}		
		
