var highlightcolor="#fc3";
var ns6=document.getElementById&&!document.all;
var previous="";
var eventobj;
function init(){if(document.forms[0].elements[1]!=null){document.forms[0].elements[1].focus()
}}var intended=/INPUT|TEXTAREA|SELECT|OPTION/;
function checkel(which){if(which.style&&intended.test(which.tagName)){return true
}else{return false
}}function highlight(e){if(!ns6){eventobj=event.srcElement;
if(previous!=""){if(checkel(previous)){previous.style.backgroundColor=""
}previous=eventobj;
if(checkel(eventobj)){eventobj.style.backgroundColor=highlightcolor
}}else{if(checkel(eventobj)){eventobj.style.backgroundColor=highlightcolor
}previous=eventobj
}}}function submitForgotPassword(){var subForm=document.forms[0];
var userName=subForm.username.value;
var pwd=subForm.password.value;
if(userName.indexOf("@")!=-1){subForm.action="resetPwd.do";
subForm.submit();
return true
}else{document.getElementById("loginerror").innerHTML="<ul><li>User name is either  incorrect or blank</li></ul>"
}return false
};
