function imgWindow(imgUrl) { 
	
	var link = '../image.php?imgUrl=' + imgUrl ;
	newWindow = window.open(link, "detail" ,"width=640,height=508,left=300,top=100,location=no,menubar=no,directories=no,toolbar=no,scrollbars=no,resizable=no,status=no", true);
	newWindow.focus();
}
function imgWindow2(imgUrl) { 
	
	var link = 'image2.php?imgUrl=' + imgUrl ;
	newWindow = window.open(link, "detail" ,"width=300,height=497,left=300,top=100,location=no,menubar=no,directories=no,toolbar=no,scrollbars=yes,resizable=no,status=no", true);
	newWindow.focus();
}
function imgWindowkarta(imgUrl) { 
	
	var link = 'image.php?imgUrl=' + imgUrl ;
	newWindow = window.open(link, "detail" ,"width=545,height=481,left=300,top=100,location=no,menubar=no,directories=no,toolbar=no,scrollbars=no,resizable=no,status=no", true);
	newWindow.focus();
}
function callPopUp(url, name, width, height)
{	
	if(name == "") name = "myPopUpWindow";
	if(width == 0 || width == "") width = 100;
	if(height == 0 || width == "") height = 100;
	if(url != "") window.open(url, name,"width="+width+",height="+height+",resizable=yes,menubar=yes,locationbar=yes,scrollbars=no,status=yes");
}
function writeDiv(div, html) 
//write content in a DIV
{
	var evaldiv;
	if (DomExp) 
	{
		evaldiv = eval(div);
		evaldiv.innerHTML = html;
	}
	else if (DomNav) 
	{
		(document.getElementById(div)).innerHTML = html;
	}
}

function preloadImage(imgName,imgSrc)
{
		eval(imgName+' = new Image()');
		eval(imgName+'.src = "'+imgSrc+'"');
		return imgName;
}

function changeImage(imgName,imgObj)
{
	document.getElementById(imgName).src = eval(imgObj+'.src');
}
function imgSlika(imgUrl, width, height) { 
	
	var link = imgUrl ;
	newWindow = window.open(link, "slika" ,"width=" + width + ",height=" + height + ",left=300,top=100,location=no,menubar=no,directories=no,toolbar=no,scrollbars=no,resizable=no,status=no", true);
	newWindow.focus();
}
function imgWindowKarta(imgUrl) { 
	
	var link = 'image.php?imgUrl=' + imgUrl ;
	newWindow = window.open(link, "detail" ,"width=550,height=500,left=200,top=100,location=no,menubar=no,directories=no,toolbar=no,scrollbars=no,resizable=no,status=no", true);
	newWindow.focus();
}
function popupPage() {
var page = "potvrda.php";
windowprops = "height=535,width=510,location=no,"
+ "scrollbars=no,menubars=no,toolbars=no,resizable=yes";

window.open(page, "Popup", windowprops);
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);