	/*********************************** UPORABNIKI ***********************************/
// brisanje uporabnika
function zbrisiUporabnika(ID, UserName, limit, s)
	{
		if (confirm("Ali ste prepricani, da želite izbrisati uporabnika '" + UserName + "'?"))
		{
			window.location.href = 'index2.php?stran=uporabniki&deleteuser=' + ID + '&username=' + UserName + '&limit=' + limit + '&s=' + s;
		}
	}
// odjava uporabnika
function odjaviUporabnika(ID, UserName, limit, s)
	{
		if (confirm("Ali ste prepricani, da želite prisilno odjaviti uporabnika '" + UserName + "'?"))
		{
			window.location.href = 'index2.php?stran=uporabniki&logoutuser=' + ID + '&username=' + UserName + '&limit=' + limit + '&s=' + s;
		}
	}
// blokiraj uporabnika
function blokirajUporabnika(ID, UserName, limit, s)
	{
		if (confirm("Ali ste prepricani, da želite blokirati uporabnika '" + UserName + "'?"))
		{
			window.location.href = 'index2.php?stran=uporabniki&blockuser=' + ID + '&username=' + UserName + '&limit=' + limit + '&s=' + s;
		}
	}
// odblokiraj uporabnika
function odblokirajUporabnika(ID, UserName, limit, s)
	{
		if (confirm("Ali ste prepricani, da želite odblokirati uporabnika '" + UserName + "'?"))
		{
			window.location.href = 'index2.php?stran=uporabniki&unblockuser=' + ID + '&username=' + UserName + '&limit=' + limit + '&s=' + s;
		}
	}
	/*********************************** UPORABNIKI ***********************************/

/* ODDELEK */
function objaviOddelek(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=oddelki&limit=' + limit + '&s=' + s + '&publishsection=' + ID + '&name=' + Name;
	}

function neobjaviOddelek(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=oddelki&limit=' + limit + '&s=' + s + '&unpublishsection=' + ID + '&name=' + Name;
	}

function zbrisiOddelek(ID, Name, limit, s)
	{
		if (confirm("Želite izbrisati oddelek '" + Name + "'?"))
		{
			window.location.href = 'index2.php?stran=vsebina&task=oddelki&limit=' + limit + '&s=' + s + '&deletesection=' + ID + '&name=' + Name;
		}
	}
/* ODDELEK */
					
/* KATEGORIJA TIPA KOLESA*/
function objaviKategorijoTip(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=kategorije_tip&limit=' + limit + '&s=' + s + '&publishcategorytype=' + ID + '&name=' + Name;
	}
	
function neobjaviKategorijoTip(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=kategorije_tip&limit=' + limit + '&s=' + s + '&unpublishcategorytype=' + ID + '&name=' + Name;
	}

function zbrisiKategorijoTip(ID, Name, limit, s)
	{
		if (confirm("Želite izbrisati kategorijo '" + Name + "'?"))
		{
			window.location.href = 'index2.php?stran=vsebina&task=kategorije_tip&limit=' + limit + '&s=' + s + '&deletecategorytype=' + ID + '&name=' + Name;
		}
	}
/* KATEGORIJA TIPA KOLESA*/

/* KATEGORIJA ZNAMKE KOLESA*/
function objaviKategorijoZnamka(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=kategorije_znamka&limit=' + limit + '&s=' + s + '&publishcategorymark=' + ID + '&name=' + Name;
	}
	
function neobjaviKategorijoZnamka(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=kategorije_znamka&limit=' + limit + '&s=' + s + '&unpublishcategorymark=' + ID + '&name=' + Name;
	}

function zbrisiKategorijoZnamka(ID, Name, limit, s)
	{
		if (confirm("Želite izbrisati kategorijo '" + Name + "'?"))
		{
			window.location.href = 'index2.php?stran=vsebina&task=kategorije_znamka&limit=' + limit + '&s=' + s + '&deletecategorymark=' + ID + '&name=' + Name;
		}
	}
/* KATEGORIJA ZNAMKE KOLESA*/

/* KOLO */
function objaviKolo(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=kolesa&limit=' + limit + '&s=' + s + '&publishbike=' + ID + '&name=' + Name;
	}

function neobjaviKolo(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=kolesa&limit=' + limit + '&s=' + s + '&unpublishbike=' + ID + '&name=' + Name;
	}

function zbrisiKolo(ID, Name, limit, s)
	{
		if (confirm("Želite izbrisati kolo '" + Name + "'?"))
		{
			window.location.href = 'index2.php?stran=vsebina&task=kolesa&limit=' + limit + '&s=' + s + '&deletebike=' + ID + '&name=' + Name;
		}
	}
/* KOLO */

/* KOMPONENTA KOLO */
function objaviKomp(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=komp&limit=' + limit + '&s=' + s + '&publishkomp=' + ID + '&name=' + Name;
	}

function neobjaviKomp(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=komp&limit=' + limit + '&s=' + s + '&unpublishkomp=' + ID + '&name=' + Name;
	}

function zbrisiKomp(ID, Name, limit, s)
	{
		if (confirm("Želite izbrisati komponento kolesa '" + Name + "'?"))
		{
			window.location.href = 'index2.php?stran=vsebina&task=komp&limit=' + limit + '&s=' + s + '&deletekomp=' + ID + '&name=' + Name;
		}
	}
/* KOMPONENTA KOLO */

/* KATEGORIJA KOMPONENTA KOLESA*/
function objaviKategorijoKomp(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=kategorije_komp&limit=' + limit + '&s=' + s + '&publishcategorykomp=' + ID + '&name=' + Name;
	}
	
function neobjaviKategorijoKomp(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=kategorije_komp&limit=' + limit + '&s=' + s + '&unpublishcategorykomp=' + ID + '&name=' + Name;
	}

function zbrisiKategorijoKomp(ID, Name, limit, s)
	{
		if (confirm("Želite izbrisati kategorijo '" + Name + "'?"))
		{
			window.location.href = 'index2.php?stran=vsebina&task=kategorije_komp&limit=' + limit + '&s=' + s + '&deletecategorykomp=' + ID + '&name=' + Name;
		}
	}
/* KATEGORIJA KOMPONENTA KOLESA*/
				
/* ELEMENT VSEBINE */
function objaviVsebino(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=elementi_vsebine&limit=' + limit + '&s=' + s + '&publishcontent=' + ID + '&name=' + Name;
	}

function neobjaviVsebino(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=elementi_vsebine&limit=' + limit + '&s=' + s + '&unpublishcontent=' + ID + '&name=' + Name;
	}

function zbrisiVsebino(ID, Name, limit, s)
	{
		if (confirm("Želite izbrisati element vsebine '" + Name + "'?"))
		{
			window.location.href = 'index2.php?stran=vsebina&task=elementi_vsebine&limit=' + limit + '&s=' + s + '&deletecontent=' + ID + '&name=' + Name;
		}
	}
/* ELEMENT VSEBINE */
					
/* ALBUM */
function objaviAlbum(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=komponente&task2=galerija&limit=' + limit + '&s=' + s + '&publishalbum=' + ID + '&albumname=' + Name;
	}

function neobjaviAlbum(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=komponente&task2=galerija&limit=' + limit + '&s=' + s + '&unpublishalbum=' + ID + '&albumname=' + Name;
	}

function zbrisiAlbum(ID, Name, limit, s)
	{
		if (confirm("Ali ste prepricani, da želite izbrisati album '" + Name + "'?"))
		{
			window.location.href = 'index2.php?stran=vsebina&task=komponente&task2=galerija&limit=' + limit + '&s=' + s + '&deletealbum=' + ID + '&albumname=' + Name;
		}
	}
/* ALBUM */
					
/* SLIKA */
function objaviSliko(ID, Name, albumid, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=komponente&task2=galerija&task3=podrobnosti_albuma&albumid=' + albumid + '&limit=' + limit + '&s=' + s + '&publishimage=' + ID + '&imagename=' + Name;
	}

function neobjaviSliko(ID, Name, albumid, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=komponente&task2=galerija&task3=podrobnosti_albuma&albumid=' + albumid + '&limit=' + limit + '&s=' + s + '&unpublishimage=' + ID + '&imagename=' + Name;
	}

function zbrisiSliko(ID, Name, albumid, limit, s)
	{
		if (confirm("Ali ste prepricani, da želite izbrisati sliko '" + Name + "'?"))
		{
			window.location.href = 'index2.php?stran=vsebina&task=komponente&task2=galerija&task3=podrobnosti_albuma&albumid=' + albumid + '&limit=' + limit + '&s=' + s + '&deleteimage=' + ID + '&imagename=' + Name;
		}
	}
/* SLIKA */

/* PONUDBE */
function objaviPonudbo(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=ponudbe&limit=' + limit + '&s=' + s + '&publishoffer=' + ID + '&name=' + Name;
	}

function neobjaviPonudbo(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=ponudbe&limit=' + limit + '&s=' + s + '&unpublishoffer=' + ID + '&name=' + Name;
	}

function zbrisiPonudbo(ID, Name, limit, s)
	{
		if (confirm("Ali ste prepricani, da želite izbrisati ponudbo '" + Name + "'?"))
		{
			window.location.href = 'index2.php?stran=vsebina&task=ponudbe&limit=' + limit + '&s=' + s + '&deleteoffer=' + ID + '&name=' + Name;
		}
	}
/* PONUDBE */

/* SLIKA PONUDBE */
function objaviSlikoPonudbe(ID, Name, offerid, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=ponudbe&task2=podrobnosti_ponudbe&offerid=' + offerid + '&limit=' + limit + '&s=' + s + '&publishimage=' + ID + '&imagename=' + Name;
	}

function neobjaviSlikoPonudbe(ID, Name, offerid, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=ponudbe&task2=podrobnosti_ponudbe&offerid=' + offerid + '&limit=' + limit + '&s=' + s + '&unpublishimage=' + ID + '&imagename=' + Name;
	}

function zbrisiSlikoPonudbe(ID, Name, offerid, limit, s)
	{
		if (confirm("Ali ste prepricani, da želite izbrisati sliko ponudbe '" + Name + "'?"))
		{
			window.location.href = 'index2.php?stran=vsebina&task=ponudbe&task2=podrobnosti_ponudbe&offerid=' + offerid + '&limit=' + limit + '&s=' + s + '&deleteimage=' + ID + '&imagename=' + Name;
		}
	}
/* SLIKA PONUDBE */

/* ELEMENT MENUJA */
function objaviElementMenuja(ID, Name, menuid)
	{
		window.location.href = 'index2.php?stran=vsebina&task=menuji&task2=podrobnosti_menuja&menuid=' + menuid + '&publishmenuitem=' + ID + '&name=' + Name;
	}
	
function neobjaviElementMenuja(ID, Name, menuid)
	{
		window.location.href = 'index2.php?stran=vsebina&task=menuji&task2=podrobnosti_menuja&menuid=' + menuid + '&unpublishmenuitem=' + ID + '&name=' + Name;
	}

function zbrisiElementMenuja(ID, Name, menuid)
	{
		if (confirm("Ali ste prepricani, da želite izbrisati element menuja '" + Name + "'?"))
		{
			window.location.href = 'index2.php?stran=vsebina&task=menuji&task2=podrobnosti_menuja&menuid=' + menuid + '&deletemenuitem=' + ID + '&name=' + Name;
		}
	}
/* ELEMENT MENUJA */
					
/* MENU */
function objaviMenu(ID, Name)
	{
		window.location.href = 'index2.php?stran=vsebina&task=menuji&publishmenu=' + ID + '&name=' + Name;
	}
	
function neobjaviMenu(ID, Name)
	{
		window.location.href = 'index2.php?stran=vsebina&task=menuji&unpublishmenu=' + ID + '&name=' + Name;
	}

function zbrisiMenu(ID, Name)
{
		if (confirm("Ali ste prepricani, da želite izbrisati menu '" + Name + "'?"))
	{
		window.location.href = 'index2.php?stran=vsebina&task=menuji&deletemenu=' + ID + '&name=' + Name;
	}
}
/* MENU */

/* LOKACIJA */
function objaviLokacijo(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=lokacije&limit=' + limit + '&s=' + s + '&publishlocation=' + ID + '&name=' + Name;
	}
	
function neobjaviLokacijo(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=lokacije&limit=' + limit + '&s=' + s + '&unpublishlocation=' + ID + '&name=' + Name;
	}

function zbrisiLokacijo(ID, Name, limit, s)
	{
		if (confirm("Ali ste prepricani, da želite izbrisati lokacijo '" + Name + "'?"))
		{
			window.location.href = 'index2.php?stran=vsebina&task=lokacije&limit=' + limit + '&s=' + s + '&deletelocation=' + ID + '&name=' + Name;
		}
	}
/* LOKACIJA */

/* KATEGORIJA FORUMA*/
function objaviForumKategorijo(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=komponente&task2=forum&limit=' + limit + '&s=' + s + '&publishfcategory=' + ID + '&name=' + Name;
	}
	
function neobjaviForumKategorijo(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=komponente&task2=forum&limit=' + limit + '&s=' + s + '&unpublishfcategory=' + ID + '&name=' + Name;
	}

function zbrisiForumKategorijo(ID, Name, limit, s)
	{
		if (confirm("Ali ste prepricani, da želite izbrisati kategorijo foruma '" + Name + "'?"))
		{
			window.location.href = 'index2.php?stran=vsebina&task=komponente&task2=forum&limit=' + limit + '&s=' + s + '&deletefcategory=' + ID + '&name=' + Name;
		}
	}
/* KATEGORIJA FORUMA*/

/* TEMA */
function objaviTemo(ID, Name, fcatid, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=komponente&task2=forum&task3=podrobnosti_kategorije&fcatid=' + fcatid + '&limit=' + limit + '&s=' + s + '&publishtopic=' + ID + '&topicname=' + Name;
	}

function neobjaviTemo(ID, Name, fcatid, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=komponente&task2=forum&task3=podrobnosti_kategorije&fcatid=' + fcatid + '&limit=' + limit + '&s=' + s + '&unpublishtopic=' + ID + '&topicname=' + Name;
	}

function zbrisiTemo(ID, Name, fcatid, limit, s)
	{
		if (confirm("Ali ste prepricani, da želite izbrisati temo '" + Name + "'?"))
		{
			window.location.href = 'index2.php?stran=vsebina&task=komponente&task2=forum&task3=podrobnosti_kategorije&fcatid=' + fcatid + '&limit=' + limit + '&s=' + s + '&deletetopic=' + ID + '&topicname=' + Name;
		}
	}
/* TEMA */

/* OBJAVA */
function objaviObjavo(ID, Name, fcatid, topicid, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=komponente&task2=forum&task3=podrobnosti_kategorije&task4=podrobnosti_teme&fcatid=' + fcatid + '&topicid=' + topicid + '&limit=' + limit + '&s=' + s + '&publishpost=' + ID + '&postname=' + Name;
	}

function neobjaviObjavo(ID, Name, fcatid, topicid, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=komponente&task2=forum&task3=podrobnosti_kategorije&task4=podrobnosti_teme&fcatid=' + fcatid + '&topicid=' + topicid + '&limit=' + limit + '&s=' + s + '&unpublishpost=' + ID + '&postname=' + Name;
	}

function zbrisiObjavo(ID, Name, fcatid, topicid, limit, s)
	{
		if (confirm("Ali ste prepricani, da želite izbrisati objavo '" + Name + "'?"))
		{
			window.location.href = 'index2.php?stran=vsebina&task=komponente&task2=forum&task3=podrobnosti_kategorije&task4=podrobnosti_teme&fcatid=' + fcatid + '&topicid=' + topicid + '&limit=' + limit + '&s=' + s + '&deletepost=' + ID + '&postname=' + Name;
		}
	}
/* OBJAVA */

/* POVEZAVA */
function objaviPovezavo(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=komponente&task2=spletne_povezave&limit=' + limit + '&s=' + s + '&publishweblink=' + ID + '&weblinkname=' + Name;
	}

function neobjaviPovezavo(ID, Name, limit, s)
	{
		window.location.href = 'index2.php?stran=vsebina&task=komponente&task2=spletne_povezave&limit=' + limit + '&s=' + s + '&unpublishweblink=' + ID + '&weblinkname=' + Name;
	}

function zbrisiPovezavo(ID, Name, limit, s)
	{
		if (confirm("Želite izbrisati povezavo '" + Name + "'?"))
		{
			window.location.href = 'index2.php?stran=vsebina&task=komponente&task2=spletne_povezave&limit=' + limit + '&s=' + s + '&deleteweblink=' + ID + '&weblinkname=' + Name;
		}
	}
/* POVEZAVA */

// toggle
function toggle_it(itemID){ 
      // Toggle visibility between none and inline 
      if ((document.getElementById(itemID).style.display == 'none')) 
      { 
        document.getElementById(itemID).style.display = 'block'; 
      } else { 
        document.getElementById(itemID).style.display = 'none'; 
      } 
  } 

/* popup okno za popup_slika.php */
function popupImage(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=100,height=100,screenX=50,screenY=50,top=50,left=50')
}
/* konec popup okno za popup_slika.php */
function popupStatistika(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=650,screenX=50,screenY=50,top=50,left=50')
}
function popupVizitka(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=420,height=230,screenX=200,screenY=200,top=200,left=200')
}
function popupNatisni(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=665,height=450,screenX=120,screenY=120,top=120,left=120')
}
function popupPriporoci(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=380,height=460,screenX=120,screenY=120,top=120,left=120')
}

