// fixPNG(); http://www.tigir.com/js/fixpng.js (author Tigirlas Igor)
function fixPNG(element)
{
	if (/MSIE (5\.5|6).+Win/.test(navigator.userAgent))
	{
		var src;

		if (element.tagName=='IMG')
		{
			if (/\.png$/.test(element.src))
			{
				src = element.src;
				element.src = "http://www.softavenue.ru/images/blank.gif";
			}
		}
		else
		{
			src = element.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/i)
			if (src)
			{
				src = src[1];
				element.runtimeStyle.backgroundImage="none";
			}
		}

		if (src) element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
	}
}


function myprint(){
	    myReff = window.open('','mywinn','width=950,height=600,top=10,left=10,toolbar=no,location=no,status=no,resizable=no,scrollbars=yes');
	    var a="";
	    a=document.getElementById('printcont').innerHTML;
	    var tmpp = myReff.document;

tmpp.write('<html>');
tmpp.write('<head>');
tmpp.write('<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />');
tmpp.write('<link rel="stylesheet" type="text/css" href="http://www.softavenue.ru/css/style.css">');
tmpp.write('<title>Версия для печати</title>');
tmpp.write('</head>');
tmpp.write('<body style="background-color:#FFFFFF;">');
tmpp.write('<center>');
tmpp.write('<table style="width:900px; height:100%;" border="0" cellspacing="0" cellpadding="0">');
tmpp.write('<tr>');
tmpp.write('<td style="height:150px; background-image:url(http://www.softavenue.ru/images/top_print.gif); background-position:bottom left; background-repeat:repeat-x; vertical-align:top;">');
tmpp.write('<div style="position:relative;"><div style="position:absolute; top:50px; left:130px;">');
tmpp.write('<img src="http://www.softavenue.ru/images/logo_print.gif">');
tmpp.write('</div><div style="position:absolute; top:50px; left:560px; color:#00233e; font-family:Tahoma; font-weight:bold; font-size:12px;">');
tmpp.write('Адрес: <span style="text-decoration:underline; font-weight:100;">www.softavenue.ru</span></div></div></td>');
tmpp.write('</tr>');
tmpp.write('<tr>');
tmpp.write('<td style="vertical-align:top;">');
tmpp.write(a);
tmpp.write('</td>');
tmpp.write('</tr>');
tmpp.write('<tr>');
tmpp.write('<td style="vertical-align:top; text-align:center">');
tmpp.write('<a href="#" onclick="javascript:if');
tmpp.write(" (confirm('Распечатать эту страницу?'))");
tmpp.write('window.print(); window.close();" style="font-family: Tahoma; font-size: 12px; font-weight: bold; color: #00233e;">Распечатать страницу</a>');
tmpp.write('</td>');
tmpp.write('</tr>');
tmpp.write('</table>');
tmpp.write('</center>');
tmpp.write('</body>');
tmpp.write('</html>');
tmpp.close();

}