﻿// JScript File
		//onclick="javascript:location.reload(true);window.print();"
			function getprint(print_area)
			{	
		   //document.write(document.getElementById("blogbody").innerText    ) 
			var pp = window.open()
			pp.document.writeln('<html xmlns="http://www.w3.org/1999/xhtml"><HEAD>');
			pp.document.writeln('<link href="../App_Themes/_Print/PrintStyle.css" rel="stylesheet" type="text/css" media="print" />');
			pp.document.writeln('<base target="_self"><link href="../App_Themes/_Print/Style.css" rel="stylesheet" type="text/css" />');
			pp.document.writeln('<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Yara-print</title></HEAD>');
			pp.document.writeln('<body>');
			pp.document.writeln('<form  method="post">');
			pp.document.writeln('<body><div id="print_wrapper"><div id="logo"><img src="../images/logo/logo.gif" title="لوگو" alt="لوگو" /></div><br class="clear" /><br /><a href="#" ID="PRINT" ID="CLOSE" onclick="window.close();"><div id="cancel_icon">بستن پنجره</div></a><a href="#" ID="PRINT" onclick="javascript:location.reload(true);window.print();"><div id="print_icon">چاپ</div></a><br class="clear" /><div id="print_content">');
			pp.document.writeln('');
  		    pp.document.writeln(document.getElementById(print_area).innerHTML  );
			pp.document.writeln('</div><a href="#" ID="PRINT" ID="CLOSE" onclick="window.close();"><div id="cancel_icon">بستن پنجره</div></a><a href="#" ID="PRINT" onclick="javascript:location.reload(true);window.print();"><div id="print_icon">چاپ</div></a><br class="clear" /></div>');
			pp.document.writeln('</form></body></html>');	
		}	
		
		function getprintdisplay(print_area)
			{	
		   //document.write(document.getElementById("blogbody").innerText    ) 
			var pp = window.open()
			pp.document.writeln('<HTML><HEAD>');
			pp.document.writeln('<link href="../../App_Themes/_Print/PrintStyle.css" rel="stylesheet" type="text/css" media="print" />');
			pp.document.writeln('<base target="_self"><link href="../../App_Themes/_Print/Style.css" rel="stylesheet" type="text/css" /></HEAD>');
			pp.document.writeln('<body MS_POSITIONING="GridLayout" bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0">');
			pp.document.writeln('<form  method="post">');
			pp.document.writeln('<br /><br />');
			pp.document.writeln('<TABLE width=100% style="direction:rtl">');
			pp.document.writeln('<TR><TD id="must_go" >');
			pp.document.writeln('نسخه قابل پرينت</TD></TR><TR><TD><div class="wrapper"><div class="wrapper2"><div  class="main_artcile">');
  		    pp.document.writeln(document.getElementById(print_area).innerHTML  );
			pp.document.writeln('</div></div></div></TD></TR><TR><TD align="center" >');
			pp.document.writeln('<br /><br /><INPUT ID="PRINT" type="button" value="چاپ" class="print_button" onclick="javascript:location.reload(true);window.print();" ><INPUT ID="CLOSE" type="button" value="انصراف" class="print_button" onclick="window.close();"></TD></TR></TABLE>');
			pp.document.writeln('</form></body></HTML>');	
		}		
	


