function Preview(){
	
	var TXT = maintext.innerHTML;
	var AddressTXT = addresstext.innerHTML;
	var board=window.open("","Preview"); 
	board.document.open(); 
	board.document.write("<html>"); 
	board.document.write("<head>");
	board.document.write("<title>L-Практики : www.lp-consul.ru [Print Preview]</title>");
	board.document.write("</head>");
	board.document.write("<body BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>");
	board.document.write("<table cellspacing='0' cellpadding='0' border='0' width='100%' height='100%'>");
	board.document.write("<tr><td height='103' width='100%'>");
	board.document.write("<table cellspacing='0' cellpadding='0' border='0' height='103' width='100%'>");
	board.document.write("<tr><td height='103' width='324' background='images/print/topbckg.gif'><img src='images/print/toplogo.gif' width='324' height='103' alt=''></td><td height='103' width='100%' background='images/print/topbckg.gif'>&nbsp;</td><td height='103' width='157' background='images/print/topbckg.gif'><img src='images/print/topright.gif' width='157' height='103' alt=''></td></tr>");
	board.document.write("</table>");
	board.document.write("</td></tr>");
	board.document.write("<tr><td width='100%' height='100%' align='left' valign='top'><br>");
	board.document.write(TXT);
	board.document.write("</td></tr>");
	board.document.write("<tr><td height='75'>");
	board.document.write("<table cellspacing='0' cellpadding='0' border='0' height='75' width='100%'><tr><td height='75' width='164' background='images/print/bottombckg.gif'><img src='images/print/bottomleft.gif' width='164' height='75' alt=''></td><td height='75' width='100%' background='images/print/bottombckg.gif' valign='bottom'>");
	board.document.write("<strong>www.lp-consul.ru</strong><br>info@lp-consul.ru");
	board.document.write("&nbsp;</td></tr></table>");
	board.document.write("</td></tr></table>");
	board.document.write("</body>"); 
	board.document.write("</td></tr></html>");

	
	board.document.close();

	return board;
}
function PrintPage(){
	
	board = Preview();
  	board.document.execCommand('Print');
	board.window.close();
}



document.writeln("<TR>");
document.writeln("<TD COLSPAN=2 width=657 height=108 valign=top align=left>");
document.writeln("<!-- logo -->");
document.writeln("<table cellspacing=0 cellpadding=0 border=0 width=100% height=108>");
document.writeln("<tr>");
document.writeln("<td height=108><a href=http://www.lp-consul.ru><IMG SRC=images/index_01.gif WIDTH=241 HEIGHT=108 border=0></a></td>");
document.writeln("<td valign=bottom bgcolor=#FFFFFF height=108><a href=http://www.lp-consul.ru><IMG SRC=images/index_05.gif WIDTH=1 HEIGHT=108 border=0></a></td>");
document.writeln("<td width=100% height=108></td>");
document.writeln("</tr>");
document.writeln("</table>");
document.writeln("<!-- end of logo -->");
document.writeln("</TD>");
document.writeln("<TD width=143 height=108 valign=top align=right>");
document.writeln("<!-- rmenu -->");
document.writeln("<table cellspacing=0 cellpadding=0 border=0 width=143 height=108>");
document.writeln("<tr>");
document.writeln("<td bgcolor=#94D244 valign=top height=21>");

document.writeln("<table cellspacing=1 cellpadding=0 border=0 align=center>");
document.writeln("<form action='' method='post' name='PrintForm' target='_blank'>");
document.writeln("<input type=hidden name=URL2Print value=''>");
document.writeln("<input type=hidden name=Data2Print value=''>");
document.writeln("</form>");
document.writeln("<tr>");
document.writeln("<td><img src=images/icon_print.gif width=23 height=17 alt=Печать страницы border=0 class=hand onclick='javascript: PrintPage();'></td>");
document.writeln("<td><a href=mailto:info@lp-consul.ru><img src=images/icon_mailto.gif width=23 height=17 alt=Написать письмо border=0></a></td>");
document.writeln("<td><a href=map.html><img src=images/icon_map.gif width=23 height=17 alt=Карта сайта border=0></a></td>");
document.writeln("</tr>");
document.writeln("</table>");
document.writeln("</td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td height=100%></td>");
document.writeln("</tr>");
document.writeln("</table>");
document.writeln("<!-- end of rmenu -->");
document.writeln("</TD>");
document.writeln("</TR>");
document.writeln("<TR>");
document.writeln("<TD HEIGHT=14 width=198 bgcolor=#94D244><IMG SRC=images/spacer.gif WIDTH=198 HEIGHT=14></TD>");
document.writeln("<TD HEIGHT=14 width=602 colspan=2 bgcolor=#FFFFFF align=right></TD>");
document.writeln("</TR>");
document.writeln("<TR>");
document.writeln("<TD HEIGHT=15 width=198 bgcolor=#94D244><IMG SRC=images/spacer.gif WIDTH=198 HEIGHT=15></TD>");
document.writeln("<TD HEIGHT=15 width=459 bgcolor=#CCCCCC><IMG SRC=images/spacer.gif WIDTH=459 HEIGHT=15></TD>");
document.writeln("<TD HEIGHT=15 width=143><table cellspacing=0 cellpadding=0 border=0 width=143 height=15><tr><td width=141 height=15 bgcolor=#000000></td></tr>");


