function clear_box()
{
	document.searchform.search.value='';
	document.searchform.search.focus();
}

function hover_on(arrow)
{
	document.getElementById(arrow).src='images/' + arrow + '_active.gif';
}
function hover_off(arrow)
{
	document.getElementById(arrow).src='images/' + arrow + '.gif';
}

function return_oswidth()
{
	var iTotalWidth = document.getElementById("frame").offsetWidth;
	//alert(iTotalWidth);
	return iTotalWidth;
}
function increase(amount)
{
	var sWidth = document.getElementById("progressbar").style.width;
	var iWidth = 0;
	iWidth = Math.round((iWidth + parseInt(sWidth)+amount));
	//alert(iWidth);
	sWidth = iWidth.toString() + '%';
	//alert(sWidth);
	return sWidth;
}
function amount(count)
{
	var width = return_oswidth();
	//alert(width);
	var increase = Math.ceil((100/count));
	//alert(increase);
	return increase;
}
function pricetag(link)
{
	window.open (link,"Prislapp","status=0,toolbar=0,width=800,height=600"); 
}


function menu_open(link)
{
	//var ul_level2 = document.getElementsByName(link);
	//var display = ul_level2[0].style.display;
	//alert(display);
	
	
	//var ul_level2 = document.getElementsByName(link);
	//var display = ul_level2[0].style.display;
	//alert(display);
	
	var id = link;
	var ul_level2 = document.getElementById(id);
	var display = ul_level2.style.display;
	
	if(display == 'none')
	{
		ul_level2.style.display='block';
	}
	if(display == 'block')
	{
		ul_level2.style.display='none';
	}

}
