no not so advance just:
function LengthTextFieldValidator(location,minLength,maxLength)
{
....
if(document.helloform.ID_No)
alert(ID_NO is incorrect)
if ...
alert( ...
if ...
alert(...
}
function validate(){
LengthTextFieldValidator(document.helloform.ID_No,3,20);
LengthTextFieldValidator(document.helloform.Name,5,20);
....
}