function displayPageletDetailPopup(url,containerId,popupTitle,popupWidth,popupHeight)

{ 

new Ajax.Request(url, {

method:'get',

onSuccess: function(transport) {

var response = transport.responseText || "no response text"; 

$(containerId).update(response);

$(containerId).style.display=''; 

},

onFailure: function(){ 

$(containerId).style.display='none';

Windows.closeAll();

}

});


var win = new Window({className: "alphacube", title: popupTitle, width:popupWidth, height:popupHeight, destroyOnClose: false, recenterAuto:false, minimizable:false, maximizable:false});

win.getContent().update($(containerId));

win.showCenter(true); 

}
