// JavaScript Document
function delUser(vUser,idRef){
	var delItem = confirm("Are you sure you wish to delete " + vUser + "?");
	
	if (delItem){
		window.location = "adminDelU.php?id="+idRef;
	}
}

function delImg(idRef){
	var delItem = confirm("Are you sure you want to remove this image?");
	
	if (delItem){
		window.location = "adminDelImg.php?id="+idRef;
	}
}

function delEvent(idRef){
	var delItem = confirm("Are you sure you want to remove this Event Item?");
	
	if (delItem){
		window.location = "adminDelEvent.php?id="+idRef;
	}
}

function delOffer(idRef){
	var delItem = confirm("Are you sure you want to remove this Offer?");
	
	if (delItem){
		window.location = "adminDelOffer.php?id="+idRef;
	}
}

function imgUpload(imgType){
	
	window.open('imgUpload.php?imgType='+imgType, 
  'imgUpload', 
  'width=600, height=200, directories=no, location=no, menubar=no, resizable=no, scrollbars=1, status=no, toolbar=no'); 

}

function miniGallery(location){
	
	window.open(location, 
  'imgUpload', 
  'width=800, height=100%, directories=no, location=no, menubar=no, resizable=no, scrollbars=1, status=no, toolbar=no'); 

}


function validateForm(){
	document.getElementById('sbmtBtn').disabled = true;
	document.getElementById('sbmtBtn').value = 'Please Wait...';
	return true;
}