function searchBoxInit (searchBox, defaultValue, className)
{
	if (searchBox.value == '' || searchBox.value == defaultValue)
	{		
		searchBox.value = defaultValue;
		searchBox.className = className;
	}
	else
	{
		searchBox.className = className + ' ' + className + '_focus';
	}

	searchBox.onfocus = function ()
	{
		searchBoxOnFocus(searchBox, defaultValue, className);
	}
	searchBox.onblur = function ()
	{
		searchBoxOnBlur(searchBox, defaultValue, className);
	}
}

function searchBoxOnFocus (searchBox, defaultValue, className)
{
	searchBox.className = className + ' ' + className + '_focus';

	if (searchBox.value == defaultValue)
	{
		searchBox.value = '';
	}
}

function searchBoxOnBlur (searchBox, defaultValue, className)
{
	if (searchBox.value == '')
	{
		searchBox.className = className;
		searchBox.value = defaultValue;
	}
}

function openurl(url)
{
	window.location.href=(url);
}
