Creating multiple popups with this code
<p>I am trying to learn jQuery  and popups. I find out this code through Google it works nicely. 
The thing is, this design only allows to create one popup via this javascript. I saw author wrote;</p>

<p><a href="http://yensdesign.com/tutorials/popupjquery/popup.js" rel="nofollow">code</a></p>

<p><em>If you want to create multiple popups without create one division for each popup you need to create a javascript object, then you will be able to create multiple instances of the popup object.</em></p>

<p>Update : Below is the code i am using right now. I tried your way but still no joy. Now i can not create and popups with the way i understand from your post.
I take it back to as its below and still have the problem. Appriciate for helping me. I dont understand is it this hard to do thing.</p>

<pre><code>/***************************/
//@Author: Adrian "yEnS" Mato Gondelle
//@website: www.yensdesign.com
//@email: yensamg@gmail.com
//@license: Feel free to use it, but keep this credits please!                  
/***************************/


var popupStatus = 0;

function loadPopup()
{
    if(popupStatus == 0)
    {
        $("#backgroundPopup").css({
            "opacity": "0.09"
        });

        $("#backgroundPopup").fadeIn("slow");
        $("#myPopup").fadeIn("slow");
        popupStatus = 1;
    }
}

function disablePopup()
{
    if(popupStatus == 1)
    {
        $("#backgroundPopup").fadeOut("slow");
        $("#myPopup").fadeOut("slow");
        popupStatus = 0;
    }
}

//centering popup
function centerPopup()
{
    //request data for centering
    var windowWidth = document.documentElement.clientWidth;
    var windowHeight = document.documentElement.clientHeight;
    var popupHeight = $("#myPopup").height();
    var popupWidth = $("#myPopup").width();

    $("#myPopup").css({
        "position": "absolute",
        "top": windowHeight / 2 - popupHeight / 2,
        "left": windowWidth / 2 - popupWidth / 2
    });

    $("#backgroundPopup").css({
        "height": windowHeight
    });
}

$(document).ready(function(){

    $("#displaypopup").click(function(){
        //centering with css
        centerPopup();
        //load popup
        loadPopup();
    });

    //CLOSING POPUP
    //Click the x event!
    $("#popupClose").click(function(){
        disablePopup();
    });
    //Click out event!
    $("#backgroundPopup").click(function(){
        disablePopup();
    });
    //Press Escape event!
    $(document).keypress(function(e){
        if(e.keyCode == 27 &amp;&amp; popupStatus == 1){
            disablePopup();
        }
    });

});
</code></pre>
