function confirmation() {
	var confirmable = document.getElementsByClassName('confirm');
	var nodes = $A(confirmable);
	nodes.each(
		function(node) 
		{
			var url = node.href;
			node.href = '#';
			node.onclick = function(){
				var Answer = confirm("Are you sure you want to delete?");
				if (Answer){
				location.href = url;
				}
			};
		}
	);
}

window.onload = confirmation;