/* MAYO AVIATION Admin
   Delete confirmation JS
   Copr. 2008 */


$(document).ready(function(){

	if ($("body").attr("id") == "quote") {
		
		var ValidationPresent = false;
		
		$("#date").datepicker({ minDate: 0 });
		
		$("#quote-form").bind('submit',function(){
			if (!ValidationPresent || HomePageFormCheck()) return true;
			else return false;
		});
		
	} else {

		$("#photos a").bind('click',function(){
			if (confirm("Are you sure you want to delete this image?")) return true;
			else return false;
		});

		$("#adminnews a.delete").bind('click',function(){
			if (confirm("Are you sure you want to delete this article?")) return true;
			else return false;
		});

		$("#adminjobs a.delete").bind('click',function(){
			if (confirm("Are you sure you want to delete this job posting?")) return true;
			else return false;
		});
		
		$("#subdelete").bind('click',function(){
			if (confirm("Are you sure you want to delete this plane?")) return true;
			else return false;
		});
	
	}

});