// this is for opening pop-up windows
function openWindow (earl,name,widgets) {
  var url = earl;
  popupWin = window.open (url,name,widgets);
  popupWin.opener.top.name="opener";
  popupWin.focus();
}

// Function for confirming form action (delete), updating default __act (action field)
//   with passed value.  Display custom message
function ConfirmDelete(thisForm, thisValue, thisMsg) {
  if (!confirm("\n!! Warning !! \n\n"+thisMsg+"\n\n")) return false
  else {
    //OK - Update form field __act with passed value (an action)
    thisForm.__act.value = thisValue;
    thisForm.submit();
  }
}

