function printPage(VirDir)
{
		document.body.style.cursor = "wait";
		win = window.open("","_blank","height=650,width=720,top=20,left=50,status=no,toolbar=no,scrollbars=yes,menubar=no,location=no,resizable=yes");
		var doc = win.document;
		doc.open();		
		doc.defaultCharset=document.defaultCharset;
		doc.charset=document.charset
		doc.writeln('<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">');
        doc.write('<link href="' + VirDir + '/include/styles.css" rel="stylesheet" type="text/css"></head>')
        doc.writeln("<body onload=\"window.print();\" class='page' style='margin: 15px'>")
        doc.writeln("<table width='100%' align='center' cellpadding='2' cellspacing='0'><tr><td align='left' class='page_title'><img src=../images/logo.gif></td></tr>")
          doc.writeln("<tr><td height='5' width='100%' nowrap></td></tr><tr><td height='1' width='100%' bgcolor='#EAE9E7' nowrap></td></tr><tr><td height='10' width='100%' nowrap></td></tr></table>");
		doc.write(document.getElementById("divforprint").innerHTML.replace("scooters_intern_pics/",""));
		doc.write("</body></html>");
		doc.close();
		document.body.style.cursor = "default";
}

function printPageHeb(VirDir)
{
		document.body.style.cursor = "wait";
		win = window.open("","_blank","height=500,width=720,top=50,left=50,status=no,toolbar=no,scrollbars=yes,menubar=no,location=no,resizable=yes");
		var doc = win.document;
		doc.open();
		doc.defaultCharset=document.defaultCharset;
		doc.charset=document.charset
		doc.writeln('<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">');
        doc.write("<link href=\"" + VirDir + "/styles.css\" rel=\"stylesheet\" type=\"text/css\"></head>")
        doc.writeln("<body onload=\"window.print();\" class='page' style='margin: 15px'>")
        doc.writeln("<table width='100%' align='center' cellpadding='0' cellspacing='0'><tr><td align='right' class='page_title'>���� �������� ��� �������</td></tr>")
        doc.writeln("<tr><td height='5' width='100%' nowrap></td></tr><tr><td height='1' width='100%' bgcolor='#EAE9E7' nowrap></td></tr><tr><td height='10' width='100%' nowrap></td></tr></table>");
		doc.writeln("<table width='100%' align='center' cellpadding='0' cellspacing='0' dir=rtl><tr><td align='right'")
		doc.write(document.getElementById("divforprint").innerHTML);
		doc.writeln("</td></tr></table>")
		doc.write("</body></html>");
		doc.close();
		document.body.style.cursor = "default";
}

function sendtofriend(strUrl)
{			
	h = 240;
	w = 480;
	l = parseInt((window.screen.availWidth - w) / 2);
	
	window.open(strUrl,"sendtofriend","width=" + w +",height="+ h +",toolbar=no,menubar=no,left=" + l +", top=150,titlebar=no, scrollbars=no,menubar=no");
}