fnShowDialog function is modified

fnShowDialog function is modified