well I think I just figured how to achieve it, problem was that to obtain the value the way I was doing it, it would only work in either one of the browsers
here it would only work in FF
var thevalue=event.target.value || event.srcElement.value;
and here only in IE
var thevalue=event.srcElement.value || event.target.value;
what I did was, since I had already stored the field with
var thefield=event.target || event.srcElement;
then I just did
which worked beautifully!!!
Thanks for your help again!!!