function loseFocus() 
	{
	window.focus();
	}
	

legenda=new Image();
legenda.src="img/zalozit.gif";
legenda.src="img/vytisknout.gif";
legenda.src="img/odeslat.gif";

function zamen(nazev_obr,novy_obr) {
document.images[nazev_obr].src=novy_obr; }

// prubeh vystavby
function openJSLWindow_avi(name) {
iMyWidth = (window.screen.width/2) - (160 + 10)
iMyHeight = (window.screen.height/2) - (155 + 25)
Fokus = window.open( name, "nove_okno","height=310,width=320,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=no");
Fokus.focus()
}

function openJSLWindow(name) {
iMyWidth = (window.screen.width/2) - (250 + 10)
iMyHeight = (window.screen.height/2) - (166 + 25)
Fokus = window.open( name, "nove_okno","height=333,width=500,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=no");
Fokus.focus()
}



// nabidnete
function CheckMail() {
var Ctrl,Message,Field;
Ctrl=document.forms[0];
 
if(Ctrl.jmeno.value>""){
 if(Ctrl.tel.value>""){
  if(Ctrl.email.value>""){
   if(Ctrl.popis.value>""){	
  return true;
   
  }else{ Message="Vyplnte prosim popis nabizene nemovitosti"; Field=Ctrl.popis; }
	}else{ Message="Vyplnte prosim Vasi e-mailovou adresu"; Field=Ctrl.email; }
	}else{ Message="Vyplnte prosim Vas telefon"; Field=Ctrl.tel; }
  }else{ Message="Vyplnte prosim Vase jmeno a prijmeni"; Field=Ctrl.jmeno; }

alert(Message);
Field.focus();
 if(Field.type=="text"){ Field.select(); }
return false;
}



// kontakt
function CheckMail2() {
var Ctrl,Message,Field;
Ctrl=document.forms[0];
 
if(Ctrl.jmeno.value>""){
 if(Ctrl.tel.value>""){
  if(Ctrl.email.value>""){
   if(Ctrl.zprava.value>""){	
  return true;
   
  }else{ Message="Vyplnte prosim Text zpravy"; Field=Ctrl.zprava; }
	}else{ Message="Vyplnte prosim Vasi e-mailovou adresu"; Field=Ctrl.email; }
	}else{ Message="Vyplnte prosim Vas telefon"; Field=Ctrl.tel; }
  }else{ Message="Vyplnte prosim Vase jmeno a prijmeni"; Field=Ctrl.jmeno; }

alert(Message);
Field.focus();
 if(Field.type=="text"){ Field.select(); }
return false;
}








//old

if (document.images) {
	zoomon = new Image();
	zoomon.src = "img/zoom_a.gif";
	zoomoff = new Image();
	zoomoff.src = "img/zoom_n.gif";
}

function zoomOver(zoom) {
	if (document.images) {
		document.images[zoom].src = "img/zoom_a.gif";
	}
}

function zoomOut(zoom) {
	if (document.images) {
		document.images[zoom].src = "img/zoom_n.gif";
	}
}

function openZoom() {
iMyWidth = (window.screen.width/2) - (300 + 10)
iMyHeight = (window.screen.height/2) - (196 + 25)
Fokus = window.open( "", "nove_okno","height=393,width=600,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=auto");
Fokus.focus()
}

