Fixed onload javascript function calls to also work with IE