﻿
// JScript File

function confirmSystemTest() {
  return confirmation('Are you sure you wish to request a System Test now?');
};

function confirmInfoRequest() {
  return confirmation('Are you sure you wish to send an Information Update request now?');
};

function confirmStopInfoRequest() {
  return confirmation('Are you sure you wish to stop further Multiple Information updates now?');
};

function confirmLiveTracking() {
  return confirmation('Are you sure you wish to send a Live Tracking request now?');
};
function confirmAirtimeTopup() {
  return confirmation('Are you sure you wish to send an Airtime Topup voucher now?');
};

function confirmTransferTrips() {
  return confirmation('Are you sure you wish to send a Trip Transfer request now?');
};

function confirmUpdateEvents() {
  return confirmation('Are you sure you wish to send these Event Settings to the unit now?');
};

function confirmSetOdometer() {
  return confirmation('Are you sure you wish to set the Odometer of the unit now?');
};

function confirmSetUnitAccessPassword() {
  return confirmation('Are you sure you wish to set the Unit Access Password now?');
};

function confirmLearnNewRemote() {
  return confirmation('Are you sure you wish to pair a new remote with the unit now?');
};

function confirmEraseAllRemotes() {
  return confirmation('Are you sure you wish to unpair all remote control units from the unit now?');
};

function confirmEraseLoggedTripData() {
  return confirmation('Are you sure you wish to clear the unit memory now?');
};

function confirmDeleteGuestUser() {
  return confirmation('Are you sure you wish to delete this user now?');
};

function confirmSimulateAirtimeTransfer() {
  return confirmation('Are you sure you wish to simulate this airtime transfer?');
};

function confirmIssueCredits() {
  return confirmation('Are you sure you wish to issue credits to this vehicle?');
};

function confirmUpdateUser() {
  return confirmation('Are you sure you wish to update this user?');
};

function confirmFirmwareDowloadRequest() {
  return confirmation('Are you sure you wish to upgrade this unit to the latest version of firmware?');
};

function confirmVoicePromptsDowloadRequest() {
  return confirmation('Are you sure you wish to upgrade this unit to use the latest voice prompts?');
};

function confirmSettingsDowloadRequest() {
  return confirmation('Are you sure you wish to resend the latest settings to this unit?');
};

function confirmSendSettingsResetCommand() {
  return confirmation('Are you sure you wish to send a unit settings request to this unit?');
};

function confirmDeleteScheduledTask() {
  return confirmation('Are you sure you wish to delete the scheduled task now?');
};

function confirmDeleteAsset() {
  return confirmation('Are you sure you wish to delete this vehicle now?');
};

function confirmStartPosting() {
  return confirmation('Are you sure you wish to send a "Start Posting" command to this vehicle now?');
};

function confirmStopPosting() {
  return confirmation('Are you sure you wish to send a "Stop Posting" command to this vehicle now?');
};

function confirmation(message) {
  if (!confirm(message)) {
    return false;
  }
};






