function range (option, minmax) {
	if (option != 0 && option != 47)
	{
		if (minmax == "min") {
			newindex = option + 1;
			currindex = document.getElementById('maxprice').selectedIndex;
			if (currindex < newindex) {
				document.getElementById('maxprice').selectedIndex = newindex;
			}
		}
		if (minmax == "max") {
			newindex = option - 1;
			currindex = document.getElementById('minprice').selectedIndex;
			if (currindex > newindex) {
				document.getElementById('minprice').selectedIndex = newindex;
			}
		}
	}
}

function rangerent (option, minmax) {
	if (option != 0 && option != 14)
	{
		if (minmax == "min") {
			newindex = option;
			currindex = document.getElementById('maxpricerent').selectedIndex;
			if (currindex < newindex) {
				document.getElementById('maxpricerent').selectedIndex = newindex;
			}
		}
		if (minmax == "max") {
			newindex = option;
			currindex = document.getElementById('minpricerent').selectedIndex;
			if (currindex > newindex) {
				document.getElementById('minpricerent').selectedIndex = newindex;
			}
		}
	}
}

function hs(itemID, iState)
{
	htmlItem = document.getElementById(itemID);
	if (htmlItem)
	{
		if (iState == 0)
		{  // hide
			htmlItem.style.display = 'none';
		}
		else
		{  // show
			htmlItem.style.display = '';
		}
	}
}
 
defaultStep=3
step=defaultStep
function scrollDivRight(id){
document.getElementById(id).scrollLeft+=step
timerRight=setTimeout("scrollDivRight('"+id+"')",10)
}

function scrollDivLeft(id){
document.getElementById(id).scrollLeft-=step
timerLeft=setTimeout("scrollDivLeft('"+id+"')",10)
}
