function createTxtOnMouseEvent()
{
	// fixa lite saker på alla divvar.. 
	var x = document.getElementsByTagName('input');
	for (var i = 0; i < x.length; i++)
	{
		// Huvudmeny - rubrik
		if (x[i].className == 'textbox')
		{
			x[i].onfocus 		= function () {	mOver(this, true);	}
			x[i].onblur 		= function () {	mOut(this);			}
		}
		else if (x[i].className == 'button')
		{
			x[i].onmouseover 	= function () {	mOver(this, false);	}
			x[i].onmouseout 	= function () {	mOut(this);			}
			
			x[i].onfocus 		= function () {	mOver(this, false);	}
			x[i].onblur 		= function () {	mOut(this);			}
		}
	}
}
function mOver(obj, textbox)
{
	if( textbox )
	{
		//obj.style.borderColor = "#666699";
		//obj.style.borderColor = "#666699";
		obj.style.borderColor = "#0000ff";
		obj.style.backgroundColor = "#FFFF99"; // "#FFFFDF";
	}
	else
	{
		obj.style.borderColor = "#333333";
		//obj.style.borderColor = "red";
		obj.style.backgroundColor = "#999999";
	}
}
function mOut(obj)
{
	obj.style.borderColor = "";
	obj.style.backgroundColor = "";
}



function focusElement(formName, elementName)
{
	if( document.forms[formName] )
	{
		if( document.forms[formName].elements[elementName] )
		{
			document.forms[formName].elements[elementName].focus();
			mOver( document.forms[formName].elements[elementName], true );
		}
	}
}