/* Function: This Does a Javascript confirm */
function delete_confirmation(form_prefix, form_name_id, item_name) {
    var answer = confirm('Are you sure you want to delete this ' + item_name + '?')
    if (answer){
       if( deleted_form = document.getElementById(form_prefix + form_name_id) ) {
       		deleted_form.submit();
       }
    }
}

function confirmation(url, message){
	var answer = confirm(message)
	if (answer){
		window.location = url;
	}
}