function Sort(str,CityCode)
{
	document.Form1.Sort.value=str;
	document.Form1.CityCode.value = CityCode;
	
	var ContinentCode = document.Form1.ContinentCode.value;
	var RecommendType = document.Form1.RecommendType.value;
	var BedTypeCode1 = document.Form1.ddlBedTypeCode1.value;
	var CheckInDate = document.Form1.txtCheckInDate.value;
	var CheckInDateShow = document.Form1.txtCheckInDateShow.value;
	var CheckOutDate = document.Form1.txtCheckOutDate.value;
	var CheckOutDateShow = document.Form1.txtCheckOutDateShow.value;
	var Sort = document.Form1.Sort.value;
	var BookingCode = document.Form1.BookingCode.value;

	location.href = "/ASPX/Common/Loading.aspx?page="+"HotelProducts/RecommendHotelList.aspx&LoadingMsgID=RecommendHotelMsg&CityCode="+CityCode+"&RecommendType="+RecommendType+"&ContinentCode="+ContinentCode+"&BedTypeCode1="+BedTypeCode1+"&RoomCount1=1&ChildAge1=&BedTypeCode2=&RoomCount2=&ChildAge2=&BedTypeCode3=&RoomCount3=&ChildAge3=&Duration=1&CheckInDate="+CheckInDate+"&CheckInDateShow="+escape(CheckInDateShow)+"&CheckOutDate="+CheckOutDate+"&CheckOutDateShow="+escape(CheckOutDateShow)+"&ReCommendOnly=false&AvailableOnly=false&Sort="+Sort+"&BookingCode="+BookingCode;
}
/*
function ClickHotelInfomation(ItemCode,CityEname,RoomTypeName,CityCode,CheckInWeekday,CheckOutWeekday,ItemNo,RoomTypeCode,NetCurrencyCode,SellingCurrencyCode,LocalSellingPrice,NationalityCode,ClientCurrencyCode,SupplierCode,SupplierName,PriceStatus,ClientSellingPrice,BreakfastTypeName,NetConvertRate,SellingConvertRate,SupplierNetPrice,SupplierMarkupPrice,ClientCommAmount)
{
	var CheckInDateShow = document.Form1.txtCheckInDate.value + "(" + CheckInWeekday + ")";
	document.Form1.CheckInDateShow.value = escape(CheckInDateShow);
	
	var CheckOutDateShow = document.Form1.txtCheckOutDate.value + "(" + CheckOutWeekday + ")";
	document.Form1.CheckOutDateShow.value = escape(CheckOutDateShow);
	
	var BookingCode = document.Form1.BookingCode.value;
	
	alert(ItemCode);	
	if(BookingCode!="")
		document.Form1.action = "HotelInformation.aspx?ItemCode=" + ItemCode+"&BookingCode="+BookingCode+"&LoadingMsgID=HotelSearchMsg";
	else
		document.Form1.action = "HotelInformation.aspx?ItemCode=" + ItemCode+"&LoadingMsgID=HotelSearchMsg";
	
	document.Form1.BedTypeName1.value = "";
	
	var BedTypeCode2 = "";
	if(BedTypeCode2=="")
		document.Form1.BedTypeName2.value = "";
	
	var BedTypeCode3 = "";
	if(BedTypeCode3=="")
		document.Form1.BedTypeName3.value = "";	
	
	
	document.Form1.ActionType.value = "I";
	document.Form1.UserNo.value = "";
	document.Form1.SectorTypeCode.value = "SECTOR03";
	document.Form1.FileName.value = "HotelInformation.aspx";
	document.Form1.ItemCode.value = ItemCode;
	document.Form1.CityEname.value = CityEname;
	document.Form1.RoomTypeName.value = RoomTypeName;	
	document.Form1.CheckInWeekday.value = escape(CheckInWeekday);
	document.Form1.CheckOutWeekday.value = escape(CheckOutWeekday);
	
	document.Form1.ItemNo.value = ItemNo;
	document.Form1.RoomTypeCode.value = RoomTypeCode;
	document.Form1.SellingCurrencyCode.value = SellingCurrencyCode;
	document.Form1.NationalityCode.value = NationalityCode;
	document.Form1.ClientCurrencyCode.value = ClientCurrencyCode;
	document.Form1.SupplierCode.value = SupplierCode;
	document.Form1.SupplierName.value = SupplierName;
	document.Form1.LocalSellingPrice.value = LocalSellingPrice;
	document.Form1.PriceStatus.value = PriceStatus;			
	document.Form1.ClientSellingPrice.value = ClientSellingPrice;
	document.Form1.BreakfastTypeName.value = BreakfastTypeName;
	document.Form1.NetCurrencyCode.value = NetCurrencyCode;
	document.Form1.RoomTypeName.value = RoomTypeName;
	document.Form1.NetConvertRate.value = NetConvertRate;
	document.Form1.SellingConvertRate.value = SellingConvertRate;
	document.Form1.SupplierMarkupPrice.value = SupplierMarkupPrice;
	document.Form1.ClientCommAmount.value = ClientCommAmount;
	document.Form1.SupplierNetPrice.value = SupplierNetPrice;		

	document.Form1.submit();
}
*/

function ClickHotelInfomation(LanguageCode,SiteCode,ActionType,UserNo,SectorTypeCode,FileName,ItemCode,CheckInDate,CheckOutDate,CityEname,RoomTypeName,CityCode,CheckInWeekday,CheckOutWeekday,ItemNo,RoomTypeCode,NetCurrencyCode,SellingCurrencyCode,LocalSellingPrice,NationalityCode,ClientCurrencyCode,SupplierCode,SupplierName,PriceStatus,ClientSellingPrice,BreakfastTypeName,NetCurrencyCode,RoomTypeName,NetConvertRate,SellingConvertRate,SupplierNetPrice,SupplierMarkupPrice,ClientCommAmount)
{
	var CheckInDateShow = CheckInDate + "(" + CheckInWeekday + ")";
	document.Form1.CheckInDateShow.value = escape(CheckInDateShow);
	
	var CheckOutDateShow = CheckOutDate + "(" + CheckOutWeekday + ")";
	document.Form1.CheckOutDateShow.value = escape(CheckOutDateShow);
	
	var BookingCode = document.Form1.BookingCode.value;
	
	if(BookingCode!="")
		document.Form1.action = "HotelInformation.aspx?ItemCode=" + ItemCode+"&BookingCode="+BookingCode;
	else
		document.Form1.action = "HotelInformation.aspx?ItemCode=" + ItemCode;
	
	document.Form1.BedTypeName1.value = "";
	
	var BedTypeCode2 = "";
	if(BedTypeCode2=="")
		document.Form1.BedTypeName2.value = "";
	
	var BedTypeCode3 = "";
	if(BedTypeCode3=="")
		document.Form1.BedTypeName3.value = "";	
	
	
	document.Form1.ActionType.value = ActionType;
	document.Form1.UserNo.value = UserNo;
	document.Form1.SectorTypeCode.value = SectorTypeCode;
	document.Form1.FileName.value = FileName;
	document.Form1.ItemCode.value = ItemCode;
	document.Form1.CityEname.value = CityEname;
	document.Form1.RoomTypeName.value = RoomTypeName;	
	document.Form1.CheckInWeekday.value = escape(CheckInWeekday);
	document.Form1.CheckOutWeekday.value = escape(CheckOutWeekday);
	
	document.Form1.ItemNo.value = ItemNo;
	document.Form1.RoomTypeCode.value = RoomTypeCode;
	document.Form1.SellingCurrencyCode.value = SellingCurrencyCode;
	document.Form1.NationalityCode.value = NationalityCode;
	document.Form1.ClientCurrencyCode.value = ClientCurrencyCode;
	document.Form1.SupplierCode.value = SupplierCode;
	document.Form1.SupplierName.value = SupplierName;
	document.Form1.LocalSellingPrice.value = LocalSellingPrice;
	document.Form1.PriceStatus.value = PriceStatus;			
	document.Form1.ClientSellingPrice.value = ClientSellingPrice;
	document.Form1.BreakfastTypeName.value = BreakfastTypeName;
	document.Form1.NetCurrencyCode.value = NetCurrencyCode;
	document.Form1.RoomTypeName.value = RoomTypeName;
	document.Form1.NetConvertRate.value = NetConvertRate;
	document.Form1.SellingConvertRate.value = SellingConvertRate;
	document.Form1.SupplierMarkupPrice.value = SupplierMarkupPrice;
	document.Form1.ClientCommAmount.value = ClientCommAmount;
	document.Form1.SupplierNetPrice.value = SupplierNetPrice;		

	document.Form1.submit();
}

function ClickSearch()
{
	var CityCode = document.Form1.CityCode.value;
	var ContinentCode = document.Form1.ContinentCode.value;
	var RecommendType = document.Form1.RecommendType.value;
	var BedTypeCode1 = document.Form1.ddlBedTypeCode1.value;
	var CheckInDate = document.Form1.txtCheckInDate.value;
	var CheckInDateShow = document.Form1.txtCheckInDateShow.value;
	var CheckOutDate = document.Form1.txtCheckOutDate.value;
	var CheckOutDateShow = document.Form1.txtCheckOutDateShow.value;
	var Sort = document.Form1.Sort.value;
	var BookingCode = document.Form1.BookingCode.value;

	location.href = "/ASPX/Common/Loading.aspx?page="+"HotelProducts/RecommendHotelList.aspx&LoadingMsgID=HotelSearchMsg&CityCode="+CityCode+"&RecommendType="+RecommendType+"&ContinentCode="+ContinentCode+"&BedTypeCode1="+BedTypeCode1+"&RoomCount1=1&ChildAge1=&BedTypeCode2=&RoomCount2=&ChildAge2=&BedTypeCode3=&RoomCount3=&ChildAge3=&Duration=1&CheckInDate="+CheckInDate+"&CheckInDateShow="+escape(CheckInDateShow)+"&CheckOutDate="+CheckOutDate+"&CheckOutDateShow="+escape(CheckOutDateShow)+"&ReCommendOnly=false&AvailableOnly=false&Sort="+Sort+"&BookingCode="+BookingCode;
}

function ClickSearch_Main()
{
	var CityCode = document.Form1.CityCode.value;
	var ContinentCode = document.Form1.ContinentCode.value;
	var RecommendType = document.Form1.RecommendType.value;
	var BedTypeCode1 = document.Form1.ddlBedTypeCode1_picks.value;
	var CheckInDate = document.Form1.txtCheckInDate_picks.value;
	var CheckInDateShow = document.Form1.txtCheckInDateShow_picks.value;
	var CheckOutDate = document.Form1.txtCheckOutDate_picks.value;
	var CheckOutDateShow = document.Form1.txtCheckOutDateShow_picks.value;
	var Sort = document.Form1.Sort.value;
	var BookingCode = document.Form1.BookingCode.value;

	location.href = "/ASPX/Common/Loading.aspx?page="+"HotelProducts/RecommendHotelList.aspx&LoadingMsgID=HotelSearchMsg&CityCode="+CityCode+"&RecommendType="+RecommendType+"&ContinentCode="+ContinentCode+"&BedTypeCode1="+BedTypeCode1+"&RoomCount1=1&ChildAge1=&BedTypeCode2=&RoomCount2=&ChildAge2=&BedTypeCode3=&RoomCount3=&ChildAge3=&Duration=1&CheckInDate="+CheckInDate+"&CheckInDateShow="+escape(CheckInDateShow)+"&CheckOutDate="+CheckOutDate+"&CheckOutDateShow="+escape(CheckOutDateShow)+"&ReCommendOnly=false&AvailableOnly=false&Sort="+Sort+"&BookingCode="+BookingCode;
}

function rdoSearch(CityCode)
{
	document.Form1.CityCode.value = CityCode;
}


function RecommendType(Type)
{

	Recommend_All.style.display = "none";
	Recommend_Backpack.style.display = "none";
	Recommend_Airpack.style.display = "none";
	Recommend_Business.style.display = "none";
	Recommend_Fair.style.display = "none";
	Recommend_Honeymoon.style.display = "none";
	switch(Type)
	{

		case 'All' : 
			document.Form1.RecommendType.value = "All";
			Recommend_All.style.display = "block";
			document.RecommendType_All.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_All_On.gif";
			break;
		case 'Backpack' : 
			document.Form1.RecommendType.value = "Backpack";
			Recommend_Backpack.style.display = "block";
			document.RecommendType_BackPack.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_BackPack_On.gif";
			break;
		case 'Airpack' : 
			document.Form1.RecommendType.value = "Airpack";
			Recommend_Airpack.style.display = "block";
			document.RecommendType_AirPack.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_AirPack_On.gif";
			break;
		case 'Business' : 
			document.Form1.RecommendType.value = "Business";
			Recommend_Business.style.display = "block";
			document.RecommendType_Business.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_Business_On.gif";
			break;
		case 'Fair' : 
			document.Form1.RecommendType.value = "Fair";
			Recommend_Fair.style.display = "block";
			document.RecommendType_Fair.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_Fair_On.gif";
			break;
		case 'Honeymoon' : 
			document.Form1.RecommendType.value = "Honeymoon";
			Recommend_Honeymoon.style.display = "block";
			document.RecommendType_Honeymoon.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_Honeymoon_On.gif";
			break;
	}
}

function OnMouseOut(Type, ThisCode)
{

	//document.all.divOverLayer.style.visibility = "hidden";

	if(Type == "ContinentType")
	{	
		Language/KR/CABIN-03/_images/HotelProducts/R_Recomm01_On.gif
		document.Continent_tab01.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_tab01_Off.gif";
		document.Continent_tab02.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_tab02_Off.gif";
		document.Continent_tab03.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_tab03_Off.gif";
		document.Continent_tab04.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_tab04_Off.gif";
		
	
		if(rdoWE.style.display == "block")
			document.Continent_tab01.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_tab01_On.gif";
		if(rdoEE.style.display == "block")
			document.Continent_tab02.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_tab02_On.gif";
		if(rdoNE.style.display == "block")
			document.Continent_tab03.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_tab03_On.gif";
		if(rdoMS.style.display == "block")
			document.Continent_tab04.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_tab04_On.gif";

	}
	else
	{		
		document.RecommendType_All.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_All_Off.gif";
		document.RecommendType_BackPack.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_BackPack_Off.gif";
		document.RecommendType_AirPack.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_AirPack_Off.gif";
		document.RecommendType_Business.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_Business_Off.gif";
		document.RecommendType_Fair.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_Fair_Off.gif";
		document.RecommendType_Honeymoon.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_Honeymoon_Off.gif";
		

		switch(document.Form1.RecommendType.value)
		{
			case "All" :			
				document.RecommendType_All.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_All_On.gif";
				break;
			case "Backpack" :
				document.RecommendType_BackPack.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_BackPack_On.gif";
				break;
			case "Airpack" :		
				document.RecommendType_AirPack.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_AirPack_On.gif";
				break;
			case "Business" :
				document.RecommendType_Business.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_Business_On.gif";
				break;
			case "Fair" :
				document.RecommendType_Fair.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_Fair_On.gif";
				break;
			case "Honeymoon" :
				document.RecommendType_Honeymoon.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_Honeymoon_On.gif";
				break;
		}

	}
}

function OnMouseOut2(Type, ThisCode, obj)
{
	
	if(Type == "ContinentType")
	{		
		
		document.ContinentCodes_NYC.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/main/Recom_city_NYC_Off.gif";
		document.ContinentCodes_LAX.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/main/Recom_city_LAX_Off.gif";
		document.ContinentCodes_SFO.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/main/Recom_city_SFO_Off.gif";
		document.ContinentCodes_LAS.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/main/Recom_city_LAS_OFF.gif";
		document.ContinentCodes_YVR.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/main/Recom_city_YVR_Off.gif";
		
	
		if(NEWYORK.style.display == "block")
			document.ContinentCodes_NYC.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/main/Recom_city_NYC_On.gif";
		if(LOSANGELES.style.display == "block")
			document.ContinentCodes_LAX.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/main/Recom_city_LAX_On.gif";
		if(SANFRANCISCO.style.display == "block")
			document.ContinentCodes_SFO.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/main/Recom_city_SFO_On.gif";
		if(LASVEGAS.style.display == "block")
			document.ContinentCodes_LAS.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/main/Recom_city_LAS_On.gif";
		if(VANCOUVER.style.display == "block")
			document.ContinentCodes_YVR.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/main/Recom_city_YVR_On.gif";
	}
}

function getAbsLeftPostMap(obj) 
{
	return (obj.offsetParent==null)? 0:obj.offsetLeft + getAbsLeftPostMap(obj.offsetParent);
}
function getAbsTopPostMap(obj) 
{
	return (obj.offsetParent==null)? 0:obj.offsetTop + getAbsTopPostMap(obj.offsetParent);
}

function tooltip(Type)
{
	var obj = document.all.ImgToolTip;
	var left = getAbsLeftPostMap(obj) + 0;
	var top = getAbsTopPostMap(obj) + 35;

	TopTag = "<span style='background-color:#A1589D; width:100%; padding:4px; padding-bottom:1px; color:#FFFFFF; font-weight:normal'>";
	TopTag2 = "</span>";
	MainTag = "<div style='margin-top:5px; line-height:140%; color:#7D7D7D; font-weight:normal'>";
	MainTag2 = "</div>";

	switch(Type)
	{
		case "All" :	Top = "전체보기";	Main = "모든 종류의 추천 호텔을 다 보실 수 있습니다.<br> 배낭용,항공팩용, 출장용, 전시회용, 허니문용 중 원하시는 목적을 선택하시면 목적에 따라 구분된 호텔들을 검색하실 수 있습니다.";	 		break;
		case "BackPack" :	Top = "배낭용";	Main = "시내나 비교적 대중교통이용이 편리한 지역에 위치한 저렴한 호텔 중 그 급수에 비해 호텔 상태가 양호한 배낭 여행을 위한 호텔들을 말합니다.<br> 주로 2-3성급 호텔들이며, 숙박에 필요한 간단한 시설만을 제공하는 소규모 호텔들이 많습니다."; left=left+(89*1);		break;
		case "AirPack" :	Top = "항공팩용";	Main = "항공팩은 항공과 호텔이 결합된 여행상품의 하나로서 최근 자유여행을 원하는 여행패턴에 따라 점점 이용고객이 늘고 있습니다.<br> 주로 시내에 위치하고 있으며, 대중교통 및 관광지로의 이동이 용이함을 기본으로 하고 여행하시는 분들에 취향에 따라 다양한 급수의 호텔을 선택하실 수 있으므로 2성급에서 5성급까지 다양한 호텔을 추천하였습니다."; left=left+(89*2);		break;
		case "Business" :	Top = "출장용";	Main = "주로 3성급 이상의 호텔로 시내 중심 또는 경제, 정치, 금융의 중심에 위치하고 있는 호텔들을 말합니다.<br> 이용하는 손님들의 대부분이 직장인 및 출장자 들이며, 배낭용 호텔보다는 비교적 서비스나 시설 면에서 보다 우수한 호텔들이 선정되었습니다.<br> 호텔 정보에 명시가 되어있는 경우에도 객실에 따라 시설에 차이가 있을 수 있으므로, 미니바, 인터넷, 팩스 등을 꼭 이용하셔야 하는 분들이나 기타 특별 요청사항이 있으신 경우에는 콜센타에 사전에 체크를 부탁 드립니다."; left=left+(89*3);		break;
		case "Fair" :		Top = "전시회용";	Main = "위치가 각 도시의 전시회장 및 박람회장 (Exhibition Center & Convention Center) 근처나 그곳까지의 접근이 용이, 또는 호텔 자체에서 전시회를 여는 경우가 많은 호텔들이선정되었습니다.<br> 간혹 전시회장까지 셔틀버스를 운영하는 호텔들도 있으며, 급수는 1-5성급까지 다양하게 있으며, 급수 및 가격에 따라서 호텔의 차이가 많이 날 수 있습니다.<br> 특히 전시회 기간에는 요금이 급격히 상승하며, 호텔에 따라 특별 규정을 적용하는 호텔이 있을 수 있습니다."; 	left=left+(89*4);	break;		
		case "Honeymoon" :	Top = "허니문용";	Main = "해변가나 관광지 주변에 위치한 호텔로서 유럽의 경우 시내에 위치한 부틱스타일의 호텔들이 많습니다.<br> 보통 4성급 이상의 호텔들로서 손님께 안락한 시설과 서비스를 제공해 드립니다."; 	left=left+(89*4);	break;
		default : return false;	break;
	}
	
	_IH_OverLayer.innerHTML = TopTag + Top + TopTag2 +"<br>"+ MainTag + Main + MainTag2;

	document.all.divOverLayer.style.left = left;
	document.all.divOverLayer.style.top = top;
	document.all.divOverLayer.style.visibility = "visible";
}

function OnMouseOver(Type, ThisName)
{
		
	//tooltip(ThisName);
	var Typename = document.Form1.RecommendType.value;

	if(Type == "ContinentType")
	{		
		document.Continent_tab01.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/recom_tab01_Off.gif";
		document.Continent_tab02.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/recom_tab02_Off.gif";
		document.Continent_tab03.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/recom_tab03_Off.gif";
		document.Continent_tab04.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/recom_tab04_Off.gif";

		
		var Continent_Name = "document.Continent_" + ThisName;
		eval(Continent_Name).src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/recom_" + ThisName + "_On.gif";
	}
	else
	{		
		if(Typename != "All")
			document.RecommendType_All.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_All_Off.gif";
		if(Typename != "Backpack")
			document.RecommendType_BackPack.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_BackPack_Off.gif";
		if(Typename != "Airpack")
			document.RecommendType_AirPack.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_AirPack_Off.gif";
		if(Typename != "Business")
			document.RecommendType_Business.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_Business_Off.gif";
		if(Typename != "Fair")
			document.RecommendType_Fair.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_Fair_Off.gif";
		if(Typename != "Honeymoon")
			document.RecommendType_Honeymoon.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_honeymoon_Off.gif";
	
		var RecommendType_Name = "document.RecommendType_" + ThisName;
		eval(RecommendType_Name).src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_Menu_" + ThisName + "_On.gif";
	}
}

var arrUS = new Array("NYC", "LAX", "SFO", "LAS" , "YVR");
var arrEU = new Array("LON", "PAR", "ROM", "MIL" , "FRA");


function RecommMouseOut(PageCode,obj)
{	
	for(var i=0; i<5; i++)
	{
		if(PageCode == 'us')
		{
			if(document.getElementById("ContinentCodes_"+arrUS[i]).value != "1")
			{			
				document.getElementById("ContinentCodes_"+arrUS[i]).src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_"+PageCode +"_"+arrUS[i]+"_Off.gif";
			}
		}
		if(PageCode == 'eu' )
		{
			if(document.getElementById("ContinentCodes_"+arrEU[i]).value != "1")
			{			
				document.getElementById("ContinentCodes_"+arrEU[i]).src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_"+PageCode +"_"+arrEU[i]+"_Off.gif";
			}
		}
	}	
}


function RecommMouseOver(PageCode, obj)
{
	
	
	var imgName = obj.name;
	imgName=imgName.substring(15,19);
	var LoopCnt;
	
	switch(PageCode)
	{
		case "US":
			LoopCnt= arrUS.length;			
			break;

		case "EU":
			LoopCnt= arrEU.length;			
			break;
	}
	
	for(var i=0; i<LoopCnt; i++)
	{
		if(PageCode == 'us')
		{
			if(document.getElementById("ContinentCodes_"+arrUS[i]).value != "1")
			{				
				document.getElementById("ContinentCodes_"+arrUS[i]).src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_"+PageCode +"_"+arrUS[i]+"_Off.gif";
			}
		}
		if(PageCode == 'wu')
		{
			if(document.getElementById("ContinentCodes_"+arrEU[i]).value != "1")
			{
				document.getElementById("ContinentCodes_"+arrEU[i]).src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_"+PageCode +"_"+arrEU[i]+"_Off.gif";
			}
		}

	}	
	
	document.getElementById(obj.id).src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_"+PageCode +"_"+imgName+"_On.gif";
	

}


function ShowCityDiv(PageCode,ContinentName)
{
	for(i=0;i<5;i++)
	{
		if(PageCode == 'us')
		{
			document.getElementById(arrUS[i]).style.display = "none";
			document.getElementById("ContinentCodes_"+arrUS[i]).value="0";
			document.getElementById("ContinentCodes_"+arrUS[i]).src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_us_"+arrUS[i]+"_Off.gif";
		}
		//if(PageCode == 'EU')
		else
		{	
			//alert(arrEU[i]);
			document.getElementById(arrEU[i]).style.display = "none";			
			document.getElementById("ContinentCodes_"+arrEU[i]).value="0";
			document.getElementById("ContinentCodes_"+arrEU[i]).src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_EU_"+arrEU[i]+"_Off.gif";
		}
		
		//alert("test");
	}

	switch(ContinentName)
	{
		case "NYC" :
			NYC.style.display = "block";						
			document.ContinentCodes_NYC.value = "1";
			document.ContinentCodes_NYC.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_us_NYC_ON.gif";
			break;
		case "LAX" :	
			LAX.style.display = "block";		
			document.ContinentCodes_LAX.value = "1";
			document.ContinentCodes_LAX.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_us_LAX_ON.gif";
			break;
		case "SFO" :
			SFO.style.display = "block";		
			document.ContinentCodes_SFO.value = "1";
			document.ContinentCodes_SFO.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_us_SFO_ON.gif";
			break; 
		case "LAS" :
			LAS.style.display = "block";		
			document.ContinentCodes_LAS.value = "1";
			document.ContinentCodes_LAS.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_us_LAS_ON.gif";
			break;
		case "YVR" :
			YVR.style.display = "block";		
			document.ContinentCodes_YVR.value = "1";
			document.ContinentCodes_YVR.src ="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_us_YVR_ON.gif";
			break;




		case "LON" :
			LON.style.display = "block";						
			document.ContinentCodes_LON.value = "1";
			document.ContinentCodes_LON.src = "/Language/KR/_images/HotelProducts/tab/tab_EU_img_LON_ON.gif";
			break;
		case "PAR" :	
			PAR.style.display = "block";		
			document.ContinentCodes_PAR.value = "1";
			document.ContinentCodes_PAR.src = "/Language/KR/_images/HotelProducts/tab/tab_EU_img_PAR_ON.gif";
			break;
		case "ROM" :
			ROM.style.display = "block";		
			document.ContinentCodes_ROM.value = "1";
			document.ContinentCodes_ROM.src = "/Language/KR/_images/HotelProducts/tab/tab_EU_img_ROM_ON.gif";
			break;
		case "MIL" :
			MIL.style.display = "block";		
			document.ContinentCodes_MIL.value = "1";
			document.ContinentCodes_MIL.src = "/Language/KR/_images/HotelProducts/tab/tab_EU_img_MIL_ON.gif";
			break;
		case "FRA" :
			FRA.style.display = "block";		
			document.ContinentCodes_FRA.value = "1";
			document.ContinentCodes_FRA.src ="/Language/KR/_images/HotelProducts/tab/tab_EU_img_FRA_ON.gif";
			break;
	}
}

function FirstTabChk(PageCode)
{
	switch(PageCode)
	{
		case "US":
			break;
		case "US":
			break;
		case "US":
			break;
		case "US":
			break;


	}
}


function ContinentSearch(ContinentName)
{
	rdoWE.style.display = "none";
	rdoEE.style.display = "none";
	rdoNE.style.display = "none";
	rdoMS.style.display = "none";	
	
	document.Continent_tab01.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_tab01_Off.gif";
	document.Continent_tab02.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_tab02_Off.gif";
	document.Continent_tab03.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_tab03_Off.gif";
	document.Continent_tab04.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_tab04_Off.gif";


	switch(ContinentName)
	{
		case "tab01" :
			rdoWE.style.display = "block";			
			document.Form1.ContinentCode.value = "US1";
			document.Continent_tab01.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_tab01_On.gif";
			break;
		case "tab02" :	
			rdoEE.style.display = "block";
			document.Form1.ContinentCode.value = "US2";
			document.Continent_tab02.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_tab02_On.gif";
			break;
		case "tab03" :
			rdoNE.style.display = "block";			
			document.Form1.ContinentCode.value = "US3";
			document.Continent_tab03.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_tab03_On.gif";
			break; 
		case "tab04" :
			rdoMS.style.display = "block";			
			document.Form1.ContinentCode.value = "US4";
			document.Continent_tab04.src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Recom_tab04_On.gif";
			break;		
	}
}

/*
function ContinentSearch2(ContinentName)
{
	NEWYORK.style.display = "none";
	LOSANGELES.style.display = "none";
	SANFRANCISCO.style.display = "none";
	LASVEGAS.style.display = "none";
	VANCOUVER.style.display = "none";
	
	for(var i=0; i<5; i++)
	{
		document.getElementById("ContinentCodes_"+arrUS[i]).value="0";
		document.getElementById("ContinentCodes_"+arrUS[i]).src="/Language/KR/_images/HotelProducts/tab/tab_US_img_"+arrUS[i]+"_Off.gif";
	}

	switch(ContinentName)
	{
		case "NYC" :
			NEWYORK.style.display = "block";						
			document.ContinentCodes_NYC.value = "1";
			document.ContinentCodes_NYC.src = "/Language/KR/_images/HotelProducts/tab/tab_us_img_NYC_ON.gif";
			break;
		case "LAX" :	
			LOSANGELES.style.display = "block";		
			document.ContinentCodes_LAX.value = "1";
			document.ContinentCodes_LAX.src = "/Language/KR/_images/HotelProducts/tab/tab_us_img_LAX_ON.gif";
			break;
		case "SFO" :
			SANFRANCISCO.style.display = "block";		
			document.ContinentCodes_SFO.value = "1";
			document.ContinentCodes_SFO.src = "/Language/KR/_images/HotelProducts/tab/tab_us_img_SFO_ON.gif";
			break; 
		case "LAS" :
			LASVEGAS.style.display = "block";		
			document.ContinentCodes_LAS.value = "1";
			document.ContinentCodes_LAS.src = "/Language/KR/_images/HotelProducts/tab/tab_us_img_LAS_ON.gif";
			break;
		case "YVR" :
			VANCOUVER.style.display = "block";		
			document.ContinentCodes_YVR.value = "1";
			document.ContinentCodes_YVR.src ="/Language/KR/_images/HotelProducts/tab/tab_us_img_YVR_ON.gif";
			break;
	}
}
*/
function ClickReSearchGo()
{	
	var CheckInDateShow = document.Form1.txtCheckInDateShow.value;
	document.Form1.CheckInDateShow.value = escape(CheckInDateShow);
	
	var CheckOutDateShow = document.Form1.txtCheckOutDateShow.value;
	document.Form1.CheckOutDateShow.value = escape(CheckOutDateShow);
	 
	document.Form1.action = "/ASPX/common/Loading.aspx?page=Hotelproducts/HotelSearchResult.aspx&LoadingMsgID=HotelSearchMsg";
	document.Form1.submit();

}

function sltSearch(CityCode)
{
	var ContinentCode = document.Form1.ContinentCode.value;
	var RecommendType = document.Form1.RecommendType.value;
	var BedTypeCode1 = document.Form1.ddlBedTypeCode1.value;
	var CheckInDate = document.Form1.txtCheckInDate.value;
	var CheckInDateShow = document.Form1.txtCheckInDateShow.value;
	var CheckOutDate = document.Form1.txtCheckOutDate.value;
	var CheckOutDateShow = document.Form1.txtCheckOutDateShow.value;
	var Sort = document.Form1.Sort.value;
	var BookingCode = document.Form1.BookingCode.value;

	location.href = "/ASPX/Common/Loading.aspx?page="+"HotelProducts/RecommendHotelList.aspx&CityCode="+CityCode+"&RecommendType="+RecommendType+"&ContinentCode="+ContinentCode+"&BedTypeCode1="+BedTypeCode1+"&RoomCount1=1&ChildAge1=&BedTypeCode2=&RoomCount2=&ChildAge2=&BedTypeCode3=&RoomCount3=&ChildAge3=&Duration=1&CheckInDate="+CheckInDate+"&CheckInDateShow="+escape(CheckInDateShow)+"&CheckOutDate="+CheckOutDate+"&CheckOutDateShow="+escape(CheckOutDateShow)+"&ReCommendOnly=false&AvailableOnly=false&Sort="+Sort+"&BookingCode="+BookingCode;
}

function sltBedType(BedTypeCode)
{
	document.Form1.BedTypeCode1.value = BedTypeCode;
}



// 추천호텔로 이동
function GoRecommendHotel(ItemCode, CityCode, ItemNo, CheckInDate)
{
	if(ItemNo == null)
		ItemNo = "0";
	if(CheckInDate == null)
		CheckInDate = "";

	location.href = "/ASPX/Common/Loading.aspx?page=HotelProducts/HotelInformation.aspx&ItemCode=" + ItemCode + "&CityCode=" + CityCode + "&ItemNo=" + ItemNo + "&CheckInDate=" + escape(CheckInDate )+ "&SearchType=URL_SEARCH&LoadingMsgID=HotelSearchMsg";	
}





var arrRecommendList = new Array('All','Japan','Asia','Usa','Europe','Oceania','China');


function ContinentSearchTop(citycode, continentcode)
{
	for (i=0; i<arrRecommendList.length; i++)
	{
		document.getElementById(continentcode+"_"+arrRecommendList[i]).src ="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Tab_Main"+arrRecommendList[i]+"_Off.gif";
		document.getElementById(continentcode+"_"+arrRecommendList[i]).value = "0";
		document.getElementById("Recommend_"+arrRecommendList[i]).style.display="none";
	}

	document.getElementById(continentcode+"_"+citycode).src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/Tab_Main"+citycode+"_On.gif";
	document.getElementById(continentcode+"_"+citycode).value = "1";
	document.getElementById("Recommend_"+citycode).style.display="block";
}

var arrTitleList = new Array('Asia','Usa','Europe','Oceania','China','japan');
function ContinentSearchBox(citycode, continentcode, type)
{
	for (i=0; i<arrTitleList.length; i++)
	{
		if(document.getElementById(continentcode+"_"+arrTitleList[i]) != null)
		{
			document.getElementById(continentcode+"_"+arrTitleList[i]).src ="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/ourpick_SearchTab"+arrTitleList[i]+"_Off.gif";
			document.getElementById(continentcode+"_"+arrTitleList[i]).value = "0";
		}
		document.getElementById("slt"+arrTitleList[i]).style.display = "none";
		document.getElementById("rdo"+arrTitleList[i]).style.display = "none";
	}
	if(document.getElementById(continentcode+"_"+citycode) != null)
	{
		document.getElementById(continentcode+"_"+citycode).src = "http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/ourpick_SearchTab"+citycode+"_On.gif";
		document.getElementById(continentcode+"_"+citycode).value = "1";
	}

	var top = getAbsTopPostMap(document.getElementById("pR_Map01"));
	var left = getAbsLeftPostMap(document.getElementById("pR_Map01"));

	document.getElementById("topimg").src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/recomm_searchtitle_"+citycode+".gif";

	document.getElementById("slt"+citycode).style.display = "block";
	document.getElementById("rdo"+citycode).style.display = "block";
	document.getElementById("seach_box").style.display = "block";

	if(type != "recomm")
	{
		document.getElementById("seach_box").style.left = left + 18;
		document.getElementById("seach_box").style.top = top + 10;
	}
	else
	{
		document.getElementById("seach_box").style.left = left + 90;
		document.getElementById("seach_box").style.top = top + 50;
	}
}

function getAbsLeftPostMap(obj) 
{
	return (obj.offsetParent==null)? 0:obj.offsetLeft + getAbsLeftPostMap(obj.offsetParent);
}
function getAbsTopPostMap(obj) 
{
	return (obj.offsetParent==null)? 0:obj.offsetTop + getAbsTopPostMap(obj.offsetParent);
}

function ClickClose()
{
	document.getElementById('seach_box').style.display='none';
	
	for (i=0; i<arrTitleList.length; i++)
	{
		if(document.getElementById("Continent_"+arrTitleList[i]) != null)
		{
			document.getElementById("Continent_"+arrTitleList[i]).src ="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/ourpick_SearchTab"+arrTitleList[i]+"_Off.gif";
			document.getElementById("Continent_"+arrTitleList[i]).value = "0";
		}
	}
	
}

function ms_sort(sort_img, sort)
{
	sort_img.src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/R_Sort0" +sort+ "_On.gif";
}

function ms_sort_off(sort_img, sort)
{
	sort_img.src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/R_Sort0" +sort+ "_Off.gif";
	old_sort = document.Form1.Sort.value;
	
	if(sort == old_sort)
		sort_img.src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/R_Sort0" +old_sort+ "_On.gif";
}


function mc_sort(obj, str)
{

	document.Form1.Sort.value=str;
	CityCode = document.Form1.CityCode.value;
	
	var ContinentCode = document.Form1.ContinentCode.value;
	var RecommendType = document.Form1.RecommendType.value;
	var BedTypeCode1 = document.Form1.ddlBedTypeCode1.value;
	var CheckInDate = document.Form1.txtCheckInDate.value;
	var CheckInDateShow = document.Form1.txtCheckInDateShow.value;
	var CheckOutDate = document.Form1.txtCheckOutDate.value;
	var CheckOutDateShow = document.Form1.txtCheckOutDateShow.value;
	var Sort = document.Form1.Sort.value;
	var BookingCode = document.Form1.BookingCode.value;

	location.href = "/ASPX/Common/Loading.aspx?page="+"HotelProducts/RecommendHotelList.aspx&LoadingMsgID=RecommendHotelMsg&CityCode="+CityCode+"&RecommendType="+RecommendType+"&ContinentCode="+ContinentCode+"&BedTypeCode1="+BedTypeCode1+"&RoomCount1=1&ChildAge1=&BedTypeCode2=&RoomCount2=&ChildAge2=&BedTypeCode3=&RoomCount3=&ChildAge3=&Duration=1&CheckInDate="+CheckInDate+"&CheckInDateShow="+escape(CheckInDateShow)+"&CheckOutDate="+CheckOutDate+"&CheckOutDateShow="+escape(CheckOutDateShow)+"&ReCommendOnly=false&AvailableOnly=false&Sort="+Sort+"&BookingCode="+BookingCode;
}

