function confirmDelete( inRecOnPage, inMasterArraySize )
{
  var lRecNum   = 0;
  var lCheckBoxObjId;
  var lSelectcheckBoxNum = 0;

  for(lRecNum=1; lRecNum<=(inRecOnPage); lRecNum++)
  {
    lCheckBoxObjId = document.getElementById("select_checkbox"+lRecNum);
    if ( lCheckBoxObjId.checked )
    {
      lSelectcheckBoxNum = lSelectcheckBoxNum + 1; 
    }
  }
  if ( lSelectcheckBoxNum == inMasterArraySize )
  {
    window.event.returnValue=false;
    //if ( jConfirm('Are you sure?', 'Sunvision Alert Says', function(r) { jAlert('Confirmed: ' + r, 'Confirmation Results'); }) )
    if ( jConfirm('Are you sure?', 'Sunvision Alert Says', function(r) { return r; }) )
    //if ( jConfirm("Are you sure.", 'Sunvision Alert Says') )
    {
      window.event.returnValue=true;
    }
    else
    {
      var lBrowserName = getBrowserName();
      if ( lBrowserName == 'Microsoft Internet Explorer' )
        window.event.returnValue=false;
      else
      if ( lBrowserName == 'Netscape' )
      {
        evt.preventDefault();
        evt.stopPropagation();
      }
    }
  }
}



function confirmBeforeDelete(evt, lString, inRecOnPage)
{
  var lRecNum   = 0;
  var lCheckBoxObj;
  var lRadioButtonObj;
  var lSelectFlag = 0;

  for(lRecNum=0; lRecNum < (inRecOnPage); lRecNum++)
  {
    lCheckBoxObj       = document.getElementById("select_checkbox"+lRecNum);
    lRadioButtonObj    = document.getElementById("select_radio"+lRecNum);

    if ( lCheckBoxObj != null && lCheckBoxObj.checked )
    {
      lSelectFlag = 1;
      break;
    }
   
    if ( lRadioButtonObj != null && lRadioButtonObj.checked )
    {
      lSelectFlag = 1;
      break;
    }
  }


  if ( lSelectFlag )
  {
    var lCheckStatus = confirm(lString,'Sunvision Alert Says');
    //var lCheckStatus = jConfirm(lString, 'Sunvision Alert Says', function(r) { return r; });
    if ( lCheckStatus == true);
    else
    {
      var lBrowserName = getBrowserName();
      if ( lBrowserName == 'Microsoft Internet Explorer' )
        window.event.returnValue=false;
      else
      if ( lBrowserName == 'Netscape' )
      {
        evt.preventDefault();
        evt.stopPropagation();
      }
    }
  }
}



function confirmation( evt, lString )
{
  //var lConfirmStatus = jConfirm(lString,'Sunvision Alert Says' );
  var lConfirmStatus = confirm(lString);
  if ( lConfirmStatus == true);
  else
  {
    var lBrowserName = getBrowserName();
    if ( lBrowserName == 'Microsoft Internet Explorer' )
      window.event.returnValue=false;
    else
    if ( lBrowserName == 'Netscape' )
    {
      evt.preventDefault();
      evt.stopPropagation();
    }
  }
}

