function mytest(value)
{
	var obj = document.getElementById(value);
	if (obj)
	{
		obj.focus();
		obj.click();
	}
}
function search_handleEnter(value)
{
	if (window.event.keyCode == 13) 
	{
		mytest(value);
	return false;
	}
	return true;
}
function trim(stringToTrim) {
	return stringToTrim.replace(/^\s+|\s+$/g,"");
}
function disableSearchButton(othis,id){
	if (trim(othis.value) == '')
	{
		var srchbtn = document.getElementById(id);
		if (srchbtn)
		{
			srchbtn.disabled = true;
		}
	}else
	{
		var srchbtn = document.getElementById(id);
		if (srchbtn)
		{
			srchbtn.disabled = false;
		}
	}
	return false;
}

function search_setSearchWord(othis, status, TXT)
{
	//var TXT = 'Ange sökord';

	if (status == 'focus')
	{
		if (othis.value == TXT)
		{
			othis.value = '';
		}
	}else
	{
		if (othis.value == TXT)
		{
			othis.value = '';
		}else
		{
			if (trim(othis.value) == '')
			{
				othis.value = TXT;
//				var srchbtn = document.getElementById("searchButton");
//				srchbtn.disabled = true;
			}else
			{
//				var srchbtn = document.getElementById("searchButton");
//				srchbtn.disabled = false;
			}
		}
	}
}
function setInitValue(othis,Txt)
{
alert(othis);
	if (othis.value == '')
	{
		othis.value = Txt;
	}
}