// antileech begin
function antileech (address) {
address = address.split("-klopkazamapsove@"); // * moze biti bilo koji string
address = address.join("@");
window.open ('mailto:'+address,'_blank');
}
// antileech end

// show hide div begin
var div_act='x';
var isIE=document.all?true:false;
var isDOM=document.getElementById?true:false;
var isNS4=document.layers?true:false;

function showhide(_div,_act) {
  if (isDOM)
  {
    document.getElementById(_act).style.display='none';
    document.getElementById(_div).style.display='block';
  }
  else if (isIE) {
    eval("document.all."+_act+".style.display='none';");
    eval("document.all."+_div+".style.display='block';");
  }
  else if(isNS4)
  {
    eval("document.layers['"+_act+"'].display='none';");
    eval("document.layers['"+_div+"'].display='block';");
  }
  return _div;
}
// show hide div end

// field blur begin
function fieldtxt(elm, onoff)
{
	if (typeof(onoff) == "undefined" ) {
		onoff = "blur";
	}

	if (!elm.base) {
		elm.base = elm.value;
	}

	if (elm.value == elm.base && onoff != "blur") {
		elm.value = "";
	}
	else if (elm.value == "" && onoff == "blur") {
		elm.value = elm.base;
	}
}
// field blur end

// adding fields in adminstration begin
// onclick="moreFields(this.parentNode.parentNode)"
function moreFields(nodeCode)
{
	var newFields = nodeCode.cloneNode(true);
	nodeCode.parentNode.insertBefore(newFields,nodeCode);
}
function danger(msg)
{
	document.returnValue = confirm(msg);
}
// adding fields in adminstration end

