Mine
public text v1 · immutable<script language="JavaScript">
function checkid(idvalue)
{
var chkfield = /[0-9]/;
if (idvalue.length != 10 )
{
var field = document.forms[0].memid;
if (field.value.search(chkfield) == -1)
{
field.value = "";
field.focus(); /*used just incase the user hits a key to unfocus the textfield*/
}
}
}
</script>