
function ablakKep2(name,kep,nev,W,H){
  /* 340x340 volt az eredeti */
  W2=W+20;
  H2=H+20;
  myopen = window.open('','','toolbar=no,location=no,directories=no,menubar=no,resizable=no,status=no,width='+W2+',height='+H2);
  myopen.document.write('<html><META CHARSET=iso-8859-2><head><title>'+name+'</title></head>');
  myopen.document.write('<BODY LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0" OnClick=self.close()>');
  myopen.document.write('<CENTER><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH='+W2+' HEIGHT='+H2+'><TR VALIGN=MIDDLE ALIGN=CENTER><TD><IMG SRC='+kep+' alt="'+nev+'" title="'+nev+'">');
  myopen.document.write('</TD></TR></TABLE></BODY></HTML>');
  myopen.document.close();
  myopen.focus();
}                       

function ablakKep(name,kep){
  myopen = window.open('','','toolbar=no,location=no,directories=no,menubar=no,resizable=no,status=no,width=340,height=340');
  myopen.document.write('<html><META CHARSET=iso-8859-2><head><title>'+name+'</title></head>');
  myopen.document.write('<BODY LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0" OnClick=self.close()>');
  myopen.document.write('<CENTER><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=300 HEIGHT=300><TR VALIGN=MIDDLE ALIGN=CENTER><TD><IMG SRC='+kep+'>');
  myopen.document.write('</TD></TR></TABLE></BODY></HTML>');
  myopen.document.close();
  myopen.focus();
}                       

function ablakUrl( url, width, height){
    map = window.open(url,'galeria','toolbar=no,location=no,directories=no,menubar=no,resizable=no,status=no,top=20,left=20,width='+width+',height='+height+'');
    map.focus();
}

function ekezetetAtkodol(kodolando, eredmeny){
        adat = kodolando.value;
        if(adat != null){
            eredmeny.value = adat.replace(/ö/g, "o").replace(/ü/g, "u").replace(/ó/g, "o").replace(/õ/g, "o")
                    .replace(/ú/g, "u").replace(/é/g, "e").replace(/á/g, "a").replace(/û/g, "u").replace(/í/g, "i")
                    .replace(/Ö/g, "o").replace(/Ü/g, "u").replace(/Ó/g, "o").replace(/Õ/g, "o").replace(/Ú/g, "u")
                    .replace(/É/g, "e").replace(/Á/g, "a").replace(/Û/g, "u").replace(/Í/g, "i").replace(/ /g, "_")
                    .replace(/[^a-zA-Z0-9]/g, "_");
            eredmeny.value = eredmeny.value.replace(/_+/g, "_");
        }
}

function MenuNyitogato(){
var menuAllapotTomb = new Array();
    function menuNyitogato(id){
        if(menuAllapotTomb[id] != 1){
            document.getElementById('menu_' + id).style.display = 'inline';
            document.getElementById('menu_nyitojel_' + id).innerText = '-';
            menuAllapotTomb[id] = 1;
        } else {
            document.getElementById('menu_' + id).style.display = 'none';
            document.getElementById('menu_nyitojel_' + id).innerText = '+';
            menuAllapotTomb[id] = 0;
        }
    }
}

function debug2(obj){
  var ablak = window.open("","","");
  Kijelzo = obj;
  for (i in Kijelzo) {
    if ( ( i!="innerHTML" )&&( i!="outerHTML" ) ) {
      ablak.document.writeln(i,":");
      eval( 'ablak.document.writeln( Kijelzo.' + i + ',"<br>");' );
    }
  }
}

function menuBgChange(id, be){
  aktiv = "";
  if(be == "1"){
    aktiv = "_A";
  }
  hatterA = "5E6E7D";
  szinA = "ecedf1";
  hatterInA = "ecedf1";
  szinInA = "5E6E7D";

  hatter = hatterInA;
  szin = szinInA;
  if(aktiv == "_A"){
    hatter = hatterA;
    szin = szinA;
  }

//  document.getElementById("balmenu_"+id+"_TL").src = "/images/01/balMenuTL" + aktiv + ".gif";
  document.getElementById("balmenu_"+id+"_TBG").style.backgroundImage = "url('/images/01/balMenuTBG" + aktiv + ".gif')";
//  document.getElementById("balmenu_"+id+"_TR").src = "/images/01/balMenuTR" + aktiv + ".gif";
  document.getElementById("balmenu_"+id+"_ML").style.backgroundImage = "url('/images/01/balMenuML" + aktiv + ".gif')";
//  document.getElementById("balmenu_"+id+"_MBG").style.backgroundColor = hatter;
//  document.getElementById("balmenu_"+id+"_MC").style.color = szin;
//  document.getElementById("balmenu_"+id+"_MX").src = "/images/01/balMenuButton" + aktiv + ".gif";
  document.getElementById("balmenu_"+id+"_MR").style.backgroundImage = "url('/images/01/balMenuMR" + aktiv + ".gif')";
//  document.getElementById("balmenu_"+id+"_BL").src = "/images/01/balMenuBL" + aktiv + ".gif";
  document.getElementById("balmenu_"+id+"_BBG").style.backgroundImage = "url('/images/01/balMenuBBG" + aktiv + ".gif')";
//  document.getElementById("balmenu_"+id+"_BR").src = "/images/01/balMenuBR" + aktiv + ".gif";

  document.getElementById("balmenu_"+id+"_TL").src = imageObj_TL.src;
  if(be == "1"){ document.getElementById("balmenu_"+id+"_TL").src = imageObj_TL_A.src; }

//  document.getElementById("balmenu_"+id+"_TBG").background = imageObj_TBG.src;
//  if(be == "1"){ document.getElementById("balmenu_"+id+"_TBG").background = imageObj_TBG_A.src; }

  document.getElementById("balmenu_"+id+"_TR").src = imageObj_TR.src;
  if(be == "1"){ document.getElementById("balmenu_"+id+"_TR").src = imageObj_TR_A.src; }

  document.getElementById("balmenu_"+id+"_MBG").style.backgroundColor = hatter;
  document.getElementById("balmenu_"+id+"_MC").style.color = szin;

  document.getElementById("balmenu_"+id+"_MX").src = imageObj_MX.src;
  if(be == "1"){ document.getElementById("balmenu_"+id+"_MX").src = imageObj_MX_A.src; }

  document.getElementById("balmenu_"+id+"_BL").src = imageObj_BL.src;
  if(be == "1"){ document.getElementById("balmenu_"+id+"_BL").src = imageObj_BL_A.src; }

  document.getElementById("balmenu_"+id+"_BR").src = imageObj_BR.src;
  if(be == "1"){ document.getElementById("balmenu_"+id+"_BR").src = imageObj_BR_A.src; }

}

var imageObj_TL = new Image();
var imageObj_TBG = new Image();
var imageObj_TR = new Image();
var imageObj_ML = new Image();
var imageObj_MX = new Image();
var imageObj_MR = new Image();
var imageObj_BL = new Image();
var imageObj_BBG = new Image();
var imageObj_BR = new Image();
var imageObj_TL_A = new Image();
var imageObj_TBG_A = new Image();
var imageObj_TR_A = new Image();
var imageObj_ML_A = new Image();
var imageObj_MX_A = new Image();
var imageObj_MR_A = new Image();
var imageObj_BL_A = new Image();
var imageObj_BBG_A = new Image();
var imageObj_BR_A = new Image();
function menuBgPreload(){
  aktiv = "";
  imageObj_TL.src = "/images/01/balMenuTL" + aktiv + ".gif";
  imageObj_TBG.src = "/images/01/balMenuTBG" + aktiv + ".gif";
  imageObj_TR.src = "/images/01/balMenuTR" + aktiv + ".gif";
  imageObj_ML.src = "/images/01/balMenuML" + aktiv + ".gif";
  imageObj_MX.src = "/images/01/balMenuButton" + aktiv + ".gif";
  imageObj_MR.src = "/images/01/balMenuMR" + aktiv + ".gif";
  imageObj_BL.src = "/images/01/balMenuBL" + aktiv + ".gif";
  imageObj_BBG.src = "/images/01/balMenuBBG" + aktiv + ".gif";
  imageObj_BR.src = "/images/01/balMenuBR" + aktiv + ".gif";

  aktiv = "_A";
  imageObj_TL_A.src = "/images/01/balMenuTL" + aktiv + ".gif";
  imageObj_TBG_A.src = "/images/01/balMenuTBG" + aktiv + ".gif";
  imageObj_TR_A.src = "/images/01/balMenuTR" + aktiv + ".gif";
  imageObj_ML_A.src = "/images/01/balMenuML" + aktiv + ".gif";
  imageObj_MX_A.src = "/images/01/balMenuButton" + aktiv + ".gif";
  imageObj_MR_A.src = "/images/01/balMenuMR" + aktiv + ".gif";
  imageObj_BL_A.src = "/images/01/balMenuBL" + aktiv + ".gif";
  imageObj_BBG_A.src = "/images/01/balMenuBBG" + aktiv + ".gif";
  imageObj_BR_A.src = "/images/01/balMenuBR" + aktiv + ".gif";
}

function myConfirm(url) {
  var answer = confirm("Biztosan törlöd?");
  if (answer){
    window.location = url;
  }
  return false;
}



