//Functions for the confirmation box

function confirmBlogPostDelete(postID) {
	var answer = confirm("Are you sure you want to delete this blog post and all associated comments? This action cannot be undone.")
	if (answer){
		window.location = "index.php?page=blog-post-delete&pID=" + postID;
	}
	else{
	}
}

function confirmJobPostDelete(jobID) {
	var answer = confirm("Are you sure you want to delete this job post? This action cannot be undone.")
	if (answer){
		window.location = "index.php?page=job-delete&jID=" + jobID;
	}
	else{
	}
}

function confirmBlogAttachDelete(fileID, postID) {
	var answer = confirm("Are you sure you want to delete this file attachment? This action cannot be undone.")
	if (answer){
		window.location = "index.php?page=blog-attach-delete&fileID=" + fileID + "&pID=" + postID;
	}
	else{
	}
}

function confirmCFPDelete(cfpID) {
	var answer = confirm("Are you sure you want to delete this CFP? This action cannot be undone.")
	if (answer){
		window.location = "index.php?page=cfp-delete&cfpID=" + cfpID;
	}
	else{
	}
}

function confirmRFPDelete(rfpID) {
	var answer = confirm("Are you sure you want to delete this RFP? This action cannot be undone.")
	if (answer){
		window.location = "index.php?page=rfp-delete&rfpID=" + rfpID;
	}
	else{
	}
}

function confirmRFQDelete(rfqID) {
	var answer = confirm("Are you sure you want to delete this RFQ? This action cannot be undone.")
	if (answer){
		window.location = "index.php?page=rfq-delete&rfqID=" + rfqID;
	}
	else{
	}
}
