function addCookieArcResAccommodation(arcResID){
	var strFullURL = 'http://barbados.org/addcookie.htm?myHotel='+arcResID;
	xmlOpen('GET',strFullURL,'', cookieResponseHandler);			
}

function cookieResponseHandler(){
	// Make sure the request is loaded (readyState = 4)
     if (req.readyState == 4)
     {
         // Make sure the status is "OK"
         if (req.status == 200)
         {
		 	// alert(req.responseXML);		 	
		 	var ajaxresponse = req.responseXML.getElementsByTagName('returnMessage');
		 	if (ajaxresponse.item(0).firstChild.nodeValue == 'Success')
		 		var swappableSection = document.getElementById('MyHotelsContainer');
		 		str = 'Added to MyHotels';
		 		swappableSection.innerHTML = str;
         }
         else
         {
             alert("There was a problem retrieving the XML data:\n" +
                     req.statusText);
         }
     }	
}

