var xmlHttp_csb;

function calendarSelectBooking(id_listing_room,offset,selected_date,sel,first_date,f_d)
{
if (sel!=''){
checkinDates(sel,f_d,offset)	
}
var id_accom_listing=document.booking_enquiry_form.id_accom_listing.value;

xmlHttp_csb=GetXmlHttpObject()

if (xmlHttp_csb==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="calendar_select_booking.php"
url=url+"?offset="+offset
url=url+"&id_listing_room="+id_listing_room
url=url+"&selected_date="+selected_date
url=url+"&first_date="+first_date
url=url+"&id_accom_listing="+id_accom_listing
url=url+"&sel="+sel
url=url+"&sid="+Math.random()
xmlHttp_csb.onreadystatechange=stateChanged_csb
xmlHttp_csb.open("GET",url,true)
xmlHttp_csb.send(null)
}

function stateChanged_csb()
{
if (xmlHttp_csb.readyState==4 || xmlHttp_csb.readyState=="complete")
 {
 document.getElementById("calendar_select").innerHTML=xmlHttp_csb.responseText
 }
}

