added try{} around header.replaceData which doesn't exists in IE5.5, better scope header variable, Robert Avilov re-wrote form handler (thanks).