Hi danielson,

Welcome to the forum

I think this is what you required :

HTML Code:
<head>
<script language="JavaScript">
	function onlyNumbers()
	{
		valid=true;
		var Numbers = '0123456789';
		var Field1 = document.form1.number.value;

		if (Field1 == "")
		{
			alert ( "Please enter a number.." );
			valid = false;
		}
		for (i=0; i < Field1.length; i++)
		{
			if (Numbers.indexOf(Field1.charAt(i),0) == -1)
			{
				alert ( "Numbers only !!" );
				valid = false;
				break;
			}
		}
		if (valid)
		{
			document.location = "http://server/page/Main.htm?ServerFilter=\"PRNumber=" + Field1 + "\"";
		}
	}
</script>
</head>
<body>
<form name="form1">
<br><br>
<center><b>Number:&nbsp;  
<input type="text" name="number">
</b></center>
<br><br><br>
<center>
<input type="button" name="Submit" value="Submit" onclick="onlyNumbers();"> &nbsp;&nbsp;&nbsp;&nbsp; 
<input type="reset" name="Reset" value="Reset"></center>
</body>
This is an example page, which shows a textbox into which the user enters a number and is redirected to the required page on clicking submit.

Last edited by SaswatPadhi; 30Jun2009 at 08:28..