function chase_cal(D,A,C){var B=document.getElementById(D);if(window.createPopup){B.style.top=document.body.scrollTop;B.style.left=document.body.scrollLeft}else{B.style.top=document.body.scrollTop+event.pagey;B.style.left=document.body.scrollLeft}calendar.location.href="/tour_search/calendar.html?n="+document.activeElement.name}function chase2(E,A,D,B){var C=document.getElementById(E);if(window.createPopup){C.style.top=document.body.scrollTop+event.y+A;C.style.left=document.body.scrollLeft+D}else{C.style.left=document.body.scrollLeft+D}plan.location.href="./index_plan.php?code="+B}function date_set(E,A,C,B,D){today=new Date();today_y_new=today.getFullYear();today_m_new=today.getMonth()+1;today_d_new=today.getDate();tomorrow2=new Date();tomorrow2.setFullYear(today_y_new);tomorrow2.setMonth(today_m_new-1);tomorrow2.setDate(today_d_new+2);tomorrow2_y_new=tomorrow2.getFullYear();tomorrow2_m_new=tomorrow2.getMonth()+1;tomorrow2_d_new=tomorrow2.getDate();tomorrow2_y=""+tomorrow2_y_new;tomorrow2_m=""+tomorrow2_m_new;tomorrow2_d=""+tomorrow2_d_new;tomorrow2_ymd=tomorrow2_d+tomorrow2_d+tomorrow2_d;tomorrow2_ymd_num=parseInt(tomorrow2_ymd);sel_date=E+A+C;sel_date_num=parseInt(sel_date);document.STSRC.dpd.value=E+"/"+A+"/"+C}function date_set2(F,A,C,B,E,D){window.top.date_set(F,A,C,B,D);window.top.div_off(E)}function sendData(A){window.top.div_off(A)}function cal_div_on(A){id="cal"+A;document.getElementById(id).style.visibility="visible";document.getElementById(id).style.display="inline"}function cal_div_off(A){id="cal"+A;document.getElementById(id).style.visiblity="hidden";document.getElementById(id).style.display="none";idc="cal"+A+"c";document.getElementById(id).style.visiblity="hidden";document.getElementById(id).style.display="none"}function cal_div_on2(B){var A=B[B.selectedIndex].value;id="cal"+A;cal_div_off3("cal","12");document.getElementById(id).style.visibility="visible";document.getElementById(id).style.display="inline";B.selectedIndex=A;if(id!="cal12"){var C=B[parseInt(B.selectedIndex)+1].value;id2="cal"+C;document.getElementById(id2).style.visibility="visible";document.getElementById(id2).style.display="inline"}}function cal_div_off2(B,A){id="cal"+B;id2="cal"+A;document.getElementById(id).style.visiblity="hidden";document.getElementById(id).style.display="none";document.getElementById(id2).style.visiblity="hidden";document.getElementById(id2).style.display="none"}function cal_div_on3(id,id2,cnt){cal_div_off3("cal","12");cal_div_off4(cnt);cal_div_on4(eval(cnt)+1);document.getElementById(id).style.visibility="visible";document.getElementById(id).style.display="inline";document.getElementById(id2).style.visibility="visible";document.getElementById(id2).style.display="inline"}function cal_div_off3(B,A){for(cnt=1;cnt<=A;cnt++){id0=B+cnt;document.getElementById(id0).style.visibility="hidden";document.getElementById(id0).style.display="none"}}function cal_div_on4(A){idc="cal"+A+"c"}function cal_div_off4(A){idc="cal"+A+"c"}function cal_sub(A,B,C){if(A=="front"){if(B==1){document.form1.front.value=C;document.form1.submit()}if(B==2){document.form2.front.value=C;document.form2.submit()}}else{if(A=="back"){if(B==1){document.form1.back.value=C;document.form1.submit()}if(B==2){document.form2.back.value=C;document.form2.submit()}}else{if(A=="sel"){if(B==1){document.form1.submit()}if(B==2){document.form2.submit()}}}}};