var path = "img/";

if (document.images) {
  oklubu1= new Image ();
  oklubu1.src= "img/oklubu1.gif";

  archiv1= new Image ();
  archiv1.src= "img/archiv1.gif";

  vzkazy1= new Image ();
  vzkazy1.src= "img/vzkazy1.gif";

  kontakty1= new Image ();
  kontakty1.src= "img/kontakty1.gif";

  bar1= new Image ();
  bar1.src= "img/bar1.gif";

  kofola1= new Image ();
  kofola1.src= "img/kofola1.gif";

}

function PushOn(image_name) {
  if (document.images) {
  document.images[image_name].src = path+image_name+"1.gif";
 }
}
function PushOff(image_name) {
  if (document.images) {
  document.images[image_name].src = path+image_name+".gif";
 }
}

function nahled(aaa, wi, he) {
  prewiev = window.open('',aaa,'toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directories=no,width='+ wi +',height='+ he +',left=10,top=10');
  prewiev.document.open();
  prewiev.document.write("<html><head>");
  prewiev.document.write("<title>Kofola Music Club</title></head>");
  prewiev.document.write("<BODY bgcolor=#FFFFFF marginwidth=0 marginheight=0 topmargin=0 leftmargin=0 bottommargin=0 framespacing=0 frameborder=0>");
  prewiev.document.write("<a href=javascript:onClick=window.close()><img src=foto/"+aaa+".jpg border=0 alt='Kliknutím obrázek zavřete'></a>");
  prewiev.document.write("</body></html>");
  prewiev.document.close();
}

function kontrola() {
	Tip=document.uprav.Tip.value;

 if (Tip == ""){
			alert("Musíte vyplnit svůj TIP");
    document.uprav.Tip.focus();
    document.uprav.Tip.select();
			return false;
			}
 } 
 
function kontrola2() {
	Jmeno =document.uprav.Jmeno.value;
	Text =document.uprav.Text.value;
	Email=document.uprav.Email.value;

 if (Jmeno == ""){
			alert("Vyplňte svoje jméno");
    document.uprav.Jmeno.focus();
    document.uprav.Jmeno.select();
			return false;
			}
 if (Email != ""){
	if (Email.indexOf("@")<1){
			alert("Vložte korektní e-mail");
    document.uprav.Email.focus();
    document.uprav.Email.select();
			return false;
			}
	}                      
 if (Text == ""){
			alert("Napište nějaký text prosím:))");
    document.uprav.Text.focus();
    document.uprav.Text.select();
			return false;
			}

 } 

