removed  embedded javascript function.