Call JScript is fail in MFC
===

I called javascript function ( It is a function that reveal the other page ) which was defined in js file.
And it was executed without error.
Unfortunately , the function wasn't work correctly.
But it works correct when I press button on homepage
When I press button on homepage, it works correct.
I can't know what is different with this.
How can I solve this?
Need help.