function ie_hover(tagName, rootElement) 
{ 

	if (document.all && document.getElementById) 
	{ 
		if (!rootElement) rootElement = document;

		var els = rootElement.getElementsByTagName(tagName);
		for(var i=0; i<els.length; i++)
		{
			var el = els[i];
			
			var InputObjName = el.name; 
			var isMyInputObjEmail = InputObjName.indexOf("tbxYourEMailAddress"); 
			var isMyInputObjPwd = InputObjName.indexOf("tbxPassword");
			var isMyInputObjPwdTemp = InputObjName.indexOf("tbxPwdTemp");
			var isMyInputObjLogin = InputObjName.indexOf("btnLogin");
			var isMyInputObjChoose = InputObjName.indexOf("btnChooselanguage");
			
			
			if ( (isMyInputObjEmail > -1 ) || (isMyInputObjPwd > -1) || (isMyInputObjChoose > -1) || (isMyInputObjPwdTemp > -1) ) {
				
			} else if (isMyInputObjLogin > -1) {
				el.onmouseover = function() 
				{
					this.style.backgroundImage="url(Communities/Common/Themes/LinkedMusicians/images/stramien/login_button_over.gif)";
				}
				
				el.onmouseout = function() 
				{
					this.style.backgroundImage="url(Communities/Common/Themes/LinkedMusicians/images/stramien/login_button.gif)";
				}
				
			} else {
			
				el.onmouseover = function() 
				{
					this.className += " " + this.className + "_over";
				}
				
				el.onmouseout = function() 
				{
					this.className = this.className.split(" ")[0]; // this.className.replace(" over", "");
				}
			}
		}
	}
}


function KeyDownHandler(btn)
{

	// process only the Enter key
    if (event.keyCode == 13)

    {

        // cancel the default submit

        event.returnValue	=	false;

        event.cancel		=	true;

		var obj = document.getElementById(btn);

		obj.click();

    }

}