Spry

Specify minimum and maximum values

This option is only available for the "integer", "date", "time", "currency", and "real" validation types.

 To specify minimum or maximum values in the text field, add the minValue property or maxValue property (or both) and a value to the constructor, as follows:
<script type="text/javascript">
	var tf1 = new Spry.Widget.ValidationTextField("textfieldwidget1", "validation_type", {minValue:value, maxValue:value});
</script>