a1=NaN[/quote]
You should have used two equals signs to test rather than to assign:
[code]a1 [!]==[/!] NaN[/quote]
Hope this helps,
Dan
[url=http://www.coedit.co.uk/][COLOR=#00486F]Coedit Limited[/color][/url][COLOR=#000000] - Delivering standards compliant, accessible web solutions[/color]
[tt]Dan's Page [blue]@[/blue] Code Couch
[URL unfurl="true"]http://www.codecouch.com/dan/[/URL][/tt]