kaht,
Thanks for the smart comments. Unfortunately you have missed the point. I can write a simple script to get a value nd check it, as you have, but what I want to know is how to get the text from the CRM text box; this is more a CRM question than generic java script.