function gotoPage(url,mode)
{
	if(mode=='topic')
		window.location.href=url;
	else
	{
		window.open(url,'','');
	}
}

function chngclass(button,style)
{
	//alert("hallo");
	button.className=style;
}

function chngstate(button,style,tid,tstyle)
{
	//alert("hallo");
	button.className=style;
	var btext = document.getElementById(tid)
	btext.className=tstyle;
}

function onOver(button)
{
	button.style.backgroundColor='BFCADC';
	button.style.borderColor='2F558E';
		//button.style.color=;
		
}

function onOut(button)
{
	button.style.backgroundColor='white';
	button.style.borderColor='BFCADC';
	button.style.color='2F558E';
}

function onDown(button)
{
	button.style.backgroundColor='2F558E';
	//button.style.borderColor='BFCADC';
	button.style.color='white';
}

function onUp(button)
{
	button.style.backgroundColor='BFCADC';
	//button.style.borderColor='BFCADC';
	button.style.color='2F558E';
}