Ok,
First test the value with an empty string.
The main problem is to get the textfield. In a dataview sssw attributes internal names to the elements, so it's not easy to get all the textfiels wich are in the dataview.
I think you have to generate yourself the dataview with the rowGenerateBegin or something like that. In this methode you build the HTML code of the raw and naming yourself all your textfields. After you can dynamically write your procedure wich validates the data.
To get a textfield's value on the page, try Page.textfield.value or document.forms[0].textfield.value.
Sorry for the delay of my response,
Schunel.