Two or more dialog boxes on IE

Two or more dialog boxes on IE

I'm having a problem using two or more dialog boxes on IE.

I have 6 dialog boxes in use that will open on different links on the page. They work perfectly on Firefox, Chrome, Safari and Opera but not IE which will just open the first one but none of the remaining five.

Here is the code for the first two... Any help appreciated?

$(function() {
    // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
    $("#dialog").dialog("destroy");
   
    var designer = $("#designer");
    var time1 = $("#time1");
   
    $('a.stage5-pending')
        .click(function(event) {
            $('#designer-form').dialog('open');
            return false;
    });
   
    $('a#activity1-stage11')
        .click(function() {
            $('#activity1Time-form').dialog('open');
            return false;
    });   
  
    $("#designer-form").dialog({
        autoOpen: false,
        width: 480,
        modal: true,
        buttons: {
            'Confirm': function() {
                document.stages.addDesigner.value = designer.val();
                $('#designerInfo').append('Project assigned to ' + designer.val());
                $(this).dialog('close');
            },
            Cancel: function() {
                $(this).dialog('close');
            }
        }
    });
   
    $("#activity1Time-form").dialog({
        autoOpen: false,
        width: 480,
        modal: true,
        buttons: {
            'Confirm': function() {
                document.stages.activity1Time.value = time1.val();
                $('#time1Info').append('Time on activity: ' + time1.val() + ' hours');
                $(this).dialog('close');
            },
            Cancel: function() {
                $(this).dialog('close');
            }
        }
    });      

});