function ConfirmClick(aForm, aTitle, aMessage, aWidth, aHeight, aConfirmAction, aCancelAction)
{
   Result = ShowDialog(aForm, aTitle, aMessage, aWidth, aHeight);

   if (Result == 'btnOK')
   {
      eval(aConfirmAction);
      return true;
   }
   else if (Result == 'btnCancel')
   {
      eval(aCancelAction);
      return false;
   }
   else
      return false;

}

function ShowDialog(aForm, aTitle, aMessage, aWidth, aHeight)
{
   tmpResult=window.showModalDialog(aForm, null, "dialogWidth:"+aWidth+"px;dialogHeight:"+aHeight+"px;center:1;scroll:0;help:0;status:0");
   return tmpResult;
}

function DoIt()
{
   alert('OK');
}