function ValidTxt(txt) { //alert(txt.value); var reg = new RegExp("[A-Z][0-9]{19}[F]"); if(txt.value != '') { if(!reg.test(txt.value) || txt.value.length != 20) { alert('Not in correct format.'); txt.focus(); return false; } } return true; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)