>My $.03... I would:
>1- declare c and loIFrame as var otherwise JavaScript adds them as properties to the Global Object,
>2- make sure iframe exist, just in case ...,
>3- use a frameWork such as jQuery or Prototype (my favorite) to be sure code is cross-browser...
Point 1 is good. Thanks
Point 2 is within a close environment and it will already exist. This is a special script that is only executed at one place. If it would be made to be generic, I would do as you suggest.
Point 3 cannot apply here as I am not using it.
But, I would still be interested on how to simplify line 2.