<!--
function bigfoto(fotky,foto,foto1,foto2,foto3,foto4,fotka1,fotka2,fotka3,fotka4,plocha,cena,id_r,id_n,podstranka){
                                noveokno=window.open("","_blank","left=10,top=10,width=770px,height=620px,"+
                                             "toolbar=no,location=no,directories=no,status=no,menubar=no"+
                                             ",scrollbars=yes,resizable=yes,copyhistory=no");
      noveokno.document.write("<html><head>"+
        "<style type=\"text/css\">a {text-decoration: none;color:blue} a:hover {text-decoration:underline}</style>"+
                             "<"+"script language=javascript type=text/javascript"+">"+
                             "function fotka(cesta){document.bigfoto.src=cesta;}"+
 "function fotkax(){"+
 "if(0<"+fotky+")document.write(\"<table border=0 cellpadding=4><tr>\");"+
 "if(1<="+fotky+")document.write(\"<td><a href=javascript:fotka('"+foto1+"')>"+
 "<img src="+fotka1+" width=68px height=51px border=0></a></td>\");"+
  "if(2<="+fotky+")document.write(\"<td><a href=javascript:fotka('"+foto2+"')>"+
 "<img src="+fotka2+" width=68px height=51px border=0></a></td>\");"+
  "if(3<="+fotky+")document.write(\"<td><a href=javascript:fotka('"+foto3+"')>"+
 "<img src="+fotka3+" width=68px height=51px border=0></td></a>\");"+
  "if(4<="+fotky+")document.write(\"<td><a href=javascript:fotka('"+foto4+"')>"+
 "<img src="+fotka4+" width=68px height=51px border=0></td></a>\");"+
  "if(0<"+fotky+")document.write(\"</tr></table><br>\");"+
"document.write(\"<b><a href=http://www.kupbyt.sk/detail_nebytovy_priestor.php?id_n="+id_n+"&rek=1"+">"+
"&nbsp;"+plocha+"</a></b>&nbsp;&nbsp;Cena:&nbsp;<font color=red>"+cena+"</font><br>\");"+
  "if(1<="+fotky+")document.write(\""+"<img src="+foto+"  name=bigfoto>\");"+
                             "}"+
                               " <"+"/script"+"></head><body bgcolor='#d5e4ff'><center> "+
                  "<"+"script language=javascript "+">"+
                  "fotkax();"+
                    " <"+"/script"+">"+
                             "</center></body></html> ");
                                                                                   }

/*
function inzerat(id_r,id_n,podstranka){
okno=window.open("http://www.kupbyt.sk/detail_nebytovy_priestor.php?id_r="+id_r+"&id_n="+id_n+
"&podstranka="+podstranka+
"","_blank","left=10,top=10,width=770,height=620,"+
"toolbar=yes,location=yes,directories=no,status=no,menubar=no"+
",scrollbars=yes,resizable=yes,copyhistory=no");
                           }
*/

function inzerat(id_n){
okno=window.open("http://www.kupbyt.sk/nebytovy_priestor.php?np="+id_n+
"","_blank","left=10,top=10,width=770,height=620,"+
"toolbar=yes,location=yes,directories=no,status=no,menubar=no"+
",scrollbars=yes,resizable=yes,copyhistory=no");
                           }

   function mail_admin(){
              mail_okno=window.open("http://www.kupbyt.sk/mail_admin.php"+
                                               "","_blank","left=10,top=10,width=530px,height=280px,"+
                                                "toolbar=no,location=no,directories=no,status=no,menubar=no"+
                                               ",scrollbars=yes,resizable=yes,copyhistory=no");
                      }
// -->
