html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Sistema Locadora Web - UNOPAR</title>
<!-- <link rel="stylesheet" href="geral.css" type="text/css" /> -->
<script>
function valida()
{
if(formlogar.name.value == "")
{
alert("Informar nome de usuário");
return;
}
if (formlogar.senha.value == "")
{
alert("Campo senha em branco!!!");
return;
}
}
</script>
</head>
<body>
<form name="formlogar" method="post" >
<br /><br />
<fieldset style="background: #cceecc url(fundo.png) repeat-x bottom; width: 50%; margin: 0px auto;" >
<legend align="center"><font face="arial" size="5">Login</font></legend>
<br /><br /><br />
<div align="center">
<table border="1" cellpadding="0" cellspacing="0">
<tr>
<td>
<label id="login">Login</label>
</td>
<td>
<input type="text" name="login" title="login" />
</td>
</tr>
<tr>
<td>
<label id="senha">Senha</label>
</td>
<td>
<input type="password" name="senha" title="senha" />
</td>
</tr>
</table>
</div>
<p align="center">
<button type="submit" name="submit" onclick="valida()">Entrar</button> <!-- this.form.action='menu.xhtml' --><!-- quero inserir este código junto com o valida() -->
<button type="reset" name="limpar">Limpar</button>
</p>
</fieldset>
</form>
</body>
</html>
Agradeço a todos.