
 $(document).ready(function(){
							
	  /* $("#mainPageLink").click(function(event){
	  	 alert("Thanks for visiting!");
	 	});*/
	  
	  //hover on TR'S
	  $(".trHover").hover(
		  function () {
			$(this).addClass("hoverTR");
		  },
		  function () {
			$(this).removeClass("hoverTR");
		  }
		);
	  
	  // hover on TD'S
	  $(".tdHover").hover(
		  function () {
			$(this).addClass("hoverTD");
		  },
		  function () {
			$(this).removeClass("hoverTD");
		  }
		);
	  
	  //
	  
 });

function selectAll(){
	document.listForm.deleteAll.value=1;
	$('input[@type=checkbox]').attr('checked', 'checked');
	
}

function selectNone(){
	document.listForm.deleteAll.value=0;
	$('input[@type=checkbox]').removeAttr('checked');	
}

function singleDelConfirm (id){
	var id = id;
	var ans = confirm("Are you sure, you want to delete this item?");

	if(ans){
		 window.location = "http://parkmeadowsrestaurants.com/admin/index.php?act=del&id="+id;
	}else {
		 window.location = "http://parkmeadowsrestaurants.com/admin/index.php?act=delNot";
	}
}


function anotherUpload(){
	var two = document.getElementById("two");
	var three = document.getElementById("three");
	
	two.style.display ="inline";
	three.style.display ="inline";
}

function placeValOnCval (x){
	var cval = document.listForm.cval.value=1;
	var delConfirm = document.getElementById("delConfirm").value;
}

function multiDelConfirm() {
	var cVal = document.getElementById("cval").value;
	var cAll = document.getElementById("deleteAll").value;
	
	if(cVal || cAll){
		var answer = confirm("Are you sure, you want to delete these items?");
		if (answer){
			document.listForm.delConfirm.value=1;
		}else{ window.location = "http://parkmeadowsrestaurants.com/admin/index.php";}
	}
}

function placeValOnSitem(i,n){
	var si = i;
	var subject = n;
	document.searchForm.sItem.value = si;
	document.searchForm.subject.value = subject;
}
function displayWhich(val){
//alert(val);

if(val==1){
document.getElementById('AtoN').style.display="inline";
document.getElementById('MtoZ').style.display="none";
}
if(val==2){
document.getElementById('AtoN').style.display="none";
document.getElementById('MtoZ').style.display="inline"; 
}
}




