function isEmpty(besedilo, msg)
{
  if (besedilo.value.length == 0)
  {
	alert(msg)
	besedilo.focus()
	return false
  } 
  return true
}

function isOtherNotEmpty(other, besedilo, msg)
{
  if ((besedilo.value.length == 0) && (other.value.length > 0))
  {
	alert(msg)
	besedilo.focus()
	return false
  } 
  return true
}

function isSelected(selekt, msg)
{
  if (selekt.value == 0)
  {
	alert(msg)
	selekt.focus()
	return false
  } 
  return true
}

function certifikat_iso()
{
  var scrnwdth = 0;
  var scrnhght = 0;
  var wdth = 400; 
  var hght = 555;
  var lft;
  var tp;
  
  if((window.screen) && (screen.width) && (screen.height)) {scrnwdth = screen.width; scrnhght = screen.height;}
  if(scrnwdth != 0) lft = (scrnwdth - wdth)/2;
  if(scrnhght != 0) tp = (scrnhght - hght)/2;
  var slika = null;
  slika = window.open('certifikat_iso.html', 'sodelovanjewnd', 'width=' + wdth + ',height=' + hght + ',left=' + lft + ',top=' + tp + ',screenX=' + lft + ',screenY=' + tp + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no');
  if (slika.blur) slika.focus();
}

function certifikat_iso_1()
{
  var scrnwdth = 0;
  var scrnhght = 0;
  var wdth = 400; 
  var hght = 555;
  var lft;
  var tp;
  
  if((window.screen) && (screen.width) && (screen.height)) {scrnwdth = screen.width; scrnhght = screen.height;}
  if(scrnwdth != 0) lft = (scrnwdth - wdth)/2;
  if(scrnhght != 0) tp = (scrnhght - hght)/2;
  var slika = null;
  slika = window.open('certifikat_iso_1.html', 'sodelovanjewnd', 'width=' + wdth + ',height=' + hght + ',left=' + lft + ',top=' + tp + ',screenX=' + lft + ',screenY=' + tp + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no');
  if (slika.blur) slika.focus();
}

function certifikat_iso_2()
{
  var scrnwdth = 0;
  var scrnhght = 0;
  var wdth = 600; 
  var hght = 426;
  var lft;
  var tp;
  
  if((window.screen) && (screen.width) && (screen.height)) {scrnwdth = screen.width; scrnhght = screen.height;}
  if(scrnwdth != 0) lft = (scrnwdth - wdth)/2;
  if(scrnhght != 0) tp = (scrnhght - hght)/2;
  var slika = null;
  slika = window.open('certifikat_iso_2.html', 'sodelovanjewnd', 'width=' + wdth + ',height=' + hght + ',left=' + lft + ',top=' + tp + ',screenX=' + lft + ',screenY=' + tp + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no');
  if (slika.blur) slika.focus();
}

function certifikat_ibm()
{
  var scrnwdth = 0;
  var scrnhght = 0;
  var wdth = 640; 
  var hght = 441;
  var lft;
  var tp;
  
  if((window.screen) && (screen.width) && (screen.height)) {scrnwdth = screen.width; scrnhght = screen.height;}
  if(scrnwdth != 0) lft = (scrnwdth - wdth)/2;
  if(scrnhght != 0) tp = (scrnhght - hght)/2;
  var slika = null;
  slika = window.open('certifikat_ibm.html', 'sodelovanjewnd', 'width=' + wdth + ',height=' + hght + ',left=' + lft + ',top=' + tp + ',screenX=' + lft + ',screenY=' + tp + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no');
  if (slika.blur) slika.focus();
}

function certifikat_iso_en()
{
  var scrnwdth = 0;
  var scrnhght = 0;
  var wdth = 400; 
  var hght = 555;
  var lft;
  var tp;
  
  if((window.screen) && (screen.width) && (screen.height)) {scrnwdth = screen.width; scrnhght = screen.height;}
  if(scrnwdth != 0) lft = (scrnwdth - wdth)/2;
  if(scrnhght != 0) tp = (scrnhght - hght)/2;
  var slika = null;
  slika = window.open('certifikat_iso_en.html', 'sodelovanjewnd', 'width=' + wdth + ',height=' + hght + ',left=' + lft + ',top=' + tp + ',screenX=' + lft + ',screenY=' + tp + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no');
  if (slika.blur) slika.focus();
}

function certifikat_iso_en_1()
{
  var scrnwdth = 0;
  var scrnhght = 0;
  var wdth = 400; 
  var hght = 555;
  var lft;
  var tp;
  
  if((window.screen) && (screen.width) && (screen.height)) {scrnwdth = screen.width; scrnhght = screen.height;}
  if(scrnwdth != 0) lft = (scrnwdth - wdth)/2;
  if(scrnhght != 0) tp = (scrnhght - hght)/2;
  var slika = null;
  slika = window.open('certifikat_iso_en_1.html', 'sodelovanjewnd', 'width=' + wdth + ',height=' + hght + ',left=' + lft + ',top=' + tp + ',screenX=' + lft + ',screenY=' + tp + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no');
  if (slika.blur) slika.focus();
}


function certifikat_ibm_en()
{
  var scrnwdth = 0;
  var scrnhght = 0;
  var wdth = 640; 
  var hght = 441;
  var lft;
  var tp;
  
  if((window.screen) && (screen.width) && (screen.height)) {scrnwdth = screen.width; scrnhght = screen.height;}
  if(scrnwdth != 0) lft = (scrnwdth - wdth)/2;
  if(scrnhght != 0) tp = (scrnhght - hght)/2;
  var slika = null;
  slika = window.open('certifikat_ibm.html', 'sodelovanjewnd', 'width=' + wdth + ',height=' + hght + ',left=' + lft + ',top=' + tp + ',screenX=' + lft + ',screenY=' + tp + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no');
  if (slika.blur) slika.focus();
}

function open_linkwindow(link)
{
  var scrnwdth = 0;
  var scrnhght = 0;
  var wdth = 300; 
  var hght = 150;
  var lft;
  var tp;
  
  if((window.screen) && (screen.width) && (screen.height)) {scrnwdth = screen.width; scrnhght = screen.height;}
  if(scrnwdth != 0) lft = (scrnwdth - wdth)/2;
  if(scrnhght != 0) tp = (scrnhght - hght)/2;
  var linkwindow = null;
  linkwindow = window.open(link, 'linkwindowwnd', 'width=' + wdth + ',height=' + hght + ',left=' + lft + ',top=' + tp + ',screenX=' + lft + ',screenY=' + tp + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no');
  if (linkwindow.blur) linkwindow.focus();
}

function open_picture(link)
{
  var scrnwdth = 0;
  var scrnhght = 0;
  var wdth = 640; 
  var hght = 480;
  var lft;
  var tp;
  
  if((window.screen) && (screen.width) && (screen.height)) {scrnwdth = screen.width; scrnhght = screen.height;}
  if(scrnwdth != 0) lft = (scrnwdth - wdth)/2;
  if(scrnhght != 0) tp = (scrnhght - hght)/2;
  var picturewindow = null;
  picturewindow = window.open(link, 'picturewindowwnd', 'width=' + wdth + ',height=' + hght + ',left=' + lft + ',top=' + tp + ',screenX=' + lft + ',screenY=' + tp + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no');
  if (picturewindow.blur) picturewindow.focus();
}

function open_window(link)
{
  var scrnwdth = 0;
  var scrnhght = 0;
  var wdth = 640; 
  var hght = 480;
  var lft;
  var tp;
  
  if((window.screen) && (screen.width) && (screen.height)) {scrnwdth = screen.width; scrnhght = screen.height;}
  if(scrnwdth != 0) lft = (scrnwdth - wdth)/2;
  if(scrnhght != 0) tp = (scrnhght - hght)/2;
  var openwindow1 = null;
  openwindow1 = window.open(link, 'openwindow1', 'width=' + wdth + ',height=' + hght + ',left=' + lft + ',top=' + tp + ',screenX=' + lft + ',screenY=' + tp + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes');
  if (openwindow1.blur) openwindow1.focus();
}

function open_picturecustom(link, width, height)
{
  var scrnwdth = 0;
  var scrnhght = 0;
  var wdth = width; 
  var hght = height;
  var lft;
  var tp;
  
  if((window.screen) && (screen.width) && (screen.height)) {scrnwdth = screen.width; scrnhght = screen.height;}
  if(scrnwdth != 0) lft = (scrnwdth - wdth)/2;
  if(scrnhght != 0) tp = (scrnhght - hght)/2;
  var picturewindow = null;
  picturewindow = window.open(link, 'picturewindowwnd', 'width=' + wdth + ',height=' + hght + ',left=' + lft + ',top=' + tp + ',screenX=' + lft + ',screenY=' + tp + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no');
  if (picturewindow.blur) picturewindow.focus();
}

var ud = location.search;
ud = ud.substr(1);

function detectingFLASH() {
	// Setiranje možnih odgovorov
	var noFlash = "Za ogled spletne predstavitve morate namestiti <a href='../www.macromedia.com/go/getflashplayer/default.htm' target='_blank'>Macromedia Flash 5</a> ali novejši.";
	var correctFlash = '<div id="logo_flash" style="position:relative; left:0px; top:0px; z-index:3;"><div id="logo_flash1" style="position:absolute; left:0px; top:0px; width:158px; height:20px; z-index:5;"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="../download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0/#version=6,0,29,0/default.htm" width="599" height="500"><param name="movie" value="library_sl/flash/simt.swf"><param name="quality" value="high"><param name="wmode" value="transparent"><embed src="library_sl/flash/simt.swf" quality="high" pluginspage="../www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="599" height="500" wmode="transparent"></embed></object></div></div>';
	var oldFlash = "Za ogled spletne predstavitve morate namestiti <a href='../www.macromedia.com/go/getflashplayer/default.htm' target='_blank'>Macromedia Flash 5</a> ali novejši.";

	// Ugotovi obiskovalčev brskalnik
  var browser = navigator.userAgent.toLowerCase(); 
  flashVersion = 0;	
	// NS3+, Opera3+, IE5+ Mac
	if ( navigator.plugins != null && navigator.plugins.length > 0 ) {
		var flashPlugin = navigator.plugins['Shockwave Flash'];
		if ( typeof flashPlugin == 'object' ) { 
			if ( flashPlugin.description.indexOf('7.') != -1 ) flashVersion = 7;
			else if ( flashPlugin.description.indexOf('6.') != -1 ) flashVersion = 6;
			else if ( flashPlugin.description.indexOf('5.') != -1 ) flashVersion = 5;
			else if ( flashPlugin.description.indexOf('4.') != -1 ) flashVersion = 4;
			else if ( flashPlugin.description.indexOf('3.') != -1 ) flashVersion = 3;
		}
	} // IE4+ Win32 (VBscript)
	else if ( browser.indexOf("msie") != -1 && parseInt(navigator.appVersion) >= 4 && browser.indexOf("win")!= -1 && browser.indexOf("16bit")== -1 ) {
	  document.write('<scr' + 'ipt language="VBScript"\> \n');
		document.write('on error resume next \n');
		document.write('DIM obFlash \n');
		document.write('SET obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.7") \n');
		document.write('IF IsObject(obFlash) THEN \n');
		document.write('flashVersion = 7 \n');
		document.write('ELSE SET obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.6") END IF \n');
		document.write('IF flashVersion > 7 and IsObject(obFlash) THEN \n');
		document.write('flashVersion = 6 \n');
		document.write('ELSE SET obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.5") END IF \n');
		document.write('IF flashVersion < 6 and IsObject(obFlash) THEN \n');
		document.write('flashVersion = 5 \n');
		document.write('ELSE SET obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.4") END IF \n');
		document.write('IF flashVersion < 5 and IsObject(obFlash) THEN \n');
		document.write('flashVersion = 4 \n');
		document.write('ELSE SET obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.3") END IF \n');
		document.write('IF flashVersion < 4 and IsObject(obFlash) THEN \n');
		document.write('flashVersion = 3 \n');
		document.write('END IF');
	  document.write('</scr' + 'ipt\> \n');
  } // Flash ni prisoten 
  else {
	flashVersion = 0;
  }
// preverjenjenje   
  if (flashVersion == 0) {
  document.write('<img src="library_sl/images/hero_logo.gif" width="379" height="186" border="0">');
  	//output = noFlash;
  }
  else if (flashVersion > 5) {
  //document.write('<img src="library_sl/images/hero_logo.gif" width="379" height="186" border="0">');
  document.write('<div id="logo_flash" style="position:relative; left:0px; top:0px; z-index:3;"><div id="logo_flash1" style="position:absolute; left:0px; top:0px; width:158px; height:20px; z-index:5;"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="../download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0/#version=6,0,29,0/default.htm" width="599" height="500"><param name="movie" value="library_sl/flash/simt.swf"><param name="quality" value="high"><param name="wmode" value="transparent"><embed src="library_sl/flash/simt.swf" quality="high" pluginspage="../www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="599" height="500" wmode="transparent"></embed></object></div></div><img src="library/images/spacer.gif" width="379" height="186" border="0">');
  //	output = correctFlash;
  } 
  else {
  document.write('<img src="library_sl/images/hero_logo.gif" width="379" height="186" border="0">');
	//output = oldFlash;
  } 
//return output;
}

function openNagradna(link)
{
  var scrnwdth = 0;
  var scrnhght = 0;
  var wdth = 640; 
  var hght = 480;
  var lft;
  var tp;
  
  if((window.screen) && (screen.width) && (screen.height)) {scrnwdth = screen.width; scrnhght = screen.height;}
  if(scrnwdth != 0) lft = (scrnwdth - wdth)/2;
  if(scrnhght != 0) tp = (scrnhght - hght)/2;
  var nagradnaigra = null;
  nagradnaigra = window.open(link, 'nagradnaigrawnd', 'width=' + wdth + ',height=' + hght + ',left=' + lft + ',top=' + tp + ',screenX=' + lft + ',screenY=' + tp + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no');
  if (nagradnaigra.blur) nagradnaigra.focus();
}