';
try { req = new ActiveXObject("Msxml2.XMLHTTP"); }
catch (e) {
try { req = new ActiveXObject("Microsoft.XMLHTTP"); }
catch (e2) {
try { req = new XMLHttpRequest(); }
catch (e3) { return false; }
}
}
req.onreadystatechange = xmlRespond; req.open('GET', '/bookingData.php?hostelID='+hostelID+bookingValues, true); req.send(null);
return true;
}
function availText(name,prefix,data) {
var text = '
';
if(data.freeBooking==1) freeText = ' FREE BOOKING - No Booking Fee!'; else freeText = ''; // ' Lowest Prices Guaranteed.';
if(data.availRating>0) {
text += '';
if(data.availRating<1)
text += 'Limited Availability for '+name+'. See Availability Details >>';
else
text += 'Yes, '+name+' Available!'+freeText+' Reserve It Now >>';
text += '';
}
else {
text += ''+name+' not available for these dates. Try a Search for '+name+' in all of '+city+'.';
}
text += '