
function Otevri_okno(pname,pwi,phe)
{
  msg = window.open('',pname, 'toolbar=no,menubar=no,location=no,directories=no,scrollbars=yes,resizable=yes,status=no,width='+pwi+',height='+phe+',top=0,left=0');
  msg.focus();
}  

function OverServis(theForm)
{
  if (theForm.pSpz.value == "" && theForm.pVuz.value == "")
  {
    alert("Vyplňte prosím informaci o vozidle");
    theForm.pSpz.focus();
    return (false);
  }
  
  if (theForm.pozadavek.value == "")
  {
    alert("Vyplňte prosím Váš požadavek na servis");
    theForm.pozadavek.focus();
    return (false);
  }

  if (theForm.pTermin.value == "")
  {
    alert("Vyplňte prosím údaj termín");
    theForm.pTermin.focus();
    return (false);
  }
  if (theForm.pJmeno.value == "")
  {
    alert("Vyplňte prosím jméno kontaktní osoby.");
    theForm.pJmeno.focus();
    return (false);
  }  
  if (theForm.pTelefon.value == "")
  {
    alert("Vyplňte prosím kontaktní telefon");
    theForm.pTelefon.focus();
    return (false);  }
  return (true);
}

    function OverNove(theForm)
     {   
     if (theForm.pTermin.value == "")
      {
       alert("Vyplňte prosím údaj termín");
       theForm.pTermin.focus();
     return (false);
      }
     if (theForm.pJmeno.value == "")
      {
       alert("Vyplňte prosím jméno kontaktní osoby.");
       theForm.pJmeno.focus();
       return (false);
      }  
     if (theForm.pTelefon.value == "")
      {
       alert("Vyplňte prosím kontaktní telefon");
       theForm.pTelefon.focus();
       return (false);  }
    return (true);
    }	
	
    function OverNoveObj(theForm)
     { 
     if (theForm.pJmeno.value == "")
      {
       alert("Vyplňte prosím údaj Jméno Příjmení/firma");
       theForm.pJmeno.focus();
     return (false);
      }	   
     if (theForm.pUlice.value == "")
      {
       alert("Vyplňte prosím údaj ulice");
       theForm.pUlice.focus();
     return (false);
      }
     if (theForm.pMisto.value == "")
      {
       alert("Vyplňte prosím údaj místo/město.");
       theForm.pMisto.focus();
       return (false);
      } 
     if (theForm.pPsc.value == "")
      {
       alert("Vyplňte prosím údaj PSČ.");
       theForm.pPsc.focus();
       return (false);
      } 	   
	  
     if (theForm.pTelefon.value == "")
      {
       alert("Vyplňte prosím kontaktní telefon");
       theForm.pTelefon.focus();
       return (false);
	   }
   
    return (true);
    }		
	
function OverBazarZajem(theForm)
             {
               if (theForm.ZAJEMCE_KONTAKT_OSOBA.value == "")
                {
                  alert("Vyplňte prosím jméno kontaktní osoby");
                  theForm.ZAJEMCE_KONTAKT_OSOBA.focus();
                  return (false);
                }
               if (theForm.ZAJEMCE_TELEFON.value == "")
                 {
                   alert("Vyplňte prosím kontaktní telefon");
                   theForm.ZAJEMCE_TELEFON.focus();
                   return (false);  }
               if (theForm.ZAJEMCE_MESTO.value == "")
                 {
                   alert("Vyplňte prosím údaj město");
                   theForm.ZAJEMCE_MESTO.focus();
                   return (false);  }				     
               return (true);	
    }					   
