function confirmation(check, url) {
			if(check == 'cancel'){
			  var answer = confirm("Are you sure you wish to cancel?\nPlease note: All changes will be lost!")
			} 
			if(check == 'delete_image'){
			  var answer = confirm("Are you sure you wish to delete this image?\n\n Please note: All other changes to this page will be lost. Please save your changes before deleting this image.")
			}        	
			if(answer == true){            	
				window.location = url;
			}else{
				return false;
			}
			 
		}
