﻿function confirmDeleteArtist(artist)
{
    var con = confirm("Are you sure you wish to delete this artist?");
    if (con)
    {
        document.location.href = "DeleteArtist.aspx?" + artist;
    }
    else
    {
    }
}

function confirmDeletePic(pic)
{
    var artist = document.location.href.substring(document.location.href.indexOf("?") + 1, document.location.href.length);
    if (artist.indexOf("#") > -1)
    {
        artist = document.location.href.substring(document.location.href.indexOf("?") + 1, document.location.href.length - 1);
    }
    else
    {
    }
    var con = confirm("Are you sure you wish to delete this pic?");
    if (con)
    {
        document.location.href = "DeletePic.aspx?Artist=" + artist + "&Pic=" + pic;
    }
    else
    {
    }
}

function confirmDeleteNewsItem(item)
{
    var con = confirm("Are you sure you wish to delete this news item?");
    if (con)
    {
        document.location.href = "DeleteNewsItem.aspx?" + item;
    }
    else
    {
    }
}

function confirmDeleteLiveDate(date)
{
    var artist = document.location.href.substring(document.location.href.indexOf("?") + 1, document.location.href.length);
    if (artist.indexOf("#") > -1)
    {
        artist = document.location.href.substring(document.location.href.indexOf("?") + 1, document.location.href.length - 1);
    }
    else
    {
    }
    var con = confirm("Are you sure you wish to delete this live date?");
    if (con)
    {
        document.location.href = "DeleteDate.aspx?Artist=" + artist + "&Date=" + date;
    }
    else
    {
    }
}