<script language="javascript" type="text/javascript">
<!--
function InputVerify(iInput)
{
if((iInput>47)&&(iInput<58))
{
return true;
}
return false;
}
function txt_onkeypressed()
{
if(!InputVerify(event.keyCode))
{
event.keyCode = 0;
}
}
// -->
</script>
txt.Attributes["onkeypress"] = "javascript:txt_onkeypressed()";