John,
Thanks, that works a treat. I am now trying to put the cursor back in the box after I have cleared the the text after an incorrect user input. The text clears ok using 'crmForm.all.new_minbidvalue.datavalue = ""' =but the cursor moves onto the next box. Even if I add the code:
crmForm.all.new_minbidvalue.SetFocus
It still wont put the cursor back in the new_minbidvalue text box. Do you know another way? What I want to do is force the user to enter the correct value before moving on to the next box.