function mouseOverLeft() {
	$('menuitemleft').style.background = 'url( ../image/l_green.gif )';
}
function mouseOutLeft() {
	$('menuitemleft').style.background = 'url( ../image/l_grey.gif )';
}
function mouseOverRight() {
	$('menuitemright').style.background = 'url( ../image/r_green.gif )';
}
function mouseOutRight() {
	$('menuitemright').style.background = 'url( ../image/r_grey.gif )';
}

function keyUpEvent(keyCode, href) {
	if (keyCode == 32 || keyCode == 13) document.location.href = href;
}

function changeButtonState() {}

/*login scripts*/
function submitLogin(e) {
    e = e || window.event;
    if (window.event) {
        e.cancelBubble = true;
        e.returnValue = false;
    } else {
        e.preventDefault();
        e.stopPropagation();
    }
    document.getElementById('loginForm').submit();
}

function submitEnter(e) {
    e = e || window.event;
    if (e.keyCode == 32 || e.keyCode == 13) {
        document.getElementById('loginForm').submit();
    }
}
function gotfocus() {
    document.getElementById('loginForm:btnLogin').onclick = submitLogin;
    document.getElementById('loginForm:usrLogName').focus();
    if (document.getElementById('loginForm:usrLogName').value != "") {
        document.getElementById('loginForm:usrLogPass').focus();
    }
}
function focusEmail(){
     document.getElementById('loginForm:usrLogName').focus();
}

function nextFieldFocus(nameForm, nameField)
{
     var form = document['' + nameForm];
	form['' + nameField].focus();
	form['' + nameField].select();
}


