﻿// 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";
    }
}

// ------------------------------------------------------------------------------
//  Initialises the light box gallery
// ------------------------------------------------------------------------------
$(function() {
	$('a[rel*=lightboxGallery]').lightBox(); // Select all links that contains lightbox in the attribute rel
});
