﻿// The confirmation funtion
function ConfirmDelete(element)
{
    // Get the elete confirmation hidden field
    var hiddenField = document.getElementById(element);
        
    if(confirm("Please confirm the delete."))
    {
        // Set the value to 1
        hiddenField.value = "1";
    }
    else
    {
        // Make sure that the value is set to 0
        hiddenField.value = "0";
    }
}