﻿function printWindow(){
	var str = document.getElementById('leftin').innerHTML;
	x = window.open('','xWin','width=700,height=600,status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=1,scrollbars=1,left=0, top=0'); 
	x.document.open();
	x.document.write("<html><head><title>" + document.title + "</title><style type=\"text/css\" media=\"print\">#centerScreen { display: none; } </style><style type=\"text/css\">body,td,div { direction: rtl; text-align: right; font-family: Arial; font-size: 10pt; } img { border: 0 } a,a:visited { color: blue } </style></head><body>"+str+"<center id='centerScreen'><br /><br /><hr /><a href=\"#\" onclick=\"print(); return false;\">הדפס</a> | <a href=\"#\" onclick=\"window.close();\">סגור</a></center></body></html>");
	x.document.close();
	setTimeout('x.window.print();', 2500);
}

function inner_printWindow()
{
	var str = document.getElementById('body').innerHTML;
	x = window.open('','xWin','width=700,height=600,status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=1,scrollbars=1,left=0, top=0'); 
	x.document.open();
	x.document.write("<html><head><title>" + document.title + "</title><style type=\"text/css\" media=\"print\">#centerScreen { display: none; } </style><style type=\"text/css\">body,td,div { direction: rtl; text-align: right; font-family: Arial; font-size: 10pt; } img { border: 0 } a,a:visited { color: blue } </style></head><body>"+str+"<center id='centerScreen'><br /><br /><hr /><a href=\"#\" onclick=\"print(); return false;\">הדפס</a> | <a href=\"#\" onclick=\"window.close();\">סגור</a></center></body></html>");
	x.document.close();
	setTimeout('x.window.print();', 2500);
}