		function rightclick() {
			if (event.button==2) {
				alert('Извините али није дозвољено коришћење десног клика на мишу!');		
			}
		}

		/***********************************************
		* Disable Text Selection script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
		* This notice MUST stay intact for legal use
		* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
		***********************************************/

		function disableSelection(target){
			if (typeof target.onselectstart!="undefined") //IE route
				target.onselectstart=function(){return false}
			else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
				target.style.MozUserSelect="none"
			else //All other route (ie: Opera)
				target.onmousedown=function(){return false}
			target.style.cursor = "default"
		}
		//Sample usages
		//disableSelection(document.body) //Disable text selection on entire body
		//disableSelection(document.getElementById("mydiv")) //Disable text selection on element with id="mydiv"


		function link_bookmark(url) {
			var txt = "Bookmark";
			//var url = "<?php echo $conf->web->home_domain; ?>";
			var who = "CodeBrain.com FREE JAVA";
			
			var ver = navigator.appName;
			var num = parseInt(navigator.appVersion);
			if ((ver == "Microsoft Internet Explorer") && (num >= 4)) {
			document.write('<a href="javascript:window.external.AddFavorite(url,who);" class="bookmark" ');
			document.write('onmouseover=" window.status=');
			document.write("txt; return true ");
			document.write('"onmouseout=" window.status=');
			document.write("' '; return true ");
			document.write('">'+ txt + '</a>');
			} else {
			txt += "  (Ctrl+D)";
			document.write('<a href="javascript:void(0);" title="Bookmark" class="bookmark">'+ txt + '</a>');
			} 
		}

		/* novi prozor	*/
		function open_win(t,x,y) {
			if ((t) && (t != null)) {
	    		pWindow = open(t,"np","width="+x+",height="+y+",menubar=no,scrollbars=no,resizable=yes");
	        	pWindow.focus();
	    	}
		}

		function go(url) {
			if (url.charAt(0) == '/') location.href = url;
			else location.href = '<?php echo $GLOBALS["conf"]->web->home_url ?>' + url;
		}

				
		function visibleclick(id)
		{
		   if (document.getElementById(id).style.display=='none')
		     document.getElementById(id).style.display='';
		   else
		     document.getElementById(id).style.display='none';
		
		}
		
		function displayclick(id, action)
		{
		   if ( (action=='on') && (document.getElementById(id).style.display=='none') ) {
		     document.getElementById(id).style.display='';
		   }
		   else {
		     document.getElementById(id).style.display='none';
		  }
		  return null;
		}
		
		function checkAll() {
			var f = document.formular;
	
			for (var i=0;i<f.elements.length;i++){
				var e = f.elements[i];
				if (e.type=='checkbox')
					e.checked = true;
			}
		}
	
		function decheckAll() {
			var f = document.formular;
	
			for (var i=0;i<f.elements.length;i++){
				var e = f.elements[i];
				if (e.type=='checkbox')
					e.checked = false;
			}
		}
		
		function submitForm(name) {
            var f = document.forms[name];
			f.submit();
        	return true;
		}