Hi, this might sound a stupid question, but still: I am writing validation which includes check for a blank field ( it shoudl not be allowed). If ( document.frmTraining.txtTrainingDate.value="") check does not really help, because if users enter blank spaces, this would not be treated as no value. For some reason if(document.frmTraining.txtTrainingDate.length==0) check does not work. Is there any other way to check for lenght of the field ==0. In VB Script I would write if Len(trim(TheForm.txtTrainingDate.Value))=0 then, but this would not work for NEtacape , of course. Any help is appreciated.