
var favorite_url = "http://www.hoteltrees.com/index.asp"   //즐겨찾기에 추가할 홈 주소

var favorite_title = "전 세계 호텔예약 전문기업 '호텔트리스'"   // 즐겨찾기에 기록할 이름(제목)을 기록


function add_favorites(){ 
	if(document.all){ // 익스
		window.external.AddFavorite(favorite_url, favorite_title);
	}else if(window.sidebar){ // 파폭
		window.sidebar.addPanel(favorite_title, favorite_url, "");
	}else if(window.opera && window.print){ // 오페라
		var obj = document.createElement('a');
		obj.setAttribute('href',favorite_url);
		obj.setAttribute('title',favorite_title);
		obj.setAttribute('rel','sidebar');
		obj.click();
	}
}

document.write( '<div id=lyrpre_view style="font-size:9pt; border:1 solid #5256ac; position:absolute; visibility:hidden; display:none; z-Index:10; padding:5px; background-color:#FFFFEC"></div>' );

//프레임 리사이즈
function sendSize() {
window.clipboardData.setData('Text', document.body.scrollWidth+"|"+document.body.scrollHeight);
}

function URLdecode(temp)
{
	var dec = decodeURI(temp);
	for(i=0; i<3000; i++)
	{
		dec = dec.replace("%3A", ":");
		dec = dec.replace("%3F", "?");
		dec = dec.replace("%40", "@");
		dec = dec.replace("%23", "#");
		dec = dec.replace("%24", "$");
		dec = dec.replace("%26", "&");
		dec = dec.replace("%2C", ",");
		dec = dec.replace("%3D", "=");
		dec = dec.replace("%2F", "/");
		dec = dec.replace("%20"," ");
		dec = dec.replace("%3B",";");
		dec = dec.replace("%2B","+");
		dec = dec.replace("%24","$");
	}
   return dec;
}

function URLencode(temp)
{
   return encodeURIComponent(temp);
}

function mouseOnTD(seq, bool)
{

	var oTD = eval("document.all.listID" + seq);
	var len = oTD.length;
	var borderStyle = "1 solid slategray";

	if (bool){
		for(var i =0; i < len ; i++){
			oTD[i].style.borderTop = borderStyle;
			oTD[i].style.borderBottom = borderStyle;
			oTD[i].style.cursor = "default";
		}

	//	oTD[0].style.borderLeft = borderStyle;
		oTD[0].style.backgroundColor = "#F5F9FE";
		oTD[len-1].style.borderRight = borderStyle;

	}else{

		for(var i =0; i < len; i++){
			oTD[i].style.border = "";
		}
		oTD[0].style.backgroundColor = "";
	}

}

function mouseOnTD2(seq, bool, listNm)
{
	var oTD = eval("document.all." + listNm + seq);
	var len = oTD.length;
	var borderStyle = "1 solid slategray";

	if (bool){
		for(var i =0; i < len ; i++){
			oTD[i].style.borderTop = borderStyle;
			oTD[i].style.borderBottom = borderStyle;
			oTD[i].style.cursor = "default";
			oTD[i].style.backgroundColor = "pink";
		}
		oTD[len-1].style.borderRight = borderStyle;
	}else{

		for(var i =0; i < len; i++){
			if (oTD[i].style.backgroundColor == "yellow")
			{
			alert(oTD[i].style.backgroundColor);
			}
			oTD[i].style.backgroundColor = "";
			oTD[i].style.border = "";
		}
	}
}

function mouseOnTR(seq, bool, listNm)
{
	var oTR = eval("document.all." + listNm + seq);
	
	if (bool){
		oTR.style.cursor = "default";
		oTR.style.backgroundColor = "pink";
	}else{
		if (oTR.style.backgroundColor != 'yellow')
			oTR.style.backgroundColor = "";
	}
}

function getHnC(sentance)
{
	var gH01 = sentance.split(":>");
	var gH02 = gH01[0].split("<:");
	var gC00 = sentance.split("<:"+gH02[1]+":>");

	var gHnC = new Array();
	if (gH02[1])
		gHnC["header"] = gH02[1].replace(/(^\s*)|(\s*$)/g, "");
	else
		gHnC["header"] = "&nbsp;";
	
	if (gC00[1])
		gHnC["content"] = gC00[1].replace(/(^\s*)|(\s*$)/g, "");
	else
		gHnC["content"] = "&nbsp;";

	return gHnC;
}

// 2007.11.30 료칸트리스 접속 by sunsuk
function sendFormData() 
{ 
	window.open('','win','width=1024,height=768,top=50,left=50,scrollbars=1,toolbar=yes,menubar=yes,status=yes,location=yes') 
	document.goRyokan.target = "win" 
	document.goRyokan.action = "http://www.ryokantrees.com/Member/member_ok.asp?mode=Glogin" 
	document.goRyokan.submit();
} 

// 추가 하기
function SelectAdd(selTag, aText, aValue) {
    // OPTION Element 생성
    var opt		= document.createElement("OPTION");
    opt.text	= aText;
    opt.value	= aValue;
    // 생성한 Element를 콤보 박스에 추가
    selTag.add(opt);
}

// 삭제 하기
function SelectDel(selTag, aValue) {
    // 콤보 박스의 크기만큼 반복
    for(i = 0; i < selTag.length; i++) {        // 값이 같을 경우
        if (selTag.options[i].value == aValue)
            selTag.options[i] = null;			// 삭제
    }
}

// 전체 삭제 하기
function SelectDelAll(selTag) {
    // 콤보 박스에 내용이 있을 때만 실행
    if ( selTag.length > 0 ) {
        for (i =0 ; selTag.options.length ; i++)
        {
            var selCh = selTag.children(0);		// 맨 위에 있는 것 갖고 오기
            selTag.removeChild(selCh);
        }
    }
}

// 공백 제거
function fnTrim(chStr) {
	var nStrCheck; 
	nStrCheck = chStr.indexOf(" ");     
	while (nStrCheck != -1) 
	{ 
		chStr = chStr.replace(" ", ""); 
		nStrCheck  = chStr.indexOf(" "); 
	} 
	return chStr;
}

// 로그인
function fnLogin()
{
	var uid = document.getElementById("uid").value;
	var passwd = document.getElementById("passwd").value;
	var nexturl = document.getElementById("nexturl").value;

	if(uid=="")
	{
		alert("아이디를 입력해 주세요");
		document.getElementById("uid").focus();
		return;
	}

/*
	if (uid.indexOf(".")<3) 
	{
		alert("이메일의 형식이 잘못되었습니다. 다시 입력해 주세요")
		document.getElementById("uid").value = "";
		document.getElementById("uid").focus();
		return;
	}
*/
	if(passwd=="")
	{
		alert("비밀번호를 입력해 주세요");
		document.getElementById("passwd").focus();
		return;
	}
	if(passwd.length<4)
	{
		alert("비밀번호는 4~12자로 입력해 주세요");
		document.getElementById("passwd").focus();
		return;
	}

	var rUrl = '/memberht/member_ok.asp';
	var Parms  = '?mode=login';
		Parms += '&uid=' + uid;
		Parms += '&passwd=' + passwd;

	var res = dynamic.loadText(rUrl + Parms);

	if(res=="OK")
	{
		if(nexturl)
		{
			location.href=nexturl;
		}else{
			location.href="/";
		}
		return;
	}else{
		if(res=="OK")
		{
			if(nexturl)
			{
				location.href=nexturl;
			}else{
				location.href="/";
			}
		}else if(res=="ID_error")
		{
			alert("등록되지 않은 아이디입니다.");
			document.getElementById("uid").value = "";
			document.getElementById("uid").focus();
			return;
		}else if(res=="PWD_error")
		{
			alert("비밀번호가 일치하지 않습니다.");
			document.getElementById("passwd").value = "";
			document.getElementById("passwd").focus();
			return;
		}else if(res=="NOAUTH")
		{
			alert("승인되지 않은 아이디입니다. 관리자에게 문의해 주세요");
			document.getElementById("passwd").value = "";
			document.getElementById("passwd").focus();
			return;
		}else if(res=="LEAVE")
		{
			alert("탈퇴된 아이디입니다. 관리자에게 문의해 주세요");
			document.getElementById("passwd").value = "";
			document.getElementById("passwd").focus();
			location.href = '/';
			return;
		}else{
			alert(res);
			return;
		}
	}

}

// 비회원로그인
function fnLogin2()
{
	var email = document.getElementById("email").value;
	var hp = document.getElementById("hp").value;

	if(email=="")
	{
		alert("이메일을 입력해 주세요");
		document.getElementById("email").focus();
		return;
	}

	if (email.indexOf(".")<3) 
	{
		alert("이메일의 형식이 잘못되었습니다. 다시 입력해 주세요")
		document.getElementById("email").value = "";
		document.getElementById("email").focus();
		return;
	}

	if(hp=="")
	{
		alert("휴대폰번호를 입력해 주세요");
		document.getElementById("hp").focus();
		return;
	}

	var rUrl = '/memberht/member_ok.asp';
	var Parms  = '?mode=unmem_login';
		Parms += '&uid=' + email;
		Parms += '&hp=' + hp;

	var res = dynamic.loadText(rUrl + Parms);

	if(res=="OK")
	{
		location.href="/mypageht/reservation.asp";
		return;
	}else{
		if(res=="NO")
		{
			alert("예약 내역이 존재하지 않습니다.");
			document.getElementById("uid").value = "";
			document.getElementById("uid").focus();
			return;
		}else{
			alert(res);
			return;
		}
	}

}

// 로그인
function fnAdminLogin()
{
	var uid = document.getElementById("uid").value;
	var passwd = document.getElementById("passwd").value;

	if(uid=="")
	{
		alert("아이디를 입력해 주세요");
		document.getElementById("uid").focus();
		return;
	}

/*
	if (uid!="itank")
	{
		if (uid.indexOf(".")<3) 
		{
			alert("이메일의 형식이 잘못되었습니다. 다시 입력해 주세요")
			document.getElementById("uid").value = "";
			document.getElementById("uid").focus();
			return;
		}
	}
*/
	if(passwd=="")
	{
		alert("비밀번호를 입력해 주세요");
		document.getElementById("passwd").focus();
		return;
	}
	if(passwd.length<4)
	{
		alert("비밀번호는 4~12자로 입력해 주세요");
		document.getElementById("passwd").focus();
		return;
	}

	var rUrl = '/memberht/member_ok.asp';
	var Parms  = '?mode=Adminlogin';
		Parms += '&uid=' + uid;
		Parms += '&passwd=' + passwd;

	var res = dynamic.loadText(rUrl + Parms);

	if(res=="OK")
	{
		location.href="/azone/azone.asp";
		return;
	}else{
		if(res=="OK")
		{
			location.href="/azone/azone.asp";
		}else if(res=="ID_error")
		{
			alert("관리자 아이디가 아닙니다.");
			document.getElementById("uid").value = "";
			document.getElementById("uid").focus();
			return;
		}else if(res=="PWD_error")
		{
			alert("비밀번호가 일치하지 않습니다.");
			document.getElementById("passwd").value = "";
			document.getElementById("passwd").focus();
			return;
		}else{
			alert(res);
			return;
		}
	}


}

// 영문관리자로그인
function fnENGAdminLogin()
{
	var uid = document.getElementById("uid").value;
	var passwd = document.getElementById("passwd").value;

	if(uid=="")
	{
		alert("아이디를 입력해 주세요");
		document.getElementById("uid").focus();
		return;
	}

/*
	if (uid!="itank")
	{
		if (uid.indexOf(".")<3) 
		{
			alert("이메일의 형식이 잘못되었습니다. 다시 입력해 주세요")
			document.getElementById("uid").value = "";
			document.getElementById("uid").focus();
			return;
		}
	}
*/
	if(passwd=="")
	{
		alert("비밀번호를 입력해 주세요");
		document.getElementById("passwd").focus();
		return;
	}
	if(passwd.length<4)
	{
		alert("비밀번호는 4~12자로 입력해 주세요");
		document.getElementById("passwd").focus();
		return;
	}

	var rUrl = '/memberht/member_ok.asp';
	var Parms  = '?mode=Adminlogin';
		Parms += '&uid=' + uid;
		Parms += '&passwd=' + passwd;

	var res = dynamic.loadText(rUrl + Parms);

	if(res=="OK")
	{
		location.href="/eazone/azone.asp";
		return;
	}else{
		if(res=="OK")
		{
			location.href="/eazone/azone.asp";
		}else if(res=="ID_error")
		{
			alert("관리자 아이디가 아닙니다.");
			document.getElementById("uid").value = "";
			document.getElementById("uid").focus();
			return;
		}else if(res=="PWD_error")
		{
			alert("비밀번호가 일치하지 않습니다.");
			document.getElementById("passwd").value = "";
			document.getElementById("passwd").focus();
			return;
		}else{
			alert(res);
			return;
		}
	}


}

// 로그아웃
function fnLogout()
{
	var rUrl = '/memberht/member_ok.asp';
	var Parms  = '?mode=logout';
	var res = dynamic.loadText(rUrl + Parms);

	if(res=="OK")
	{
		alert("이용해 주셔서 감사합니다.");
		location.href="/";
	}else{
		alert("오류가 발생했습니다.");
	}

}

function fnFeedback()
{
	if(confirm)
	{
		alert("로그인을 하신 후 글을 남겨주십시오.");
		location.href="/memberht/login_select.asp?gubun=C";
	}else{
		alert("오류가 발생했습니다.");
	}

}

// 관리자로그아웃
function fnAdminLogout()
{
	var rUrl = '/memberht/member_ok.asp';
	var Parms  = '?mode=logout';
	var res = dynamic.loadText(rUrl + Parms);

	if(res=="OK")
	{
		alert("이용해 주셔서 감사합니다.");
		location.href="/azone/index.asp";
	}else{
		alert("오류가 발생했습니다.");
	}

}

//요일구하기
function weekDay(dt)
{
	var weekNumber = dt.getDay();
	var weekName = "";
	switch (weekNumber)
	{
		case 1 : weekName = "월"; break;
		case 2 : weekName = "화"; break;
		case 3 : weekName = "수"; break;
		case 4 : weekName = "목"; break;
		case 5 : weekName = "금"; break;
		case 6 : weekName = "토"; break;
		default : weekName = "일"; break;
	}
	return weekName;
}

//숫자에 , 넣기
function CommaFormatted(amount)
{
	var delimiter = ",";
	var amount = parseInt(amount);
	if(isNaN(amount)) { return ''; }
	var minus = '';
	if(amount < 0) { minus = '-'; }
	amount = Math.abs(amount);
	var n = new String(amount);
	var a = [];
	while(n.length > 3)
	{
		var nn = n.substr(n.length-3);
		a.unshift(nn);
		n = n.substr(0,n.length-3);
	}
	if(n.length > 0) { a.unshift(n); }
	n = a.join(delimiter);
	return minus + n
}

//날짜 더하기
function addDay(yyyy, mm, dd, pDay) // 년, 월, 일, 계산할 일자 (년도는 반드시 4자리로 입력) - 일더하기
{
var oDate; // 리턴할 날짜 객체 선언

dd = dd*1 + pDay*1; // 날짜 계산

mm--; // 월은 0~11 이므로 하나 빼준다

oDate = new Date(yyyy, mm, dd) // 계산된 날짜 객체 생성 (객체에서 자동 계산)

return oDate;
}

// VB 함수
function dateAdd(interval, num, pDate){
	num = new Number(num);
	pDate = pDate.split('-');
	var dt = new Date(pDate[0], pDate[1] + 1, pDate[2]);
	switch(interval.toLowerCase()){
		case "yyyy": {// year
			dt.setFullYear(dt.getFullYear() + num);
			break;
		}
		case "q": {		// quarter
			dt.setMonth(dt.getMonth() + (num*3));
			break;
		}
		case "m": {		// month
			dt.setMonth(dt.getMonth() + num);
			break;
		}
		case "y":		// day of year
		case "d":		// day
			dt.setMonth(dt.getDate() + num);
			break;
		case "w": {		// weekday
			dt.setDate(dt.getDate() + num);
			break;
		}
		case "ww": {	// week of year
			dt.setDate(dt.getDate() + (num*7));
			break;
		}
		case "h": {		// hour
			dt.setHours(dt.getHours() + num);
			break;
		}
		case "n": {		// minute
			dt.setMinutes(dt.getMinutes() + num);
			break;
		}
		case "s": {		// second
			dt.setSeconds(dt.getSeconds() + num);
			break;
		}
		case "ms": {		// second
			dt.setMilliseconds(dt.getMilliseconds() + num);
			break;
		}
		default: {
			return "i'";
		}
	}
	return dt;
}

function dateDiff(interval, pDate1, pDate2){
	pDate1 = pDate1.split('-');
	var dt1 = new Date(pDate1[0], pDate1[1] + 1, pDate1[2]);
	pDate2 = pDate2.split('-');
	var dt2 = new Date(pDate2[0], pDate2[1] + 1, pDate2[2]);
	
	var iDiffMS = dt2.valueOf() - dt1.valueOf();
	var dtDiff = new Date(iDiffMS);

	var nYears  = dt2.getUTCFullYear() - dt1.getUTCFullYear();
	var nMonths = dt2.getUTCMonth() - dt1.getUTCMonth() + (nYears!=0 ? nYears*12 : 0);
	var nQuarters = parseInt(nMonths/3);
	
	var nMilliseconds = iDiffMS;
	var nSeconds = parseInt(iDiffMS/1000);
	var nMinutes = parseInt(nSeconds/60);
	var nHours = parseInt(nMinutes/60);
	var nDays  = parseInt(nHours/24);
	var nWeeks = parseInt(nDays/7);

	var iDiff = 0;		
	switch(interval.toLowerCase()){
		case "yyyy": return nYears;
		case "q": return nQuarters;
		case "m": return nMonths;
		case "y": 	
		case "d": return nDays;
		case "w": return nDays;
		case "ww":return nWeeks;
		case "h": return nHours;
		case "n": return nMinutes;
		case "s": return nSeconds;
		case "ms":return nMilliseconds;
		default: return "invalid interval: '" + interval + "'";
	}
}

// 날짜 차이 구하는 함수
function getDayInterval(time1,time2) {
    var date1 = toTimeObject(time1);
    var date2 = toTimeObject(time2);
    var day   = 1000 * 3600 * 24; //24시간

    return parseInt((date2 - date1) / day, 10);
}

//Time 스트링을 자바스크립트 Date 객체로 변환
function toTimeObject(time) { //parseTime(time)
    var year  = time.substr(0,4);
    var month = time.substr(4,2) - 1; // 1월=0,12월=11
    var day   = time.substr(6,2);
    var hour  = time.substr(8,2);
    var min   = time.substr(10,2);

    return new Date(year,month,day,hour,min);
}

//div tag를 select box 위에 보이게 하기
//iframe을 이용한다.
function DivSetVisible(popDiv, divIf, state)
{
	var DivRef = document.getElementById(popDiv);
	var IfrRef = document.getElementById(divIf);
	if(state)
	{
		DivRef.style.display = "block";
		IfrRef.style.width = DivRef.offsetWidth;
		IfrRef.style.height = DivRef.offsetHeight;
		IfrRef.style.top = DivRef.style.top;
		IfrRef.style.left = DivRef.style.left;
		IfrRef.style.zIndex = DivRef.style.zIndex - 1;
		IfrRef.style.display = "block";
	}
	else
	{
		DivRef.style.display = "none";
		IfrRef.style.display = "none";
	}
}

function onQty2()
{
	if(document.frmhtlsearch.rmType2.value=="")
	{
		document.frmhtlsearch.rmQty2.value = 0;
		document.frmhtlsearch.rmQty2.disabled=true;
	}else{
		document.frmhtlsearch.rmQty2.value = 1;
		document.frmhtlsearch.rmQty2.disabled=false;
	}
}

function onQtySub2()
{
	if(document.frmhtlsearchSub.rmType2.value=="")
	{
		document.frmhtlsearchSub.rmQty2.value = 0;
		document.frmhtlsearchSub.rmQty2.disabled=true;
	}else{
		document.frmhtlsearchSub.rmQty2.value = 1;
		document.frmhtlsearchSub.rmQty2.disabled=false;
	}
}
function onQty3()
{
	if(document.getElementById("rmType3").value=="")
	{
		document.getElementById("rmQty3").value = 0;
		document.getElementById("rmQty3").disabled=true;
	}else{
		document.getElementById("rmQty3").disabled=false;
	}
}

function pre_view(str)
{
	if (str == null || str == '') {
		if (lyrpre_view) {
			lyrpre_view.opened = false;
			lyrpre_view.style.visibility = "hidden";
			lyrpre_view.style.display = "none";

			clearTimeout(timeoutid);
		}
	}
	else {
		if (lyrpre_view && event && document) {
			lyrpre_view.innerText = str;			
			lyrpre_view.style.pixelTop = event.clientY + document.body.scrollTop;
			lyrpre_view.style.pixelLeft = event.clientX + document.body.scrollLeft + 10;

			lyrpre_view.opened = true;
			lyrpre_view.style.visibility = 'visible';
			lyrpre_view.style.display = 'block';

			timeoutid = setTimeout('pre_view(null)', 100000);
		}
	}
	return;
}

function Right(str, n){
    if (n <= 0)
       return "";
    else if (n > String(str).length)
       return str;
    else {
       var iLen = String(str).length;
       return String(str).substring(iLen, iLen - n);
    }
}

//링크주소감추기
function hidestatus() 
{ 
window.status='전 세계 호텔예약 전문기업 호텔트리스'
return true 
} 
if 
(document.layers) 
document.captureEvents(Event.mouseover | 
Event.mouseout) 
document.onmouseover=hidestatus 
document.onmouseout=hidestatus 

var WWTC_WeekDay;
var WWTC_ClockOn, WWTC_ClockId;

// Get GMT time
function WWTC_getGMT() {
 var dateNow=new Date();
 var msLocal=dateNow.getTime();
 var msOffset=dateNow.getTimezoneOffset()*60*1000;
 var dateGMT=new Date(msLocal+msOffset);
 return(dateGMT);
}

// Get time by GMT offset
// mTime 1: 1시간 , 0 : 30분 -> 시간은 1시간으로 선택
function WWTC_getT(hOffset, mTime) {
 var dateGMT=WWTC_getGMT();
 var msGMT=dateGMT.getTime();

 // 0 일경우 30분을 더 뺀다.
 if (mTime == 0) var msOffset=hOffset*60*60*1000 - 1800000;
 else var msOffset=hOffset*60*60*1000;

 var dateT=new Date(msGMT+msOffset);
 return(dateT);
}

// Show time in text box
function WWTC_showT(hOffset, boxDate, boxTime, mTime) {
 if (hOffset==99) var dateT=new Date();
 else var dateT=WWTC_getT(hOffset, mTime);
 var y=dateT.getYear();
 var m=dateT.getMonth()+1;
 var d=dateT.getDate();
 var dd=dateT.getDay();
 var hh=dateT.getHours();
 var mm=dateT.getMinutes();
 var ss=dateT.getSeconds();
 var ap=(hh<12?"AM":"PM");

 m=(m>=10?m:"0"+m);
 d=(d>=10?d:"0"+d);
 hh=(hh<=12?hh:hh-12);
 hh=(hh>=10?hh:" "+hh);
 mm=(mm>=10?mm:"0"+mm);
 ss=(ss>=10?ss:"0"+ss);

 // 필요에 따라 출력 패텬을 바꾼다.
 boxDate.value=y+"년"+m+"월"+d+"일 "+WWTC_WeekDay[dd];
 boxTime.value=ap+hh+":"+mm+":"+ss+"";
}

// Stop clock
function WWTC_stopClock() {
 if (WWTC_ClockOn) {
  clearTimeout(WWTC_ClockId);
  WWTC_ClockOn=false;
 }
}

// Start clock
function WWTC_startClock() {

 // 세계시간 목록 지정
//alert(document.WWTC_Wtime.count.value);

 WWTC_showT(document.WWTC_Wtime.count.value, document.WWTC_Wtime.tDate, document.WWTC_Wtime.tTime,1); // 서울 한국
// WWTC_showT(-5, document.WWTC_fYork.tDate, document.WWTC_fYork.tTime,1); // 미국 뉴욕
// WWTC_showT(9, document.WWTC_Japan.tDate, document.WWTC_Japan.tTime,1); // 일본
// WWTC_showT(8, document.WWTC_CHINA.tDate, document.WWTC_CHINA.tTime,1); // 중국 북경
// WWTC_showT(6, document.WWTC_Thailand.tDate, document.WWTC_Thailand.tTime,1); // 태국 푸켓
// WWTC_showT(8, document.WWTC_SINGAPORE.tDate, document.WWTC_SINGAPORE.tTime,1); // 싱가포르

 //--------------
 // 아래로 위와 같이 추가한다.

 // Set next update
 WWTC_ClockId=setTimeout("WWTC_startClock()", 1000);
 WWTC_ClockOn=true;
}

// Init clock
function WWTC_initClock() {
 WWTC_WeekDay=new Array();
 WWTC_WeekDay[0]="일요일";
 WWTC_WeekDay[1]="월요일";
 WWTC_WeekDay[2]="화요일";
 WWTC_WeekDay[3]="수요일";
 WWTC_WeekDay[4]="목요일";
 WWTC_WeekDay[5]="금요일";
 WWTC_WeekDay[6]="토요일";

 WWTC_ClockOn=false;
 WWTC_ClockId=null;

 WWTC_stopClock();
 WWTC_startClock();
}

function mapOpen(hCode,lat,lng)
{
	var f = document.frmMap;

	f.hCode.value = hCode;
	f.lat.value = lat;
	f.lng.value = lng;
	f.action = "/popupht/popup_3Dmap.asp"; 
	var URL = "/popupht/popup_3Dmap.asp?hCode="+hCode+"&lat="+lat+"&lng="+lng;
	window.open(URL,"Google_MAP","top=50,width=690,height=720,status=yes,scrollbars=no");
	f.target = 'Google_MAP'; 
	f.submit(); 
}
function nMapOpen(hCode,lat,lng)
{
	var URL = "/hotelht/popup/popup_nMap.asp?hCode="+hCode+"&lat="+lat+"&lng="+lng;
	window.open(URL,"Naver_MAP","top=50,width=690,height=720,status=yes,scrollbars=no");
	
}

function roadOpen(hCode,lat,lng)
{
	var URL = "/hotelht/popup/popup_roadview.asp?hCode="+hCode+"&lat="+lat+"&lng="+lng;
	window.open(URL,"Naver_MAP","top=50,width=690,height=720,status=yes,scrollbars=no");
	
}

function streetOpen(hCode,lat,lng)
{
	var URL = "/hotelht/popup/popup_streetview.asp?hCode="+hCode+"&lat="+lat+"&lng="+lng;
	window.open(URL,"Naver_MAP","top=50,width=690,height=720,status=yes,scrollbars=no");
	
}
