Facebok FBJS problem - Show content after 5 sec
I have this javascript code and I want to convert it in FBJS, but I don't know how.

    <html>
    <head>
    <script type="text/javascript">
    function timeMsg()
    {
    var t=setTimeout("alertMsg()",5000);
    }
    function alertMsg()
    {
    document.write("<p>some text</p>");
    }
    </script>
    
    </head>
    
    <body>
    
    
    <a href="http://www.mywebsite.com" onclick="timeMsg()">Click</a>

    </body>
    </html>

Can someone help me? 
Facebok FBJS problem - Show content after 5 sec
===

I have this javascript code and I want to convert it in FBJS, but I don't know how.

    <html>
    <head>
    <script type="text/javascript">
    function timeMsg()
    {
    var t=setTimeout("alertMsg()",5000);
    }
    function alertMsg()
    {
    document.write("<p>some text</p>");
    }
    </script>
    
    </head>
    
    <body>
    
    
    <a href="http://www.mywebsite.com" onclick="timeMsg()">Click</a>

    </body>
    </html>

Can someone help me? 