function winOp(link,width,height) {
	window.open(link, '', 'toolbar="no",scrollbars=yes,resizeable=yes,height=' + height + ',width=' + width + ',top=5,left=5');
}

function zkontroluj_email(adresa)
{
  re = /^[^.]+(\.[^.]+)*@([^.]+[.])+[a-z]{2,3}$/;
  return adresa.search(re) == 0;
}

function check_dotaz() {
var write="";
if (document.dotaz.jmeno.value=='') write+="zadejte Vaše jméno\n";
if (document.dotaz.telefon.value=='') write+="zadejte Váš telefon\n";
if (document.dotaz.email.value=='') write+="zadejte Váš email\n";
if (document.dotaz.pozn.value=='') write+="zadejte Váš dotaz\n";
if (document.dotaz.kod.value=='') write+="zadejte Kod\n";

if (!zkontroluj_email(document.dotaz.email.value)) write+="špatný formát emailu\n";

if (write!='')
{
alert ("Chybějící údaje\n\n" + write);
}
else
{
alert ("Právě byl odeslán email s Vaším dotazem, děkujeme");
document.dotaz.submit();
}
}

function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}