<html>
<head>
<title>Untitled Document</title>
<script language="JavaScript">
<!--
function calculaResolucion() {
if (screen.width + "x" +screen.height == "640x480") {
document.miFormulario.resolucion.value = "640x480";
}
if (screen.width + "x" +screen.height == "800x600") {
document.miFormulario.resolucion.value = "800x600";
}
if (screen.width + "x" +screen.height == "1024x768") {
document.miFormulario.resolucion.value = "1024x768";
}
else
document.miFormulario.resolucion.value = "1024x768";
alert('RESOLUCION: '+ document.miFormulario.resolucion.value);
return true;
}
//-->
</script>
</head>
<body>
<form name="miFormulario" action="index.asp" onSubmit="return calculaResolucion();">
<input name="usuario" type="text" id="textfield" size="12" maxlength="30">
<input name="password" type="password" size="12" maxlength="30">
<input type="hidden" name="resolucion" value="">
<input type="submit" name="Submit" value="Enviar" id="Submit">
</form>
</body>
</html>