/*function openModal(text, top, left, width, height)
{
   if(left == 'center')
   {
     left = (document.getElementsByTagName('html')[0].clientWidth - width)/2;
   }
   w = new UI.Window({theme:  "mac_os_x", script: true, shadow: true, top: top, left: left, zIndex: 1000, width: width, height: height});
   top += 20;
   left += 20;
   w.setContent(text);
   w.show(true).focus();
   w.observe("hidden", function() {top -= 20; left -= 20})
} */

function openModal(text, top, left, modalWidth, modalHeight)
{
  new UI.Window({
    theme:  "mac_os_x",
    shadow: true,
    lastZIndex: 1000,
    width:  modalWidth,
    height: modalHeight
  })
  .setContent(text)
  .show(true)
  .center();

  return false;
}
