// If booking page do not clear cookie like this 
if (rsegment1 != "booking" && 
	rsegment1 != "hotel_search_result" &&
	rsegment1 != "hotel" 	
	)
{
	$.cookie('ck_checkin_search', null, {path:'/'}); 
	$.cookie('ck_checkout_search', null, {path:'/'}); 
	
}
	$.cookie('ck_country_search', null, {path:'/'});
	$.cookie('ck_city_search', null, {path:'/'}); 
	$.cookie('ck_area_search', null, {path:'/'}); 
	$.cookie('ck_hotel_search', null, {path:'/'}); 

	if (country_search_id)
	{
		$.cookie('ck_country_search', parseInt(country_search_id), {path:'/'}); 
	}
	if (city_search_id)
	{
		$.cookie('ck_city_search', parseInt(city_search_id), {path: '/'}); 
	}
	if (area_search_id) 
	{
		$.cookie('ck_area_search', parseInt(area_search_id), {path:'/'}); 
	}
	if (hotel_search_id)
	{
		$.cookie('ck_hotel_search', hotel_search_id, {path: '/'}); 
	}

if (rsegment1 == "hotel_search_result" || rsegment1 == "hotel")
{
	// Access first time !! set cookie default 
	if ( $.cookie('ck_checkin_search') == null  && $.cookie('ck_checkout_search') == null ) 
	{
		var time = new Date();
		var month= time.getMonth() + 1; 
		var day=time.getDate();
		var year=time.getYear();
		if (day < 10) 
			day = '0' + day; 
		if (month < 10) 
			month = '0' + month; 
		if (year < 2000)
			year = year + 1900;
			
		var default_checkin = day + '/' + month + '/' + year; 

		// Default checkin is TODAY 
		// Default checkout is TOMORROW 
		default_checkout = get_date_after(default_checkin, 1); 
			
		// Set Default Cookie into Search Form 
		$.cookie('ck_checkin_search', default_checkin, {path: '/'}); 
		$.cookie('ck_checkout_search', default_checkout, {path: '/'}); 
	}
	
}
