function HomeRedir()
{
  window.setTimeout("window.location='index.php?c=1'", 1);
}

function Flash1Over()
{
  document.getElementById("Objekt1").style.width='180px';
  document.getElementById("Objekt1").style.height='172px';  
}
function Flash1Out()
{
  document.getElementById("Objekt1").style.width='0px';
  document.getElementById("Objekt1").style.height='1px';  
}

function Flash2Over()
{
  document.getElementById("Objekt2").style.width='180px';
  document.getElementById("Objekt2").style.height='172px';  
}
function Flash2Out()
{
  document.getElementById("Objekt2").style.width='0px';
  document.getElementById("Objekt2").style.height='1px';  
}


function Flash3Over()
{
  document.getElementById("Objekt3").style.width='180px';
  document.getElementById("Objekt3").style.height='172px';  
}
function Flash3Out()
{
  document.getElementById("Objekt3").style.width='0px';
  document.getElementById("Objekt3").style.height='1px';  
}

function Flash4Over()
{
  document.getElementById("Objekt4").style.width='180px';
  document.getElementById("Objekt4").style.height='172px';  
}
function Flash4Out()
{
  document.getElementById("Objekt4").style.width='0px';
  document.getElementById("Objekt4").style.height='1px';  
}

function Flash5Over()
{
  document.getElementById("Objekt5").style.width='180px';
  document.getElementById("Objekt5").style.height='172px';  
}
function Flash5Out()
{
  document.getElementById("Objekt5").style.width='0px';
  document.getElementById("Objekt5").style.height='1px';  
}

function Flash6Over()
{
  document.getElementById("Objekt6").style.width='180px';
  document.getElementById("Objekt6").style.height='172px';  
}
function Flash6Out()
{
  document.getElementById("Objekt6").style.width='0px';
  document.getElementById("Objekt6").style.height='1px';  
}

function Flash7Over()
{
  document.getElementById("Objekt7").style.width='180px';
  document.getElementById("Objekt7").style.height='172px';  
}
function Flash7Out()
{
  document.getElementById("Objekt7").style.width='0px';
  document.getElementById("Objekt7").style.height='1px';  
}

function Flash8Over()
{
  document.getElementById("Objekt8").style.width='180px';
  document.getElementById("Objekt8").style.height='172px';  
}
function Flash8Out()
{
  document.getElementById("Objekt8").style.width='0px';
  document.getElementById("Objekt8").style.height='1px';  
}




function redir1(form)
{
  x=form.menu.selectedIndex;
 adresa=form.menu[x].value;
 if (x>0) window.open(adresa,"_self");
}



// popup obrazek
function obrazek(imgsrc,xx,yy){
  xxw=xx+40; yyh=yy+30;
  NewWin= new Array()
  wx=",width="+xxw+",height="+yyh  
  
  
  /*
    if ((xxw <=620)&&(yyh<=460)) 
   {
     wx=",width="+xxw+",height="+yyh   
   }
   else 
   { 
	  if (xxw<=620) 
	  { 
	     wx=",width="+xxw+",height=470"
	  } 
      else 
	  { 
	     if (yyh<=460) 
		  {
		   wx=",width=630,height="+yyh
		  } 
          else 
		  {
		    wx=",width=630,height=470"
	      }
       }
    }
  */
  	
  NewWin[i] = 
   window.open("","galery"+i,"scrollbars,location=no,directories=no,status=no,menubar=no,top=20,left=20,toolbar=no,resizable=yes"+wx)
  NewWin[i].document.open()
  imgsrc='"'+imgsrc+'"'
    NewWin[i].document.writeln(
  "<title>[ Mtech, s.r.o. ] - " +imgsrc+ " ("+xx+","+yy+")</title><body bgcolor=#FFFFFF><CENTER><div style='margin-top:15px; margin-bottom: 5px;'><a href='javascript: self.close()'><img src="+imgsrc+" width="+xx+" height="+yy+" border=0></a></div>")
  NewWin[i].document.close() 
  i++
}

function obrazek_ref(imgsrc,xx,yy,alt){
  xxw=xx+40; yyh=yy+30;
  NewWin= new Array()
  wx=",width="+xxw+",height="+yyh  
  
  
  /*
    if ((xxw <=620)&&(yyh<=460)) 
   {
     wx=",width="+xxw+",height="+yyh   
   }
   else 
   { 
	  if (xxw<=620) 
	  { 
	     wx=",width="+xxw+",height=470"
	  } 
      else 
	  { 
	     if (yyh<=460) 
		  {
		   wx=",width=630,height="+yyh
		  } 
          else 
		  {
		    wx=",width=630,height=470"
	      }
       }
    }
  */
  	
  NewWin[i] = 
   window.open("","galery"+i,"scrollbars,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes"+wx)
  NewWin[i].document.open()
  imgsrc='"'+imgsrc+'"'
    NewWin[i].document.writeln(
  "<title>[ Mtech, s.r.o. ] - " +imgsrc+ " ("+xx+","+yy+")</title><body bgcolor=#FFFFFF><CENTER><div style='margin-top:15px; margin-bottom: 5px;'><a href='javascript: self.close()'><img src="+imgsrc+" width="+xx+" height="+yy+" border=0 alt='"+alt+"'></a></div>")
  NewWin[i].document.close() 
  i++
}

i=0



// overeni kontakt formulare 
function ValidatorObjednavka(theForm)
{

	  if (theForm.jmeno.value == "")
	  {
		alert("Vyplňte prosím Vaše jméno.");
		theForm.jmeno.focus();
		return (false);
	  }
	  if (theForm.kontakt.value == "")
	  {
		alert("Vyplňtě prosím kontakt na Vaši osobu.");
		theForm.kontakt.focus();
		return (false);
	  }

	  if (theForm.dotaz.value == "")
	  {
		alert("Napiště prosím dotaz, který nám chcete položit.");
		theForm.dotaz.focus();
		return (false);
	  }
}


// overeni formulare technicke podpory
function ValidatorPodpora(theForm)
{

	  if (theForm.jmeno.value == "")
	  {
		alert("Vyplňte prosím Vaše jméno.");
		theForm.jmeno.focus();
		return (false);
	  }
	  if (theForm.firma.value == "")
	  {
		alert("Vyplňte prosím název firmy.");
		theForm.firma.focus();
		return (false);
	  }

	  if (theForm.kontakt.value == "")
	  {
		alert("Vyplňtě prosím kontakt na Vaši osobu.");
		theForm.kontakt.focus();
		return (false);
	  }

	  if (theForm.dotaz.value == "")
	  {
		alert("Napiště prosím dotaz, který nám chcete položit.");
		theForm.dotaz.focus();
		return (false);
	  }
}


// PRO PRIDANI DALSICH KONTAKT.OSOB VE FORM CHCI BYT PARTNER
function AddKontakt2()
{
  document.getElementById('tab2').style.display='block'; 
  document.getElementById('p2').style.display='block'; 
  document.getElementById('p1').style.display='none'; 
}

function AddKontakt3()
{
  document.getElementById('tab3').style.display='block'; 
  document.getElementById('p3').style.display='block';   
  document.getElementById('p2').style.display='none'; 
}

function AddKontakt4()
{
  document.getElementById('tab4').style.display='block'; 
  document.getElementById('p4').style.display='block'; 
  document.getElementById('p3').style.display='none'; 
}

function AddKontakt5()
{
  document.getElementById('tab5').style.display='block'; 
  document.getElementById('p4').style.display='none'; 
}



 
 // overeni pred vykonanim nejake akce
function CheckAction(msg)
{ 
  if(!confirm(msg)) return false;
  else return true;  
}