function openDetail(URL,w,h,l,t)
{


window.open(URL,"ziadost","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width="+w+", height="+h+", left="+l+", top="+t+"");

}

d=document;l=(d.layers)?1:0;op=navigator.userAgent.toLowerCase().indexOf('opera')!=-1;ie=(d.all)?1:0;
function gE(e,f){if(l){f=(f)?f:self;var V=f.document.layers;if(V[e])return V[e];for(var W=0;W<V.length;)t=gE(e,V[W++]);return t;}if(d.all)return d.all[e];return d.getElementById(e);}

function sE(e){if(l)e.visibility='show';else e.style.visibility='visible';}
function hE(e){if(l)e.visibility='hide';else e.style.visibility='hidden';}

function s2E(e){ e.style.display='block'; }
function h2E(e){ e.style.display='none'; }



function formcontrol()
{

var retval
retval=true

if(document.all["dtyp"].value=="")
{
alert("Nevplnili ste typ priestoru");
document.all["dtyp"].focus();
retval=false;
}

else if(document.all["nazov"].value=="") 
{
alert("Nevplnili názov");
document.all["nazov"].focus();
retval=false;
}

else if(document.all["osoba"].value=="")
{
alert("Nevplnili ste kontaktnú osobu");
document.all["osoba"].focus();
retval=false;
}

else if(document.all["adresa"].value=="")
{
alert("Nevplnili ste adresu");
document.all["adresa"].focus();
retval=false;
}

else if(document.all["psc"].value=="")
{
alert("Nevplnili ste PSČ");
document.all["psc"].focus();
retval=false;
}

else if(document.all["email"].value=="")
{
alert("Nevplnili ste email");
document.all["email"].focus();
retval=false;
}

else if(document.all["telefon"].value=="")
{
alert("Nevplnili ste telefón");
document.all["telefon"].focus();
retval=false;
}

else if(document.all["ico"].value=="")
{
alert("Nevplnili ste IČO");
document.all["ico"].focus();
retval=false;
}

else if(document.all["pozadovanaVelkost"].value=="")
{
alert("Nevplnili ste požadovanú veľkosť");
document.all["pozadovanaVelkost"].focus();
retval=false;
}

else if(document.all["terminZahajenia"].value=="")
{
alert("Nevplnili ste termín začiatku prenájmu");
document.all["terminZahajenia"].focus();
retval=false;
}


return retval;

}