function openeventlightbox(id, event, date, month, year, month_name, events)
{
	$('#fade-event').show();
	$('#'+id).show();
	var span=document.getElementById("el-date");
	span.innerHTML=date+' '+month_name+' '+year;
	$('#event-light').html("<img src='../www.bindassjiyo.com/images/event-loading-img.gif' />");
	var postdata="date="+date+"&month="+month+"&year="+year+"&monthname="+month_name+"&events="+events;
	$.ajax({type: "POST", url: "/ajax/getEvent.php", data: postdata, success: function(msg){var id ='#event-light';	$(id).html(msg);}});
}

function openbookinglightbox(id, date, month, year, slot_ids, month_name)
{
	$('#fade-event').show();
	$('#'+id).show();
	var span=document.getElementById("el-date");
	span.innerHTML=date+' '+month_name+' '+year;
	$('#event-light').html("<img src='../www.bindassjiyo.com/images/event-loading-img.gif' />");
	var postdata="date="+date+"&month="+month+"&year="+year+"&slots="+slot_ids;
	$.ajax({type: "POST", url: "/ajax/getBooking.php", data: postdata, success: function(msg){var id ='#event-light';$(id).html(msg);}});
}

function closeeventlightbox(id)
{
	$('#'+id).hide();
	$('#fade-event').hide();
}

function showPrevious(month)
{
	$.ajax({type: "POST", url: "/ajax/showCal.php",	data: "month="+month+"&type=previous",	success: function(msg){	var id ='#change-cal';	$(id).html(msg);}});
}

function showNext(month)
{
	$.ajax({type: "POST", url: "/ajax/showCal.php",	data: "month="+month+"&type=next",	success: function(msg){	var id ='#change-cal';	$(id).html(msg);}});
}

function previousMonthBooking(month)
{
	$.ajax({type: "POST", url: "/ajax/showBooking.php",	data: "month="+month+"&type=previous",	success: function(msg){	var id ='#change-cal';	$(id).html(msg);}});
}

function NextMonthBooking(month)
{
	$.ajax({type: "POST", url: "/ajax/showBooking.php",	data: "month="+month+"&type=next",	success: function(msg){	var id ='#change-cal';	$(id).html(msg);}});
}

