function confirm_delete(id) {
	var answer = confirm("Really delete this Posting? This cannot be undone.");
	if (answer){
		window.location = "posting/delete/" + id;
	}	else {
		return false;
	}
}

function confirm_myDelete(id) {
	var answer = confirm("Really delete this Question? This cannot be undone.");
	if (answer){
		window.location = "/main/deleteQuestion/" + id;
	}	else {
		return false;
	}
}

<!-- These call the datepicker. Copy and paste replacing the id with the correct one from the id field on the input tag -->
$(function() {
	$("#startDate").datepicker();
});

$(function() {
	$("#endDate").datepicker();
});

$(function() {
	$("#dateposted").datepicker();
});
