/*****************************************************************************************************
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=Styles.css  type="text/css" rel="stylesheet">')			
			pp.document.writeln('<HTML><HEAD><title>Print Preview</title>')			
			pp.document.writeln('<link rel="stylesheet" type="text/css" href="../css/default.css" />')
			pp.document.writeln('<link rel="stylesheet" type="text/css" href="../css/mainpage.css" />')			
			//
			pp.document.writeln('<script type=\'text/JavaScript\'>function imprimir(){ window.print();}</script>')			
			
			pp.document.writeln('<LINK href=../CSS/PrintStyle.css  type="text/css" rel="stylesheet" media="print"><base target="_self"></HEAD>')
			pp.document.writeln('<base target="_self"></HEAD>')
			//Adding Body Tag
			pp.document.writeln('<body MS_POSITIONING="GridLayout" bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0">');
			//Adding form Tag
			pp.document.writeln('<form  method="post">');
			//Creating two buttons Print and Close within a table
			
			
			pp.document.writeln('<TABLE class="txtcol2int"  id="tablaPrint" width=100%><TR><TD></TD></TR><TR><TD align=right><INPUT ID="PRINT" type="button" value="Imprimir" class="formbutton" onclick="javascript:location.reload(true);imprimir();"><INPUT ID="CLOSE" type="button" class="formbutton"  value="Cerrar" 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.getElementById('ctl00_ContentPlaceHolder1_Table1').style.display='none';
			
			//pp.document.getElementById('ctl00_ContentPlaceHolder1_Table2').style.display='none';
			//pp.document.getElementById('ctl00_ContentPlaceHolder1_Table2').style.visibility='hidden';
			//Ending Tag of </form>, </body> and </HTML>
			pp.document.writeln('</form></body></HTML>');						
		}		
		