// JavaScript Document
function validate() {
	var account = document.forms["formulario"].elements["login_username"].value;
	var password = document.forms["formulario"].elements["login_password"].value;
	if ((account == "") || (account == "account")) {
		alert("Please Type a Valid Account Number");
		return false;
	}
	else 
	if ((password == "") || (password == "password")) {
		alert("Please Type Your Valid Password");
		return false;
	}
	return true;
}

<!-- Begin
nextfield = "login_username"; // name of first box on page
netscape = "";
ver = navigator.appVersion; len = ver.length;
for(iln = 0; iln < len; iln++) if (ver.charAt(iln) == "(") break;
netscape = (ver.charAt(iln+1).toUpperCase() != "C");

function keyDown(DnEvents) { // handles keypress
// determines whether Netscape or Internet Explorer
k = (netscape) ? DnEvents.which : window.event.keyCode;
if (k == 13) { // enter key pressed
if (nextfield == 'done') return true; // submit, we finished all fields
else { // we're not done yet, send focus to next box
eval('document.formulario.' + nextfield + '.focus()');
return false;
      }
   }
}
document.onkeydown = keyDown; // work together to analyze keystrokes
if (netscape) document.captureEvents(Event.KEYDOWN|Event.KEYUP);
//  End -->