/********************************/
/*	 Za GBL izdelal 	*/
/*	 Igor Samotorčan	*/
/* vse pravice pridržane	*/
/********************************/

function natisni_stran()
{
	if(!document.getElementById("vsebina")) return;

	var con = document.getElementById("vsebina").innerHTML;

	var nat;

	nat = window.open ("", "natisni","menubar=1,resizable=1,scrollbars=1, status=1,width=625,height=480");

	nat.document.write('<html><head><title>Natisni - ' + document.title + '</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" /><link href="/css/print.css" rel="stylesheet" type="text/css" /></head>');
	nat.document.write('<body style="padding: 9px;" onload="window.print();">');
	nat.document.write(document.getElementById("vsebina").innerHTML);
	nat.document.write('</body></html>');
	nat.document.close();

}

function priljubljene(){


	if (navigator.appName == "Microsoft Internet Explorer") {

		var url= location.href; 
		var title= document.title; 

		window.external.AddFavorite(url,title);

	} else {
		alert('Pritisnite Ctrl+D');
	}

}

function povecaj(slika,sir,vis){

	//if(xpop.closed == false) xpop.close();

	 xpop=window.open('/foto.php?img=' + slika,'fotke','width=' + sir + ',height=' + vis);
	 xpop.focus();
}

function popup(url,name,data)
	{
	 www=window.open(url,name,data);
	 www.focus();
	}


var tmp_string = '...iskalni niz';

function user_najdi(obrazec){

  if(obrazec.keywords.value == '' || obrazec.keywords.value == tmp_string)
  {
	obrazec.keywords.value = tmp_string;
	return false;
  }

}

function pocisti_polje(polje){
  if(polje.value == tmp_string){
	polje.value = '';
  }
}
