 <!--
 function top_inzerat(id){
okno=window.open("http://www.kupauto.sk/top_inzerat.php?id="+id+
"","_blank","left=10,top=10,width=770,height=600,"+
"toolbar=no,location=no,directories=no,status=no,menubar=no"+
",scrollbars=yes,resizable=yes,copyhistory=no");
                      }

 function web_adresa(id){
okno=window.open("http://www.kupauto.sk/inzerat_adresa.php?id="+id+
"","_blank","left=10,top=10,width=770,height=600,"+
"toolbar=no,location=no,directories=no,status=no,menubar=no"+
",scrollbars=yes,resizable=yes,copyhistory=no");
                        }

 function kontrola(meno_formularu)
   {
     rok1= meno_formularu.od_roku.options[meno_formularu.od_roku.selectedIndex].value;
     rok2= meno_formularu.do_roku.options[meno_formularu.do_roku.selectedIndex].value;
    if(rok1>rok2)if(!chyba("vo vyhladavaci zle zadany rok vyroby!!! rok_od musi byt mensi nez rok_do")) return false;
   }


 function chyba( chybove_hlasenie)
                           {
	                  alert(chybove_hlasenie);return false;
                           }




function bigfoto(fotky,foto,foto1,foto2,foto3,foto4,fotka1,fotka2,fotka3,fotka4,znacka,model,cena,id_r,id_a,podstranka){
                                noveokno=window.open("","_blank","left=10,top=10,width=770px,height=620px,"+
                                             "toolbar=yes,location=yes,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.kupauto.sk/detail_osobne.php?id_a="+id_a+"&rek=1"+">"+
znacka+"&nbsp;&nbsp;"+model+"</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_a,podstranka){
okno=window.open("http://kupauto.sk/detail_osobne.php?id_r="+id_r+"&id_a="+id_a+"&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_a){
okno=window.open("http://www.kupauto.sk/auto_osobne.php?car="+id_a+
"","_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.kupauto.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");
                      }

  //-->
