﻿// Auther Michael Barnard
// Company Acrobat Technology



function del_alert(){
    var x = confirm("Are you sure you want to delete this record.");
    if (x){
    return true;
    }
    else{
    alert("Delete canceled.");
    return false;
    }
}

function show_progress(){

    var x;
    var vis = "visible";
    if(!document.all && document.getElementById){
        document.getElementById("progress1").style.visibility = vis;
    }
    if(document.all){
        x = document.all["progress1"];
        x.style.visibility = vis;
    }
    return true;
}

function accept_alert(){
    var x = confirm("Do you want to activate this advert and email the client access details.");
    if (x){
    
    return show_progress();
    }
    else{
    alert("Update canceled.");
    return false;
    }
}

function menu_element_color(th){
    th.style.background = '#ffe479'; //#ffffff
}

function menu_element_uncolor(th){
    th.style.background = '#ffcc00'; //#efefef ffccoo light = ffe479
}

function show_menu(vis){
    var x;
    if(!document.all && document.getElementById){
        document.getElementById("Accmenu1_acmenu").style.visibility = vis;
    }
    
    if(document.all){
        x = document.all["Accmenu1_acmenu"];
        x.style.visibility = vis;
    }
    if(document.layers){
        alert("nn 4")
    }
}





