Código HTML:
<html>
<head>
<script type="text/javascript">
function juen(id)
{
id=document.getElementById(id).value;
id=parseInt(id);
// menor que 10
if(id<=10)
{
location.href="http://www.google.com/";
// window.open('http://www.google.com/');
}
// entre 10 y 20
else if(id>10 && id<=20) // entre 11 y 20
{
location.href="http://www.forosdelweb.com/";
// window.open('http://www.forosdelweb.com/');
}
else // todas las demas
{
location.href="http://www.programame.net/";
// window.open('http://www.programame.net/');
}
}
</script>
</head>
<body>
<input type="text" id="valor" />
<input type="button" value="go" onclick="juen('valor')" />
</body>
</html>
si quieres que te habra en otra ventana pon el location en comentario y quita las barras del window.open
;)
espero que te sirva.