in reply to (OT) javascript function not running when called from function with arguments
Where is the Perl in your question?