Call a javascript function from actionscript

I need to call the PopModal function within actionscript. Just wondering how I would do that?

<script src="/include/js/autopop.js" type="text/javascript"></script>
    <script type="text/javascript">      
        function PopModal() {
            popit('/FlashModal.aspx');
            
        }
    </script>