added a javascript function to wizard
modified on tenth october