function mo(v,p)
{
	f=p.src;
	p.src=(v == 1)?f.replace(/_b.gif/g,"_ro.gif"):f.replace(/_ro.gif/g,"_b.gif");
}

function mbo(v,p,a)
{
	if (v < 100)
	{
		if (p == 1)
		{
			document.getElementById('BT'+v).style.color='#686868';
			document.getElementById('BT'+v).style.backgroundColor='#DCE2E0';
			a.style.color='#686868';
		}
		else
		{
			document.getElementById('BT'+v).style.color='#CDCAC5';
			document.getElementById('BT'+v).style.backgroundColor='#A1364A';
			a.style.color='#CDCAC5';
		}	
		return;
	}
	if (v < 1000)
	{
		if (p == 1)
		{
			document.getElementById('BT'+v).style.color='#CDCAC5';
			document.getElementById('BT'+v).style.backgroundColor='#A1364A';
			a.style.color='#CDCAC5';
		}
		else
		{
			document.getElementById('BT'+v).style.color='#333';
			document.getElementById('BT'+v).style.backgroundColor='#cccccc';
			a.style.color='#333';
		}	
		return;
	}	
}

function mbo2(v,p,a)
{
	if (p == 1)
	{
		document.getElementById('MBUTTONR').style.color='#686868';
		a.style.color='#686868';
		document.getElementById('MBUTTONR').style.backgroundImage='url(pictures/bogenr1.gif)';
	}
	else
	{
		document.getElementById('MBUTTONR').style.color='#CDCAC5';
		a.style.color='#CDCAC5';
		document.getElementById('MBUTTONR').style.backgroundImage='url(pictures/bogenr0.gif)';
	}	
}

function changeCursor(o,v)
{
	if (v == 1)
	{
		o.style.cursor='pointer';
	}
}
function checkOnEmpty()
{
	if (document.EGAL.SEARCHVAR.value == '')
	{
		return false;
	}
	return true;
}
