       function img_okno(url,nazev,x,y,tisk) {
         xc=(screen.width / 2) - (x/2);
         yc=(screen.height / 2) - (y/2);
         var img=window.open(url,nazev,'width='+x+',height='+y+',top='+yc+',left='+xc+',menubar=0,toolbar=0,margins=0,scrollbars=1');
         doc = img.document;
         
         var text = ''; 
         if (tisk) text = ' onload="window.print();"';

         doc.write('<html><head><title>Starbeads.cz</title><style type="text/css">body {margin:0px;background:#fff} table td{margin:0;padding:0}</style></head><body'+text+'>');
         doc.write('<table cellspacing=0 cellpadding=0 border=0 width=100%>');
         doc.write('<tr><td><img src="'+url+'" border="0"></td></tr>');
         doc.write('</table></body></html>');

return true;
	   }
	   
function print_okno(url,nazev,x,y) {
         xc=((screen.width / 2) - (x/2));
         yc=((screen.height / 2) - (y/2));
         var newWindow=window.open(url,nazev,'width='+(x+30)+',height='+(y+30)+',top='+yc+',left='+xc+',menubar=0,toolbar=0,margins=0,scrollbars=1');
         doc = newWindow.document;
         newWindow.print();
         return false;
}	   

       function okno(url,nazev,x,y) {
         xc=(screen.width / 2) - (x/2);
         yc=(screen.height / 2) - (y/2);
         var img_window=window.open(url,nazev,'width='+x+',height='+y+',top='+yc+',left='+xc+',menubar=0,toolbar=0,margins=0,scrollbars=1');
	   }	   
	   
   function CheckIt() {
     if (formular.username.value=="") chyba="Vyplnte login...\n";
     if (formular.heslo.value=="") chyba=chyba+"Vyplnte heslo...";
     if (formular.heslo.value!=formular.getelementbyID('heslo2').value) chyba=chyba+"Hesla nesouhlasí...\n";
     if (formular.jmeno.value=="") chyba=chyba+"Vyplnte jmeno...\n";
     if (formular.prijmeni.value=="") chyba=chyba+"Vyplnte prijmeni...\n";
     if (formular.ico.value=="") chyba=chyba+"Chybí IČO\n";
     if (formular.email.value!="") {
       if (!formular.email.value.match(/\w+@[-_A-Za-z0-9]+\.\D\D+/)) chyba=chyba+"E-mailová adresa je chybná\n";
	 }   
   
     if (chyba=="") {alert(chyba+"Opravte prosím tyto chyby!"); return false } else {return true};
   }	   