<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script language="javascript" type="text/javascript" src="alfa_digits.js"></script>
<script language="javascript" type="text/javascript">
var obj = new alfa_digits();
</script>
<title>Alfa and digit</title>
</head>
<body>
<p>only 5 digits without decimals:
<input type="text" name="digit1" id="digit1" onkeypress="return obj.digitsOnly(event,5,'decNo',this.id)" />
</p>
<p>only 5 digits with decimals:
<input type="text" name="digit2" id="digit2" onkeypress="return obj.digitsOnly(event,5,'decYes',this.id)" />
</p>
<p>only 10 alfa with @ ^ * as exception:
<input type="text" name="digit3" id="digit3" onkeypress="return obj.alfaOnly(event,10,'@^*',this.id)" />
</p>
</body>
</html>
|