<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}



ieHover = function() {
	var ieLIs = document.getElementById('nav').getElementsByTagName('li');
	for (var i=0; i<ieLIs.length; i++) if (ieLIs[i]) {
		ieLIs[i].onmouseover=function() {
			
		var ieUL = this.getElementsByTagName('ul')[0];
		if (ieUL) {
		var ieMat = document.createElement('iframe');
						ieMat.style.width=ieUL.offsetWidth+"px";
						ieMat.style.height=ieUL.offsetHeight+"px";	
						ieUL.insertBefore(ieMat,ieUL.firstChild);
						ieUL.style.zIndex="99";
						}
			
			this.className+=" iehover";
			}
		ieLIs[i].onmouseout=function() {
			this.className=this.className.replace(' iehover', '');
			}
			}
	}
if (window.attachEvent) window.attachEvent('onload', ieHover);


function PHOTO(sPicURL) { 
				window.open("/popup.htm?"+sPicURL, "", "resizable=0,WIDTH=280,HEIGHT=280");
			}


function changelanguage()
{
   window.location = document.myform.ID_Jezik.value;
}


function showdiv(ID)
   {
      var brojac = document.getElementById('brojac').value - 1;
	  for (i=1;i<brojac+1;i++)
	  {
	     if (ID == i)
		 {
		    document.getElementById(i).style.display='block';
		 }
		 else
		 {
		    document.getElementById(i).style.display='none';
		 }
	  }
   }
function showdiva(ID)
   {
      var brojac = document.getElementById('brojac').value - 1;
	  for (i=1;i<brojac+1;i++)
	  {
	     if (ID =='a'+i)
		 {
		    document.getElementById('a'+i).style.display='block';
		 }
		 else
		 {
		    document.getElementById('a'+i).style.display='none';
		 }
	  }
   }


function show_subdetails(ID)
   {
	  document.getElementById('myID'+ID).style.display='block';
	  document.getElementById('elink_'+ID).style.display='none';
	  document.getElementById('clink_'+ID).style.display='block';
   }

function hide_subdetails(ID)
   {
	  document.getElementById('myID'+ID).style.display='none';
	  document.getElementById('elink_'+ID).style.display='block';
	  document.getElementById('clink_'+ID).style.display='none';
   }
   
   function detalji_prikaz()
   {
	  document.getElementById('detalji').style.display='block';
	  document.getElementById('hlink').style.display='block';
	  document.getElementById('slink').style.display='none';
	  
   }
   function detalji_sakrij()
   {
	  document.getElementById('detalji').style.display='none';
	  document.getElementById('hlink').style.display='none';
	  document.getElementById('slink').style.display='block';
   }
   
   function convertdata()
{
   var tecaj1=document.getElementById("tecaj1")
   mytecaj1 = tecaj1.options[tecaj1.selectedIndex].value
   var tecaj2=document.getElementById("tecaj2")
   mytecaj2 = tecaj2.options[tecaj2.selectedIndex].value
   var vrijednost = document.getElementById("convert1").value
   document.getElementById("convert2").value = Math.round(((mytecaj1*vrijednost)/mytecaj2)*100)/100
}
	function bookmarksite(title, url){
	if (document.all)
	window.external.AddFavorite(url, title);
	else if (window.sidebar)
	window.sidebar.addPanel(title, url,"");
}

   function sendform(ID)
   {
      if (ID == 1)
	  {
	     document.myForma.action="send_realestate.asp"
	     //document.myForma.action="send_myselection.asp"
	  }
	  else if (ID == 3)
	  {
	     document.myForma.action="clearselection.asp"
	     //document.myForma.action="send_myselection.asp"
	  }
	  else
	  {
	     document.myForma.action="send_biliskov.asp"
	  }
	  document.myForma.submit()
   }   



function formValidation(form)
			{
					if(notEmpty(form.SEmail))
				{
						if(notEmpty(form.Email))
					{
											return true;
					}
				}

			return false;
		}

function notEmpty(elem)
{
	var str = elem.value;
	if(str.length == 0)
	{
		alert("You must fill required fields.");
		return false;
	}
	else
	{
		return true;
	}
}
function checkemail(source)
{
	var emailFilter=/^.+@.+\..{2,3}$/;
	if (!(emailFilter.test(source.value)))
	{ 
		   alert("Invalid e-mail address.");
		   return false;
   }
   return true;
}
function Check(sender)
{
	if(!formValidation(sender))
	{
		return false;				
	}
	if(!checkemail(sender.e_mail))
	{
		return false;
	}

	return true;
}

function Check_form(sender)
{
	if(!formValidation_form(sender))
	{
		return false;				
	}
	if(!checkemail(sender.email))
	{
		return false;
	}

	return true;
}

function formValidation_form(form)
			{
					if(notEmpty(form.Firstlname))
				{
						if(notEmpty(form.lastName))
					{
							if(notEmpty(form.phone))
						{
									if(notEmpty(form.email))
								{
											return true;
								}
						}
					}
				}

			return false;
		}



function odustani(i) {
		window.location = 'odustani.asp?ID='+ i;
   }


function loadFlash(movieName, movieWidth, movieHeight, backColour, version) {

document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=" + version + ",0,0,0\" width=\"" + movieWidth + "\" height=\"" + movieHeight + "\">");
   document.write("<param name=movie value=\"" + movieName + "\">");
   document.write("<param name=menu value=false>");
   document.write("<param name=quality value=high>");
   document.write("<param name=wmode value=transparent>");
   document.write("<param name=wmode value=opaque>");
   document.write("<PARAM NAME=bgcolor VALUE=#" + backColour + ">");
   document.write("<embed src=\"" + movieName + "\" menu=false quality=high  bgcolor=#" + backColour + " pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"" + movieWidth + "\" height=\"" + movieHeight + "\">");
   document.write("</embed></object>");
} 




//-->
