function menu()
{
	var menu		= document.getElementById('menu');
	var menu_items	= menu.getElementsByTagName('a');
	
	for (var a=0; a<menu_items.length; a++)
	{
		var menu_item = menu_items[a];
		
		menu_item.onmouseover = function()
		{
			if (this.parentNode.parentNode.className != 'active')
			{
				this.parentNode.parentNode.id			+= '_hover';
				this.parentNode.parentNode.className	= 'hover';
			}
		}
		
		menu_item.onmouseout = function()
		{
			if (this.parentNode.parentNode.className != 'active')
			{
				this.parentNode.parentNode.id			= this.parentNode.parentNode.id.replace('_hover', '');
				this.parentNode.parentNode.className	= '';
			}
		}
		
		menu_item.onclick = function()
		{
			document.location	= this.href;
		}		
	}
}

function fieldFocus(obj)
{
	// get obj
	var field = document.getElementById(obj);
	
	// set focus
	field.focus();
}

function deleteValue(field,value)
{
	if (field.value == value)
	{
		field.value = '';
	}
}
