function goContactUs(s)
{
	if (s != null)
	{
		document.location.href = "/community/contactus.asp?s=" + s;
	}
	else
	{
		document.location.href = "/community/contactus.asp" ;
	}
	
}

function logout()
{
	document.location.href = "/login/logout.asp";
}


function signin()
{
	document.location.href = "/member/member_article.asp";
}

function goHome()
{
	document.location.href = "/";

}

function viewNotice(seq)
{
	url = "/common/gonggi_read.asp?seq="+seq ;
	window.open(url,"°øÁö»çÇ×", "width=490,height=500,scrollbars=yes"); 
}

function listNotice(page)
{
	url = "/common/gonggi_list.asp?page="+page ;
	window.open(url,"°øÁö»çÇ×", "width=490,height=500,scrollbars=yes"); 
}

function goPreSummer()
{
    document.location.href = "/event/summer_event_2007.asp";

}

function goCommunity()
{
    document.location.href = "/community/postscript_list.asp";

}

function goPostscript()
{
	document.location.href = "/community/postscript_list.asp";

}

function goStay7Event()
{
	document.location.href = "/event/hisvoice_620.asp";

}


function goPostscriptView(scd,pg,gb,kwd,seq,reseq)
{
	document.location.href = "/community/postscript_read.asp?scd="+scd+"&pg="+pg+"&gb="+gb+"&kwd="+kwd+"&seq="+seq+"&res_seq="+reseq;
}

function goEnjoyWeekend()
{
	document.location.href = "/hotel_pack/";
}

function goQnA()
{
	document.location.href = "/community/bbs_list.asp";

}

function goQnAView(pg,gb,kwd,seq)
{
	document.location.href = "/community/bbs_read.asp?pg="+pg+"&gb="+gb+"&kwd="+kwd+"&seq="+seq;
}


function goHelpCenter()
{
	document.location.href = "/community/helpcenter_list.asp";
}

function goSomething(section)
{
	if(section == "")
	{
		section = 0
	}

	document.location.href = "/community/life_infor_list.asp?section="+section;
}

function goXmasEvent()
{
	document.location.href = "/hotel_pack/xmas_event.asp";
}

function goHotelNews()
{
	document.location.href = "/community/hotel_news_list.asp";
}

function goHotelNewsList(pg,kwd)
{
	document.location.href = "/community/hotel_news_list.asp?pg="+pg+"&kwd="+kwd;
}

function goHotelNewsView(pg,kwd,seq)
{
	document.location.href = "/community/hotel_news_read.asp?pg="+pg+"&kwd="+kwd+"&seq="+seq;
}

function goPoll()
{
	document.location.href = "/community/poll_list.asp";
}

function goSomethingView(section,pg,gb,kwd,seq)
{
	document.location.href = "/community/life_infor_read.asp?section="+section+"&pg="+pg+"&gb="+gb+"&kwd="+kwd+"&seq="+seq;
}

function goHelpCenterView(pg,gb,kwd,seq)
{
	document.location.href = "/community/helpcenter_read.asp?pg="+pg+"&gb="+gb+"&kwd="+kwd+"&seq="+seq;
}

function goTourStory()
{
	document.location.href = "/community/tourstory_list.asp";

}

function goTourStoryView(pg,gb,kwd,seq)
{
	document.location.href = "/community/tourstory_read.asp?pg="+pg+"&gb="+gb+"&kwd="+kwd+"&seq="+seq;
}

function goPhotoGallery()
{
	document.location.href = "/community/photogallery_list.asp";
}

function goPhotoGalleryView(pg,gb,kwd,seq)
{
	document.location.href = "/community/photogallery_read.asp?pg="+pg+"&gb="+gb+"&kwd="+kwd+"&seq="+seq;
}

function goFAQ()
{
	document.location.href = "/online_cafe/faq.asp";
}

function goFAQSection(sec)
{
	if(sec == '1')
		document.location.href = "/online_cafe/faq.asp";
	else if (sec == '2')
		document.location.href = "/online_cafe/faq_02.asp";
	else
		document.location.href = "/online_cafe/faq_03.asp";
}

function goHotelGuide()
{
	alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù");

}

function goLowPrice()
{
	document.location.href = "/hotel/lowprice_hotel.asp";
}

function goHotelSpecial()
{
	document.location.href = "/hotel/special_hotel.asp";
}

function goHotelAirport()
{
	document.location.href = "/hotel/airport_hotel.asp";
}

function goHotelList()
{
	document.location.href = "/hotel/hotel_list.asp";
}

function goResidence()
{
	document.location.href = "/hotel/residence.asp";
}

function goHotelBusiness()
{
	document.location.href = "/hotel/business_hotel.asp";
}


function goHotel()
{
	document.location.href = "/";
}

function goHotelInfo(hcd)
{
	document.location.href = "/hotel/hotel_infor.asp?hcd="+hcd;

}

function goLodgeInfo(lcd)
{
	document.location.href = "/hotel/hotel_infor.asp?lcd="+lcd;

}

function goHotelPackageInfo(hpcd)
{
	document.location.href = "/hotel_pack/hotel_pack_infor.asp?hpcd="+hpcd;
}

function goHotelInfo(hcd,ref)
{
	document.location.href = "/hotel/hotel_infor.asp?hcd="+hcd+"&ref="+ref;;

}

function goHotelPackageInfo(hpcd,ref)
{
	document.location.href = "/hotel_pack/hotel_pack_infor.asp?hpcd="+hpcd+"&ref="+ref;
}

function goPack(type,typename)
{
	document.location.href = "/hotel_pack/hotel_pack_list.asp?key="+type+"&tname="+typename;

}

function changePW() {
	url = "/member/pw_change.asp";
	window.open(url,'ÆÐ½º¿öµåº¯°æ','width=440,height=360,menubar=no,scrollbars=1');
}

function view_pack_infor() {
	url = "/hotel_pack/pack_reserv_infor.html";
	window.open(url,'ÆÐÅ°ÁöÀÌ¿ë±ÔÁ¤','width=560,height=240,menubar=no,scrollbars=1');
}

function view_pack_cancel() {
	url = "/hotel_pack/pack_cancel_infor.html";
	window.open(url,'ÆÐÅ°ÁöÃë¼Ò±ÔÁ¤','width=560,height=240,menubar=no,scrollbars=1');
}

function view_rest_infor() {
	url = "/hotel_pack/rest_reserv_infor.html";
	window.open(url,'¿Ü½ÄÀÌ¿ë±ÔÁ¤','width=560,height=320,menubar=no,scrollbars=1');
}

function view_rest_cancel() {
	url = "/hotel_pack/rest_cancel_infor.html";
	window.open(url,'¿Ü½ÄÃë¼Ò±ÔÁ¤','width=560,height=220,menubar=no,scrollbars=1');
}

function goPackage()
{
	document.location.href = "/hotel_pack/";
}


function goBizHotel()
{
	document.location.href = "/biz_hotel/";
}

function goLuxHotel()
{
	document.location.href = "/lux_hotel/";
}

function goCondo()
{
	document.location.href = "/condo/";
}

function goJejuHotel()
{
	document.location.href = "/jeju_travel/";
}

function goJejuCouponInfo(fcd)
{
	document.location.href = "/jeju_travel/jeju_coupon_infor.asp?fcd="+fcd;
}

function goJejuCoupon()
{
	document.location.href = "/jeju_travel/jeju_coupon_main.asp";
}

function goJejuTour()
{
	goTourSection(4);
}

function goRentCar()
{
	document.location.href = "/jeju_travel/jeju_rent_info.asp";
}

function goOnlineCafe()
{
		document.location.href = "/online_cafe/guide_infor.asp";
}

function goTourSection(section)
{
	document.location.href = "/online_cafe/tour_infor.asp?section="+section;

}

function goTourSpot(section,spot)
{
	document.location.href = "/online_cafe/tour_infor.asp?section="+section+"&spot="+spot;

}

function goTourInfo()
{
	document.location.href = "/online_cafe/tour_infor.asp";

}

function goRest()
{
	document.location.href = "/hotel_pack/hotel_rest_list.asp";
}

function goRestInfo(rcd)
{
	document.location.href = "/hotel_pack/hotel_rest_infor.asp?rcd="+rcd;
}

function goTourJob()
{
	document.location.href = "/online_cafe/job.asp";
}


function viewMyPage()
{
	document.location.href = "/member/my_page.asp";

}

function mybasket()
{
	document.location.href = "/hotel/my_bskt.asp";

}

function goReser()
{
	document.location.href = "/hotel/hotel_reserv02.asp";
}

function checkReser()
{
	document.location.href = "/hotel/reserv_check.asp";
}

function goEvent()
{
	alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù");
}

function goOrderService()
{
	document.location.href = "/hotel/order_service.asp";
}

function goCoupon()
{
	alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù");
}

function goJejuPension(type)
{
	document.location.href = "/jeju_travel/jeju_unique_main.asp";
}

function goAboutus()
{
	document.location.href = "/company/about_us.asp";

}

function goGuideinfo()
{
	document.location.href = "/online_cafe/guide_infor.asp";

}

function goPartnership()
{
	document.location.href = "/company/partnership.asp";

}

function goCowork()
{
	document.location.href = "/company/co_work.asp";

}

function goPerInfor()
{
	document.location.href = "/company/per_infor.asp";

}

function goSitemap()
{
	document.location.href = "/company/sitemap.asp";

}

function goPlayRoom()
{
	alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù");
}

function goMarketing()
{
	document.location.href = "/company/co_work.asp";
}

function goCoBuy()
{
	alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù");
}

function view_map(hotel_code) {
	url = "/hotel/map_view.asp?img=" + hotel_code;
	window.open(url,'MapView','width=100,height=100,menubar=no,scrollbars=no');
}

function rental_order() {
	url = "http://mayfair.co.kr/main/aboutus/hoteleshop_ski2005_order.asp";
	window.open(url,'Rental','width=720,height=600,menubar=no,scrollbars=yes');
}

function SetCookie (name, value) {
         var argv = SetCookie.arguments;
         var argc = SetCookie.arguments.length;
         var expires = (argc > 2) ? argv[2] : null;
         var path = (argc > 3) ? argv[3] : null;
         var domain = (argc > 4) ? argv[4] : null;
         var secure = (argc > 5) ? argv[5] : false;
         document.cookie = name + "=" + escape (value) +
         ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
         ((path == null) ? "" : ("; path=" + path)) +
         ((domain == null) ? "" : ("; domain=" + domain)) +
         ((secure == true) ? "; secure" : "");
}

function getCookieVal(offset) {
   var endstr = document.cookie.indexOf (";", offset);
   if (endstr == -1) endstr = document.cookie.length;
   return unescape (document.cookie.substring(offset, endstr));
}

function GetCookie(name) {
   var arg = name+"=";
   var alen = arg.length;
   var clen = window.cookie.length;
   var i = 0;
   while (i < clen) {
      var j = i + alen;
      if (document.cookie.substring(i, j) == arg) return getCookieVal(j);
      i = document.cookie.indexOf(" ", i) + 1;
      if (i == 0) break;
   }
   return null;
}


function getAbsTop(obj) {
	return (obj.offsetParent==null)? 0 : obj.offsetTop+getAbsTop(obj.offsetParent);
}

function getAbsLeft(obj) {
	return (obj.offsetParent==null)? 0 : obj.offsetLeft+getAbsLeft(obj.offsetParent);
}

function getWidth(obj) {
	return obj.offsetWidth;
}

function getHeight(obj)	{
	return obj.offsetHeight;
}