
function rusure(URLtoOpen){
var msg = "Are you sure?";
        question = confirm(msg)
        if (question !="0"){
location.replace(URLtoOpen);

        }
}



//------------------------------------ Buttons Stuff --->

// buttons (down state)
copy_with_words_down = new Image()
view_with_words_down = new Image()
edit_with_words_down = new Image()
delete_with_words_down = new Image()
Active_with_words_down = new Image()
InActive_with_words_down = new Image()
notes_no_notes_down = new Image()

// buttons (up state)
copy_with_words_up = new Image()
view_with_words_up = new Image()
edit_with_words_up = new Image()
delete_with_words_up = new Image()
Active_with_words_up = new Image()
InActive_with_words_up = new Image()
notes_no_notes_up = new Image()

// src for buttons (down state)
view_with_words_down.src = "images/view_with_words_on.gif"
copy_with_words_down.src = "images/copy_with_words_on.gif"
edit_with_words_down.src = "images/edit_with_words_on.gif"
delete_with_words_down.src = "images/delete_with_words_on.gif"
Active_with_words_down.src = "images/Active_with_words_on.jpg"
InActive_with_words_down.src = "images/InActive_with_words_on.jpg"
notes_no_notes_down.src = "images/notes_no_notes_on.gif"

// src for buttons (up state)
view_with_words_up.src = "images/view_with_words.gif"
copy_with_words_up.src = "images/copy_with_words.gif"
edit_with_words_up.src = "images/edit_with_words.gif"
delete_with_words_up.src = "images/delete_with_words.gif"
Active_with_words_up.src = "images/Active_with_words.jpg"
InActive_with_words_up.src = "images/InActive_with_words.jpg"
notes_no_notes_up.src = "images/notes_no_notes.gif"

function swapImage(ImageTarget, ImageState) {
        ImageTarget.src = ImageState.src
}




