function confirm_delete($url)
{
	var is_confirmed = confirm('Ste prepričani, da želite zbrisati vnos?');
	if (is_confirmed) {
		window.location = $url;
	}
}

function confirm_action($url, $msg)
{
	var is_confirmed = confirm($msg);
	if (is_confirmed) {
		window.location = $url;
	}
}

function openPop(url, width, height, s)
{
	x = (640 - width)/2;
	y = (480 - height)/2;
	if (screen)	{
		x = (screen.availWidth - width) / 2;
		y = (screen.availHeight - height) / 2;
	}
	if (navigator.appName == "Netscape")
		height = height + 50;
	window.open(url, '', 'scrollbars=' + s + ',status=0,resizable=0,width=' + width + ',height=' + height + ',screenX=' + x + ',screenY=' + y + ',top=' + y + ',left=' + x);
}

// Text Input Field Highlight
function setBgImage(element,imageFile) {
  element.style.backgroundImage="url("+imageFile+")";
  element.style.color="#394654";
}

// Text Input Field Normal
function setBgImageOver(element,imageFile) {
  element.style.backgroundImage="url("+imageFile+")";
  element.style.color="#E15616";
}

// Img preloader
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

// Text blink
function blinkIt() {
 if (!document.all) return;
 else {
   for(i=0;i<document.all.tags('blink').length;i++){
      s=document.all.tags('blink')[i];
      s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible';
   }
 }
}
