function change_state(def_layer, def_state)
{	
	
			if (document.all) { //IS IE 4 or 5 (or 6 beta) 
				eval( "document.all." + def_layer + ".style.display = def_state"); 
			} 
			if (document.layers) { //IS NETSCAPE 4 or below 
				document.layers[def_layer].display = def_state; 
			} 
			if (document.getElementById &&!document.all) { 
				hza = document.getElementById(def_layer); 
				hza.style.display = def_state; 
			} 	
			
}

function daj_info (koje)
{
	
	change_state('box_uputstvo','none');
	change_state('box_glasanje','none');
	change_state('box_face','none');
	change_state(koje,'block');	
}


function aktiviraj (koga) {
	if (koga=="auputstvo") document.getElementById(koga).className='active';
	else document.getElementById(koga).className='aktivan';
	
	if (koga!= "auputstvo") document.getElementById('auputstvo').className='actives';
}

function daj_info1 (koje)
{
	
	change_state('box_uputstvo','none');
	change_state('box_glasanje','none');
	change_state('box_javi','none');	
	change_state('box_face','none');	
	change_state(koje,'block');	
}


function aktiviraj1 (koga) {
	if (koga=="auputstvo") document.getElementById(koga).className='active';
	else document.getElementById(koga).className='aktivan';
	
	if (koga!= "auputstvo") document.getElementById('auputstvo').className='actives';
	if (koga!= "aglasanje") document.getElementById('aglasanje').className='';
	if (koga!= "ajavi") document.getElementById('ajavi').className='';
	if (koga!= "aface") document.getElementById('aface').className='';
}

function Trazi() {
var tag = document.trazi.tag.value;
location.href = "rezultat.php?tag="+tag;
}

