function ShowPrintWindow(title, maincontent, baseurl)
{
	obj = window.open("", "", "scrollbars,toolbar,menubar,status,resizable,location");
	obj.focus();
	obj.document.write("<html>\n");
	obj.document.write("<head>\n");

	obj.document.write("<title>"+title+"</title>\n");
	obj.document.write('<link rel="stylesheet" href="/kras_pol.css">\n');
	obj.document.write('<base href="'+baseurl+'">\n');

	obj.document.write("</head>\n");

	obj.document.write("<body topmargin=0 leftmargin=0>\n");
	
	obj.document.write('<table width="650" align="center">\n');
	/*obj.document.write('  <tr>\n');
	obj.document.write('    <td class="tr_head">\n');
	obj.document.write('	<table class="table_head">\n');
	obj.document.write('      <tr>\n');
	obj.document.write('        <td width="30%"><a href="#"><img src="images/logo.gif" alt="" width="141" height="58" class="logo"></a></td>\n');
	obj.document.write('        </tr>\n');
	obj.document.write('    </table></td>\n');
	obj.document.write('  </tr>\n');
	obj.document.write('  <tr>\n');*/
	obj.document.write('    <td>\n');
	obj.document.write('	<table class="table_content">\n');
	obj.document.write('      <tr>\n');
	obj.document.write('        <td valign="top">\n');
	/*obj.document.write('		 <table width="100%">\n');
	obj.document.write('          <tr>\n');
	obj.document.write('            <td height="50"><h1>'+title+'</h1></td>\n');
	obj.document.write('			 </tr>\n');
	obj.document.write('        </table>\n');*/
	obj.document.write('		<div class="div_content_1">\n');
	obj.document.write(maincontent);
	obj.document.write('		   </div>\n');
	obj.document.write('        </td>\n');
	obj.document.write('        </tr>\n');
	obj.document.write('    </table></td>\n');
	obj.document.write('  </tr>\n');
	obj.document.write('</table>\n');
	obj.document.write('</body>\n');
	obj.document.write('</html>');

}
document.write("");
function OpenPrintWin(url)
{
	obj = window.open(url, "_blank", "scrollbars,toolbar,menubar,status,resizable,location");
	obj.focus();
}

function OpenImageWin(url, width, height) {	
	height = height + 50;
	width = width + 50;
	obj = window.open(url, "",
		"location=1,scrollbars=0,dialog=0,minimizable=1,modal=1,resizable=0,width="+width+",height="+height);
	obj.focus();
	
	return false;
}

function ShowHelpWin(dir, dir2, dir3, dir4) {
	obj = window.open("/help.php?dir="+dir+"&dir2="+dir2+"&dir3="+dir3+"&dir4="+dir4, "", "scrollbars=1,dialog=0,minimizable=1,modal=1,resizable=0,width=400,height=400");
}


function OpenSubcrWin(email) {
	if(email != '' && email != document.all.subscr_email.defaultValue) {
		obj = window.open("/subscr/"+escape(email), "subscr",
			 "scrollbars=0,dialog=0,minimizable=1,modal=1,resizable=0,width=200,height=100");
		obj.focus();
	}
}
