﻿//        function listing_map(location1,location2)
//        {
//            if(location2!="")
//            {
//                 parent.document.location.href="../reservation/listing_map.aspx?location1="+location1+"&location2="+location2;
//            }
//            else
//            {
//                 parent.document.location.href="../reservation/listing_map.aspx?location1="+location1;
//            }
//        }

///날짜 셋팅
///y.k.song
   		function onload_Eve()
   		{
   		    var checkInDate = document.getElementsByName("checkInDate")[0]; 
            var now_date   = new Date();
            var s_year     = now_date.getYear();
            if( s_year<1900) s_year=s_year+1900;
            var s_month    = return0(now_date.getMonth()+1);
            var s_day      = return0(now_date.getDate()+7);
       		var room_2 = document.all["location1"];         
       		    if(checkInDate.value=="")
       		    {
   		       		checkInDate.value = s_year + "-" + s_month + "-" + s_day;
	                ValofcheckOutDate();
                    room_2.selectedIndex = 1;	                
       		    }	  
                          		    
   		}
   		
   		function onload_SetDate(s_date,e_date,state)
   		{
   		    var checkInDate = document.getElementsByName(s_date)[0]; 
   		    var checkOutDate = document.getElementsByName(e_date)[0]; 
            var now_date   = new Date();
            var s_year     = now_date.getYear();
            if( s_year<1900) s_year=s_year+1900;
            var s_month    = return0(now_date.getMonth()+1);
            var e_month    = return0(now_date.getMonth());
            var s_day      = return0(now_date.getDate());
            
   		    if(checkInDate.value=="")
	       		checkInDate.value = s_year + "-" + e_month + "-" + s_day;
	       		
	       		
	       	if(checkOutDate.value=="")
	       	    checkOutDate.value = s_year + "-" + s_month + "-" + s_day;
	       	   
	       	   
	       	if(state != null)
	       	{
	       	    for ( i = 0; i < document.getElementsByName('state').length; i++) 
	       	    {	       	        
	       	        if (document.getElementsByName('state')[i].value == state)
	       	        {
	       	            document.getElementsByName('state')[i].checked = true;
	       	            break;
	       	        }
	       	    }
	       	}
                          		    
   		}
   		
   		function add_date(s_date,e_date,day)
   		{
   		    var checkInDate = document.getElementsByName(e_date)[0]; 
   		    var checkOutDate = document.getElementsByName(s_date)[0];
   		    checkOutDate.value = addDays(checkInDate,day);
   		}
   		
var popup = window.createPopup();

//xslt sort
//검색 결과 리스트 SORT
/*
function sort_xslt(code)    
{
	    var sort_1 = document.getElementsByName("sort_1")[0]; 
	    var sort_2 = document.getElementsByName("sort_2")[0]; 
	    var sort_3 = document.getElementsByName("sort_3")[0]; 
	    var sort_4 = document.getElementsByName("sort_4")[0]; 
	    
        var h_sort_1 = document.getElementsByName("h_sort_1")[0]; 
	    var h_sort_2 = document.getElementsByName("h_sort_2")[0]; 
	    var h_sort_3 = document.getElementsByName("h_sort_3")[0]; 
	    var h_sort_4 = document.getElementsByName("h_sort_4")[0]; 
	    var h_sort = document.getElementsByName("h_sort")[0]; 	    
        
        
        //즉시예약 + 낮은 가격순
        if(code=="1")
        {
            if(h_sort_1.value=="DOWN"||h_sort_1.value=="")
            {
                h_sort_1.value = "UP";       
            }
            else if(h_sort_1.value=="UP")
            {
                h_sort_1.value = "DOWN";     
            }
        }    
        else if(code =="2")
        {
            if(h_sort_2.value=="UP"||h_sort_2.value=="")
            {
                h_sort_2.value = "DOWN";       
            }
            else if(h_sort_2.value=="DOWN")
            {
                h_sort_2.value = "UP";     
            }
        } 	
        else if(code =="3")
        {
            if(h_sort_3.value=="UP"||h_sort_3.value=="")
            {
                h_sort_3.value = "DOWN";       
            }
            else if(h_sort_3.value=="DOWN")
            {
                h_sort_3.value = "UP";     
            }
        } 		          	       		    
   		else if(code =="4")
        {
            if(h_sort_4.value=="UP"||h_sort_4.value=="")
            {
                h_sort_4.value = "DOWN";       
            }
            else if(h_sort_4.value=="DOWN")
            {
                h_sort_4.value = "UP";     
            }
        } 		 
        
        h_sort.value = code;
        hotel_search();      		       		       		    
}
*/
       
function show(content)
{      
    var body = popup.document.body;
    body.style.backgroundColor = "lightyellow";
    body.style.marginLeft = "2px";
    body.style.marginTop = "2px";
    body.style.border = "1px solid #CCCCCC";
    body.style.textOverflow = "ellipsis";
    body.style.overflow = "visible";
    body.style.color = "#000000";
    body.style.fontSize = "12";
    //titleBody.style.filter = "DXImageTransform.Microsoft.Shadow(color=gray,direction=135)";
    body.innerHTML = "<div align='center' id='lblContent' style='text-overflow;ellipsis;overflow: visible;'>" + content + "</div>";
    popup.show(event.x + 1 , event.y + 20, 300, 18, document.body);
}


function showclose()
{
    if(popup.isOpen)
    {
        popup.hide();
    }
}


   		function login_chk(param) {       		
   		    if(document.getElementById("id").value=="")
   		    {   		   
   		        if(param == "ko") {		   
                    alert("ID를 입력해 주세요\n");
                }
                else {
                    alert("Please fill in your ID\n");
                } 
   		        document.getElementById("id").focus();
   		        return;       		    
   		    }
   		    
   		    if(document.getElementById("password").value=="")
   		    {
   		        if(param == "ko") {		   
                    alert("패스워드를 입력해 주세요\n");
                }
                else {
                    alert("Please fill in your password\n");
                } 
   		        document.getElementById("password").focus();
   		        return;       		    
   		    }   		
			document.login_frm.action = "../userCheck.aspx";
			document.login_frm.submit();
		}
		
		function logout() {
			document.login_frm.action="../logout.aspx";
			document.login_frm.submit();
		}
		
		function keyEnter() {   
			if(event.keyCode ==13)   {   //엔터키가 눌려지면,
				login_chk('en');    //로그인 함수 호출
			}
		}
///룸추가(사용하지 않음)
///y.k.song
   function Room_add() {
            var count = 0;
            for(i=1;i<4;i++) {
                    name = 'pro'+(i+1);
                    if(document.all[name].style.display == "") count++;                    
            }            
            
            if(count == 0) {
                    var room_1 = document.all["r_type1"];       
                    var room_2 = document.all["r_type2"];                                  
                    name = 'pro2';
                    var pro2 = document.all[name];
                    
                       var tempHtml = "";
                       if(room_1.selectedIndex == 1)
                       {                        
                            tempHtml +=  "<OPTION value='DBL'>===더블(2인)===</OPTION> ";  
                            tempHtml +=  "<OPTION value='TRP'>===트리플(3인)===</OPTION> "  
                            tempHtml +=  "<OPTION value='ETC'>===기타(4인이상)===</OPTION>";                         
                       }
                       if(room_1.selectedIndex == 2)
                       {  
                            tempHtml +=  "<OPTION value=SGL>===싱글(1인)===</OPTION> ";
                            tempHtml +=  "<OPTION value=TRP>===트리플(3인)===</OPTION> "  
                            tempHtml +=  "<OPTION value=ETC>===기타(4인이상)===</OPTION>";                          
                       }
                       if(room_1.selectedIndex == 3)
                       {  
                            tempHtml +=  "<OPTION value=SGL>===싱글(1인)===</OPTION> ";
                            tempHtml +=  "<OPTION value=DBL>===더블(2인)===</OPTION> "; 
                            tempHtml +=  "<OPTION value=ETC>===기타(4인이상)===</OPTION>";                            
                       }  
                       if(room_1.selectedIndex == 4)
                       {  
                            tempHtml +=  "<OPTION value=SGL>===싱글(1인)===</OPTION> ";
                            tempHtml +=  "<OPTION value=DBL>===더블(2인)===</OPTION> ";  
                            tempHtml +=  "<OPTION value=TRP>===트리플(3인)===</OPTION> "; 
                      
                       }                                              
                       //깨짐 난중에 해결
                    //room_2.innerHTML = tempHtml;
                    pro2.style.display="";
                    
            }
            else if(count == 1) {
                    name = 'pro3';
                    document.all[name].style.display = "";
            }
            else if(count == 2) {
                    name = 'pro4';
                    document.all[name].style.display = "";
            }
            else if(count == 3) {
                    alert('더이상 룸타입을 추가 하실수 없습니다.');
                    return;
            }
    }
    
   function addRoom() {
            var count = 0;
            for(i=1;i<4;i++) {
                    name = 'rpro'+(i+1);
                    if(document.all[name].style.display == "") count++;
            }
            if(count == 0) {
                    name = 'rpro2';
                    document.all[name].style.display = "";
            }
            else if(count == 1) {
                    name = 'rpro3';
                    document.all[name].style.display = "";
            }
            else if(count == 2) {
                    name = 'rpro4';
                    document.all[name].style.display = "";
            }
            else if(count == 3) {
                    alert('더이상 룸타입을 추가 하실수 없습니다.');
                    return;
            }
    }    
    
        /*function changeGroup() {
                var count;
                for ( i = document.form1.location2.length-1 ; i > -1 ; i--) {
                        document.form1.location2.options[i].value = null;
                        document.form1.location2.options[i] = null;
                }
                count=0;
                ArrGroup = new Array();                
              
                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";

                                document.form1.location2.options[1] = new Option("Akasaka/Roppongi/Toranomon",1);
                                                document.form1.location2.options[1].value = "27";

                                document.form1.location2.options[2] = new Option("Akihabara/Ryogoku/Ueno Etc.",1);
                                                document.form1.location2.options[2].value = "3";

                                document.form1.location2.options[3] = new Option("Ebisu/Shibuya Etc.",1);
                                                document.form1.location2.options[3].value = "14";

                                document.form1.location2.options[4] = new Option("Gotanda/Shinagawa Etc.",1);
                                                document.form1.location2.options[4].value = "12";

                                document.form1.location2.options[5] = new Option("Hamamatsucho",1);
                                                document.form1.location2.options[5].value = "10";

                                document.form1.location2.options[6] = new Option("Haneda Airport",1);
                                                document.form1.location2.options[6].value = "209";

                                document.form1.location2.options[7] = new Option("Iidabashi/Kudanshita",1);
                                                document.form1.location2.options[7].value = "6";

                                document.form1.location2.options[8] = new Option("Ikebukuro",1);
                                                document.form1.location2.options[8].value = "17";

                                document.form1.location2.options[9] = new Option("Meguro/Shibuya Etc.",1);
                                                document.form1.location2.options[9].value = "13";

                                document.form1.location2.options[10] = new Option("Odaiba/Tokyo Big Sight",1);
                                                document.form1.location2.options[10].value = "29";

                                document.form1.location2.options[11] = new Option("Shibuya",1);
                                                document.form1.location2.options[11].value = "15";

                                document.form1.location2.options[12] = new Option("Shimbashi/Ginza",1);
                                                document.form1.location2.options[12].value = "8";

                                document.form1.location2.options[13] = new Option("Shinagawa",1);
                                                document.form1.location2.options[13].value = "11";

                                document.form1.location2.options[14] = new Option("Shinjuku",1);
                                                document.form1.location2.options[14].value = "16";

                                document.form1.location2.options[15] = new Option("Shinjuku Etc.",1);
                                                document.form1.location2.options[15].value = "38";

                                document.form1.location2.options[16] = new Option("Tokyo Disney Resort",1);
                                                document.form1.location2.options[16].value = "18";

                                document.form1.location2.options[17] = new Option("Tokyo Etc.",1);
                                                document.form1.location2.options[17].value = "41";

                                document.form1.location2.options[18] = new Option("Tokyo Station/Nihonbashi/TCAT",1);
                                                document.form1.location2.options[18].value = "5";

                                document.form1.location2.options[19] = new Option("Ueno/Asakusa",1);
                                                document.form1.location2.options[19].value = "1";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "287";

                                document.form1.location2.options[2] = new Option("Dotombori",1);
                                                document.form1.location2.options[2].value = "48";

                                document.form1.location2.options[3] = new Option("Intex Osaka",1);
                                                document.form1.location2.options[3].value = "52";

                                document.form1.location2.options[4] = new Option("Japan Universal Studio",1);
                                                document.form1.location2.options[4].value = "25";

                                document.form1.location2.options[5] = new Option("Kansai Airport",1);
                                                document.form1.location2.options[5].value = "60";

                                document.form1.location2.options[6] = new Option("Namba",1);
                                                document.form1.location2.options[6].value = "21";

                                document.form1.location2.options[7] = new Option("Osaka Etc.",1);
                                                document.form1.location2.options[7].value = "54";

                                document.form1.location2.options[8] = new Option("Sakai",1);
                                                document.form1.location2.options[8].value = "53";

                                document.form1.location2.options[9] = new Option("Senba/Honcho",1);
                                                document.form1.location2.options[9].value = "49";

                                document.form1.location2.options[10] = new Option("Shinosaka",1);
                                                document.form1.location2.options[10].value = "50";

                                document.form1.location2.options[11] = new Option("Shinsaibashi",1);
                                                document.form1.location2.options[11].value = "47";

                                document.form1.location2.options[12] = new Option("Tennoji",1);
                                                document.form1.location2.options[12].value = "19";

                                document.form1.location2.options[13] = new Option("Umeda/Osaka Station",1);
                                                document.form1.location2.options[13].value = "46";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Canal City Fukuoka",1);
                                                document.form1.location2.options[1].value = "33";

                                document.form1.location2.options[2] = new Option("Hakata Etc.",1);
                                                document.form1.location2.options[2].value = "104";

                                document.form1.location2.options[3] = new Option("Hakata Station",1);
                                                document.form1.location2.options[3].value = "32";

                                document.form1.location2.options[4] = new Option("Nakasu",1);
                                                document.form1.location2.options[4].value = "34";

                                document.form1.location2.options[5] = new Option("Tenjin",1);
                                                document.form1.location2.options[5].value = "31";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Nagoya Castle",1);
                                                document.form1.location2.options[1].value = "45";

                                document.form1.location2.options[2] = new Option("Nagoya Etc.",1);
                                                document.form1.location2.options[2].value = "99";

                                document.form1.location2.options[3] = new Option("Nagoya Station",1);
                                                document.form1.location2.options[3].value = "44";

                                document.form1.location2.options[4] = new Option("Sakae",1);
                                                document.form1.location2.options[4].value = "42";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "272";

                                document.form1.location2.options[2] = new Option("Arashiyama",1);
                                                document.form1.location2.options[2].value = "63";

                                document.form1.location2.options[3] = new Option("Conference Hall",1);
                                                document.form1.location2.options[3].value = "132";

                                document.form1.location2.options[4] = new Option("DownTown",1);
                                                document.form1.location2.options[4].value = "59";

                                document.form1.location2.options[5] = new Option("Kyoto City Hall",1);
                                                document.form1.location2.options[5].value = "98";

                                document.form1.location2.options[6] = new Option("Kyoto Station",1);
                                                document.form1.location2.options[6].value = "58";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "245";

                                document.form1.location2.options[2] = new Option("Komaki",1);
                                                document.form1.location2.options[2].value = "224";

                                document.form1.location2.options[3] = new Option("Toyohashi",1);
                                                document.form1.location2.options[3].value = "125";

                                document.form1.location2.options[4] = new Option("Toyota",1);
                                                document.form1.location2.options[4].value = "79";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "246";

                                document.form1.location2.options[2] = new Option("Akita",1);
                                                document.form1.location2.options[2].value = "129";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Aomori",1);
                                                document.form1.location2.options[1].value = "97";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Asahikawa",1);
                                                document.form1.location2.options[1].value = "113";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Aso",1);
                                                document.form1.location2.options[1].value = "90";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "247";

                                document.form1.location2.options[2] = new Option("Atami Onsen",1);
                                                document.form1.location2.options[2].value = "43";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "248";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Beppu Onsen",1);
                                                document.form1.location2.options[1].value = "85";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "249";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" Chiba New Town Chuou",1);
                                                document.form1.location2.options[1].value = "250";

                                document.form1.location2.options[2] = new Option("Chiba Station",1);
                                                document.form1.location2.options[2].value = "96";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "251";

                                document.form1.location2.options[2] = new Option("Chitose Airport",1);
                                                document.form1.location2.options[2].value = "130";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "252";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "253";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Aizu Wakamatsu",1);
                                                document.form1.location2.options[1].value = "108";

                                document.form1.location2.options[2] = new Option("Fukushima City",1);
                                                document.form1.location2.options[2].value = "240";

                                document.form1.location2.options[3] = new Option("Inawashiro",1);
                                                document.form1.location2.options[3].value = "37";

                                document.form1.location2.options[4] = new Option("Iwaki City",1);
                                                document.form1.location2.options[4].value = "101";

                                document.form1.location2.options[5] = new Option("Koriyama",1);
                                                document.form1.location2.options[5].value = "112";

                                document.form1.location2.options[6] = new Option("Urabandai",1);
                                                document.form1.location2.options[6].value = "36";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "254";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "255";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Gifu",1);
                                                document.form1.location2.options[1].value = "78";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "256";

                                document.form1.location2.options[2] = new Option("Ibusuki",1);
                                                document.form1.location2.options[2].value = "210";

                                document.form1.location2.options[3] = new Option("Ikaho Onsen",1);
                                                document.form1.location2.options[3].value = "121";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "257";

                                document.form1.location2.options[2] = new Option("Hakodate",1);
                                                document.form1.location2.options[2].value = "72";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "258";

                                document.form1.location2.options[2] = new Option("Hakone Onsen",1);
                                                document.form1.location2.options[2].value = "114";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Down Town",1);
                                                document.form1.location2.options[1].value = "94";

                                document.form1.location2.options[2] = new Option("Hiroshima Etc.",1);
                                                document.form1.location2.options[2].value = "75";

                                document.form1.location2.options[3] = new Option("Hiroshima Station",1);
                                                document.form1.location2.options[3].value = "55";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Himeji",1);
                                                document.form1.location2.options[1].value = "306";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Hitachi City",1);
                                                document.form1.location2.options[1].value = "307";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "259";

                                document.form1.location2.options[2] = new Option("Morioka City",1);
                                                document.form1.location2.options[2].value = "243";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "260";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "261";

                                document.form1.location2.options[2] = new Option("Jozankei",1);
                                                document.form1.location2.options[2].value = "100";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "262";

                                document.form1.location2.options[2] = new Option("Ibusuki",1);
                                                document.form1.location2.options[2].value = "236";

                                document.form1.location2.options[3] = new Option("Kagoshima City",1);
                                                document.form1.location2.options[3].value = "305";

                                document.form1.location2.options[4] = new Option("Kirishima",1);
                                                document.form1.location2.options[4].value = "110";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Atsugi",1);
                                                document.form1.location2.options[1].value = "111";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Kanazawa",1);
                                                document.form1.location2.options[1].value = "107";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "263";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Kawasaki",1);
                                                document.form1.location2.options[1].value = "35";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "264";

                                document.form1.location2.options[2] = new Option("Kitakyusyu",1);
                                                document.form1.location2.options[2].value = "71";

                                document.form1.location2.options[3] = new Option("Kokura",1);
                                                document.form1.location2.options[3].value = "68";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "265";

                                document.form1.location2.options[2] = new Option("Arima SPA",1);
                                                document.form1.location2.options[2].value = "64";

                                document.form1.location2.options[3] = new Option("DownTown",1);
                                                document.form1.location2.options[3].value = "57";

                                document.form1.location2.options[4] = new Option("Kobe Etc.",1);
                                                document.form1.location2.options[4].value = "119";

                                document.form1.location2.options[5] = new Option("Rokko/Port Island",1);
                                                document.form1.location2.options[5].value = "65";

                                document.form1.location2.options[6] = new Option("Sannomiya",1);
                                                document.form1.location2.options[6].value = "106";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "266";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "267";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "268";

                                document.form1.location2.options[2] = new Option("Kumamoto City",1);
                                                document.form1.location2.options[2].value = "115";

                                document.form1.location2.options[3] = new Option("Kumamoto Etc.",1);
                                                document.form1.location2.options[3].value = "116";

                                document.form1.location2.options[4] = new Option("Kumamoto Station",1);
                                                document.form1.location2.options[4].value = "126";

                                document.form1.location2.options[5] = new Option("Kurogawa",1);
                                                document.form1.location2.options[5].value = "242";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "269";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "270";

                                document.form1.location2.options[2] = new Option("Kusatsu Onsen",1);
                                                document.form1.location2.options[2].value = "77";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "271";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Makuhari Etc.",1);
                                                document.form1.location2.options[1].value = "118";

                                document.form1.location2.options[2] = new Option("Makuhari Messe",1);
                                                document.form1.location2.options[2].value = "70";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "273";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "274";

                                document.form1.location2.options[2] = new Option("Matsuyama",1);
                                                document.form1.location2.options[2].value = "105";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "275";

                                document.form1.location2.options[2] = new Option("Suzuka",1);
                                                document.form1.location2.options[2].value = "131";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "276";

                                document.form1.location2.options[2] = new Option("Matsushima",1);
                                                document.form1.location2.options[2].value = "103";

                                document.form1.location2.options[3] = new Option("Zao Onsen",1);
                                                document.form1.location2.options[3].value = "120";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "277";

                                document.form1.location2.options[2] = new Option("Seagia",1);
                                                document.form1.location2.options[2].value = "227";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "278";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "279";

                                document.form1.location2.options[2] = new Option("Hakuba",1);
                                                document.form1.location2.options[2].value = "93";

                                document.form1.location2.options[3] = new Option("Nagano",1);
                                                document.form1.location2.options[3].value = "92";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Huis Tenbosch",1);
                                                document.form1.location2.options[1].value = "83";

                                document.form1.location2.options[2] = new Option("Nagasaki",1);
                                                document.form1.location2.options[2].value = "82";

                                document.form1.location2.options[3] = new Option("Sasebo City",1);
                                                document.form1.location2.options[3].value = "235";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "280";

                                document.form1.location2.options[2] = new Option("Naha City",1);
                                                document.form1.location2.options[2].value = "109";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "281";

                                document.form1.location2.options[2] = new Option("Nara",1);
                                                document.form1.location2.options[2].value = "95";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Narita Airport",1);
                                                document.form1.location2.options[1].value = "87";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "282";

                                document.form1.location2.options[2] = new Option("Nagaoka",1);
                                                document.form1.location2.options[2].value = "127";

                                document.form1.location2.options[3] = new Option("Niigata",1);
                                                document.form1.location2.options[3].value = "128";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Kinugawa",1);
                                                document.form1.location2.options[1].value = "74";

                                document.form1.location2.options[2] = new Option("Nikko",1);
                                                document.form1.location2.options[2].value = "73";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Noboribetsu",1);
                                                document.form1.location2.options[1].value = "80";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "283";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "284";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Oita",1);
                                                document.form1.location2.options[1].value = "86";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "285";

                                document.form1.location2.options[2] = new Option("Okayama",1);
                                                document.form1.location2.options[2].value = "89";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "286";

                                document.form1.location2.options[2] = new Option("Naha City",1);
                                                document.form1.location2.options[2].value = "238";

                                document.form1.location2.options[3] = new Option("Okinawa",1);
                                                document.form1.location2.options[3].value = "237";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "288";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "289";

                                document.form1.location2.options[2] = new Option("Karatsu",1);
                                                document.form1.location2.options[2].value = "211";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "290";

                                document.form1.location2.options[2] = new Option("Kawagoe",1);
                                                document.form1.location2.options[2].value = "123";

                                document.form1.location2.options[3] = new Option("Urawa",1);
                                                document.form1.location2.options[3].value = "124";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "239";

                                document.form1.location2.options[2] = new Option(" ",1);
                                                document.form1.location2.options[2].value = "291";

                                document.form1.location2.options[3] = new Option("DownTown",1);
                                                document.form1.location2.options[3].value = "66";

                                document.form1.location2.options[4] = new Option("Sapporo Station",1);
                                                document.form1.location2.options[4].value = "67";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "292";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Sendai",1);
                                                document.form1.location2.options[1].value = "84";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "293";

                                document.form1.location2.options[2] = new Option("Otsu",1);
                                                document.form1.location2.options[2].value = "117";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "294";

                                document.form1.location2.options[2] = new Option("Hamamatsu",1);
                                                document.form1.location2.options[2].value = "91";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "295";

                                document.form1.location2.options[2] = new Option("Takamatsu",1);
                                                document.form1.location2.options[2].value = "102";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "296";

                                document.form1.location2.options[2] = new Option("Nasu",1);
                                                document.form1.location2.options[2].value = "122";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "244";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "297";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "298";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "299";

                                document.form1.location2.options[2] = new Option("Toyama",1);
                                                document.form1.location2.options[2].value = "69";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "300";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Wakayama",1);
                                                document.form1.location2.options[1].value = "81";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "301";

                                document.form1.location2.options[2] = new Option("Yonezawa",1);
                                                document.form1.location2.options[2].value = "241";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "302";

                                document.form1.location2.options[2] = new Option("Shimonoseki",1);
                                                document.form1.location2.options[2].value = "304";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option(" ",1);
                                                document.form1.location2.options[1].value = "303";

                                document.form1.location2.options[2] = new Option("Kawaguchi",1);
                                                document.form1.location2.options[2].value = "88";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                                document.form1.location2.options[1] = new Option("Chinese Street",1);
                                                document.form1.location2.options[1].value = "230";

                                document.form1.location2.options[2] = new Option("Minato Mira 21",1);
                                                document.form1.location2.options[2].value = "40";

                                document.form1.location2.options[3] = new Option("Shinyokohama Staition",1);
                                                document.form1.location2.options[3].value = "61";

                                document.form1.location2.options[4] = new Option("Yokohama Etc.",1);
                                                document.form1.location2.options[4].value = "39";

                                document.form1.location2.options[5] = new Option("Yokohama Station",1);
                                                document.form1.location2.options[5].value = "62";

                        }
                        count++;

                        if(document.form1.location1.options[count].selected) {  
                                document.form1.location2.options[0] = new Option("===지역선택===",1);
                                document.form1.location2.options[0].value = "";


                        }
                        count++;

                document.form1.location2.selectedIndex = 0;
		        return;
        }*/

        function changeGroup1() {
		var count;
		var num;

		for ( i = document.form1.area_sel.length-1 ; i > -1 ; i--) { 
			document.form1.area_sel.options[i].value = null; 
			document.form1.area_sel.options[i] = null; 
		} 
		
		count=0;
		num=0;
		ArrGroup = new Array();
                
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";

	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "245";

	               	document.form1.area_sel.options[2] = new Option("Komaki",1);
					document.form1.area_sel.options[2].value = "224";

	               	document.form1.area_sel.options[3] = new Option("Toyohashi",1);
					document.form1.area_sel.options[3].value = "125";

	               	document.form1.area_sel.options[4] = new Option("Toyota",1);
					document.form1.area_sel.options[4].value = "79";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";

	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "246";

	               	document.form1.area_sel.options[2] = new Option("Akita",1);
					document.form1.area_sel.options[2].value = "129";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Aomori",1);
					document.form1.area_sel.options[1].value = "97";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Asahikawa",1);
					document.form1.area_sel.options[1].value = "113";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Aso",1);
					document.form1.area_sel.options[1].value = "90";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "247";

	               	document.form1.area_sel.options[2] = new Option("Atami Onsen",1);
					document.form1.area_sel.options[2].value = "43";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "248";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Beppu Onsen",1);
					document.form1.area_sel.options[1].value = "85";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "249";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" Chiba New Town Chuou",1);
					document.form1.area_sel.options[1].value = "250";

	               	document.form1.area_sel.options[2] = new Option("Chiba Station",1);
					document.form1.area_sel.options[2].value = "96";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "251";

	               	document.form1.area_sel.options[2] = new Option("Chitose Airport",1);
					document.form1.area_sel.options[2].value = "130";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "252";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "253";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Canal City Fukuoka",1);
					document.form1.area_sel.options[1].value = "33";

	               	document.form1.area_sel.options[2] = new Option("Hakata Etc.",1);
					document.form1.area_sel.options[2].value = "104";

	               	document.form1.area_sel.options[3] = new Option("Hakata Station",1);
					document.form1.area_sel.options[3].value = "32";

	               	document.form1.area_sel.options[4] = new Option("Nakasu",1);
					document.form1.area_sel.options[4].value = "34";

	               	document.form1.area_sel.options[5] = new Option("Tenjin",1);
					document.form1.area_sel.options[5].value = "31";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Aizu Wakamatsu",1);
					document.form1.area_sel.options[1].value = "108";

	               	document.form1.area_sel.options[2] = new Option("Fukushima City",1);
					document.form1.area_sel.options[2].value = "240";

	               	document.form1.area_sel.options[3] = new Option("Inawashiro",1);
					document.form1.area_sel.options[3].value = "37";

	               	document.form1.area_sel.options[4] = new Option("Iwaki City",1);
					document.form1.area_sel.options[4].value = "101";

	               	document.form1.area_sel.options[5] = new Option("Koriyama",1);
					document.form1.area_sel.options[5].value = "112";

	               	document.form1.area_sel.options[6] = new Option("Urabandai",1);
					document.form1.area_sel.options[6].value = "36";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "254";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "255";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Gifu",1);
					document.form1.area_sel.options[1].value = "78";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "256";

	               	document.form1.area_sel.options[2] = new Option("Ibusuki",1);
					document.form1.area_sel.options[2].value = "210";

	               	document.form1.area_sel.options[3] = new Option("Ikaho Onsen",1);
					document.form1.area_sel.options[3].value = "121";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";

	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "257";

	               	document.form1.area_sel.options[2] = new Option("Hakodate",1);
					document.form1.area_sel.options[2].value = "72";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "258";

	               	document.form1.area_sel.options[2] = new Option("Hakone Onsen",1);
					document.form1.area_sel.options[2].value = "114";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";

	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Down Town",1);
					document.form1.area_sel.options[1].value = "94";

	               	document.form1.area_sel.options[2] = new Option("Hiroshima Etc.",1);
					document.form1.area_sel.options[2].value = "75";

	               	document.form1.area_sel.options[3] = new Option("Hiroshima Station",1);
					document.form1.area_sel.options[3].value = "55";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Himeji",1);
					document.form1.area_sel.options[1].value = "306";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Hitachi City",1);
					document.form1.area_sel.options[1].value = "307";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";

	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "259";

	               	document.form1.area_sel.options[2] = new Option("Morioka City",1);
					document.form1.area_sel.options[2].value = "243";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "260";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "261";

	               	document.form1.area_sel.options[2] = new Option("Jozankei",1);
					document.form1.area_sel.options[2].value = "100";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "262";

	               	document.form1.area_sel.options[2] = new Option("Ibusuki",1);
					document.form1.area_sel.options[2].value = "236";

	               	document.form1.area_sel.options[3] = new Option("Kagoshima City",1);
					document.form1.area_sel.options[3].value = "305";

	               	document.form1.area_sel.options[4] = new Option("Kirishima",1);
					document.form1.area_sel.options[4].value = "110";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";

	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Atsugi",1);
					document.form1.area_sel.options[1].value = "111";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Kanazawa",1);
					document.form1.area_sel.options[1].value = "107";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "263";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Kawasaki",1);
					document.form1.area_sel.options[1].value = "35";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "264";

	               	document.form1.area_sel.options[2] = new Option("Kitakyusyu",1);
					document.form1.area_sel.options[2].value = "71";

	               	document.form1.area_sel.options[3] = new Option("Kokura",1);
					document.form1.area_sel.options[3].value = "68";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "265";

	               	document.form1.area_sel.options[2] = new Option("Arima SPA",1);
					document.form1.area_sel.options[2].value = "64";

	               	document.form1.area_sel.options[3] = new Option("DownTown",1);
					document.form1.area_sel.options[3].value = "57";

	               	document.form1.area_sel.options[4] = new Option("Kobe Etc.",1);
					document.form1.area_sel.options[4].value = "119";

	               	document.form1.area_sel.options[5] = new Option("Rokko/Port Island",1);
					document.form1.area_sel.options[5].value = "65";

	               	document.form1.area_sel.options[6] = new Option("Sannomiya",1);
					document.form1.area_sel.options[6].value = "106";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "266";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "267";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "268";

	               	document.form1.area_sel.options[2] = new Option("Kumamoto City",1);
					document.form1.area_sel.options[2].value = "115";

	               	document.form1.area_sel.options[3] = new Option("Kumamoto Etc.",1);
					document.form1.area_sel.options[3].value = "116";

	               	document.form1.area_sel.options[4] = new Option("Kumamoto Station",1);
					document.form1.area_sel.options[4].value = "126";

	               	document.form1.area_sel.options[5] = new Option("Kurogawa",1);
					document.form1.area_sel.options[5].value = "242";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";

	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";

	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "269";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "270";

	               	document.form1.area_sel.options[2] = new Option("Kusatsu Onsen",1);
					document.form1.area_sel.options[2].value = "77";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "271";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "272";

	               	document.form1.area_sel.options[2] = new Option("Arashiyama",1);
					document.form1.area_sel.options[2].value = "63";

	               	document.form1.area_sel.options[3] = new Option("Conference Hall",1);
					document.form1.area_sel.options[3].value = "132";

	               	document.form1.area_sel.options[4] = new Option("DownTown",1);
					document.form1.area_sel.options[4].value = "59";

	               	document.form1.area_sel.options[5] = new Option("Kyoto City Hall",1);
					document.form1.area_sel.options[5].value = "98";

	               	document.form1.area_sel.options[6] = new Option("Kyoto Station",1);
					document.form1.area_sel.options[6].value = "58";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Makuhari Etc.",1);
					document.form1.area_sel.options[1].value = "118";

	               	document.form1.area_sel.options[2] = new Option("Makuhari Messe",1);
					document.form1.area_sel.options[2].value = "70";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "273";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";

	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "274";

	               	document.form1.area_sel.options[2] = new Option("Matsuyama",1);
					document.form1.area_sel.options[2].value = "105";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "275";

	               	document.form1.area_sel.options[2] = new Option("Suzuka",1);
					document.form1.area_sel.options[2].value = "131";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";

	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "276";

	               	document.form1.area_sel.options[2] = new Option("Matsushima",1);
					document.form1.area_sel.options[2].value = "103";

	               	document.form1.area_sel.options[3] = new Option("Zao Onsen",1);
					document.form1.area_sel.options[3].value = "120";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";

	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "277";

	               	document.form1.area_sel.options[2] = new Option("Seagia",1);
					document.form1.area_sel.options[2].value = "227";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "278";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "279";

	               	document.form1.area_sel.options[2] = new Option("Hakuba",1);
					document.form1.area_sel.options[2].value = "93";

	               	document.form1.area_sel.options[3] = new Option("Nagano",1);
					document.form1.area_sel.options[3].value = "92";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Huis Tenbosch",1);
					document.form1.area_sel.options[1].value = "83";

	               	document.form1.area_sel.options[2] = new Option("Nagasaki",1);
					document.form1.area_sel.options[2].value = "82";

	               	document.form1.area_sel.options[3] = new Option("Sasebo City",1);
					document.form1.area_sel.options[3].value = "235";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Nagoya Castle",1);
					document.form1.area_sel.options[1].value = "45";

	               	document.form1.area_sel.options[2] = new Option("Nagoya Etc.",1);
					document.form1.area_sel.options[2].value = "99";

	               	document.form1.area_sel.options[3] = new Option("Nagoya Station",1);
					document.form1.area_sel.options[3].value = "44";

	               	document.form1.area_sel.options[4] = new Option("Sakae",1);
					document.form1.area_sel.options[4].value = "42";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "280";

	               	document.form1.area_sel.options[2] = new Option("Naha City",1);
					document.form1.area_sel.options[2].value = "109";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "281";

	               	document.form1.area_sel.options[2] = new Option("Nara",1);
					document.form1.area_sel.options[2].value = "95";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Narita Airport",1);
					document.form1.area_sel.options[1].value = "87";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "282";

	               	document.form1.area_sel.options[2] = new Option("Nagaoka",1);
					document.form1.area_sel.options[2].value = "127";

	               	document.form1.area_sel.options[3] = new Option("Niigata",1);
					document.form1.area_sel.options[3].value = "128";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Kinugawa",1);
					document.form1.area_sel.options[1].value = "74";

	               	document.form1.area_sel.options[2] = new Option("Nikko",1);
					document.form1.area_sel.options[2].value = "73";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Noboribetsu",1);
					document.form1.area_sel.options[1].value = "80";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "283";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "284";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Oita",1);
					document.form1.area_sel.options[1].value = "86";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "285";

	               	document.form1.area_sel.options[2] = new Option("Okayama",1);
					document.form1.area_sel.options[2].value = "89";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "286";

	               	document.form1.area_sel.options[2] = new Option("Naha City",1);
					document.form1.area_sel.options[2].value = "238";

	               	document.form1.area_sel.options[3] = new Option("Okinawa",1);
					document.form1.area_sel.options[3].value = "237";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "287";

	               	document.form1.area_sel.options[2] = new Option("Dotombori",1);
					document.form1.area_sel.options[2].value = "48";

	               	document.form1.area_sel.options[3] = new Option("Intex Osaka",1);
					document.form1.area_sel.options[3].value = "52";

	               	document.form1.area_sel.options[4] = new Option("Japan Universal Studio",1);
					document.form1.area_sel.options[4].value = "25";

	               	document.form1.area_sel.options[5] = new Option("Kansai Airport",1);
					document.form1.area_sel.options[5].value = "60";

	               	document.form1.area_sel.options[6] = new Option("Namba",1);
					document.form1.area_sel.options[6].value = "21";

	               	document.form1.area_sel.options[7] = new Option("Osaka Etc.",1);
					document.form1.area_sel.options[7].value = "54";

	               	document.form1.area_sel.options[8] = new Option("Sakai",1);
					document.form1.area_sel.options[8].value = "53";

	               	document.form1.area_sel.options[9] = new Option("Senba/Honcho",1);
					document.form1.area_sel.options[9].value = "49";

	               	document.form1.area_sel.options[10] = new Option("Shinosaka",1);
					document.form1.area_sel.options[10].value = "50";

	               	document.form1.area_sel.options[11] = new Option("Shinsaibashi",1);
					document.form1.area_sel.options[11].value = "47";

	               	document.form1.area_sel.options[12] = new Option("Tennoji",1);
					document.form1.area_sel.options[12].value = "19";

	               	document.form1.area_sel.options[13] = new Option("Umeda/Osaka Station",1);
					document.form1.area_sel.options[13].value = "46";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "288";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";

	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "289";

	               	document.form1.area_sel.options[2] = new Option("Karatsu",1);
					document.form1.area_sel.options[2].value = "211";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "290";

	               	document.form1.area_sel.options[2] = new Option("Kawagoe",1);
					document.form1.area_sel.options[2].value = "123";

	               	document.form1.area_sel.options[3] = new Option("Urawa",1);
					document.form1.area_sel.options[3].value = "124";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "239";

	               	document.form1.area_sel.options[2] = new Option(" ",1);
					document.form1.area_sel.options[2].value = "291";

	               	document.form1.area_sel.options[3] = new Option("DownTown",1);
					document.form1.area_sel.options[3].value = "66";

	               	document.form1.area_sel.options[4] = new Option("Sapporo Station",1);
					document.form1.area_sel.options[4].value = "67";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "292";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Sendai",1);
					document.form1.area_sel.options[1].value = "84";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "293";

	               	document.form1.area_sel.options[2] = new Option("Otsu",1);
					document.form1.area_sel.options[2].value = "117";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";

	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "294";

	               	document.form1.area_sel.options[2] = new Option("Hamamatsu",1);
					document.form1.area_sel.options[2].value = "91";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "295";

	               	document.form1.area_sel.options[2] = new Option("Takamatsu",1);
					document.form1.area_sel.options[2].value = "102";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";

	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";

	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "296";

	               	document.form1.area_sel.options[2] = new Option("Nasu",1);
					document.form1.area_sel.options[2].value = "122";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "244";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Akasaka/Roppongi/Toranomon",1);
					document.form1.area_sel.options[1].value = "27";

	               	document.form1.area_sel.options[2] = new Option("Akihabara/Ryogoku/Ueno Etc.",1);
					document.form1.area_sel.options[2].value = "3";

	               	document.form1.area_sel.options[3] = new Option("Ebisu/Shibuya Etc.",1);
					document.form1.area_sel.options[3].value = "14";

	               	document.form1.area_sel.options[4] = new Option("Gotanda/Shinagawa Etc.",1);
					document.form1.area_sel.options[4].value = "12";

	               	document.form1.area_sel.options[5] = new Option("Hamamatsucho",1);
					document.form1.area_sel.options[5].value = "10";

	               	document.form1.area_sel.options[6] = new Option("Haneda Airport",1);
					document.form1.area_sel.options[6].value = "209";

	               	document.form1.area_sel.options[7] = new Option("Iidabashi/Kudanshita",1);
					document.form1.area_sel.options[7].value = "6";

	               	document.form1.area_sel.options[8] = new Option("Ikebukuro",1);
					document.form1.area_sel.options[8].value = "17";

	               	document.form1.area_sel.options[9] = new Option("Meguro/Shibuya Etc.",1);
					document.form1.area_sel.options[9].value = "13";

	               	document.form1.area_sel.options[10] = new Option("Odaiba/Tokyo Big Sight",1);
					document.form1.area_sel.options[10].value = "29";

	               	document.form1.area_sel.options[11] = new Option("Shibuya",1);
					document.form1.area_sel.options[11].value = "15";

	               	document.form1.area_sel.options[12] = new Option("Shimbashi/Ginza",1);
					document.form1.area_sel.options[12].value = "8";

	               	document.form1.area_sel.options[13] = new Option("Shinagawa",1);
					document.form1.area_sel.options[13].value = "11";

	               	document.form1.area_sel.options[14] = new Option("Shinjuku",1);
					document.form1.area_sel.options[14].value = "16";

	               	document.form1.area_sel.options[15] = new Option("Shinjuku Etc.",1);
					document.form1.area_sel.options[15].value = "38";

	               	document.form1.area_sel.options[16] = new Option("Tokyo Disney Resort",1);
					document.form1.area_sel.options[16].value = "18";

	               	document.form1.area_sel.options[17] = new Option("Tokyo Etc.",1);
					document.form1.area_sel.options[17].value = "41";

	               	document.form1.area_sel.options[18] = new Option("Tokyo Station/Nihonbashi/TCAT",1);
					document.form1.area_sel.options[18].value = "5";

	               	document.form1.area_sel.options[19] = new Option("Ueno/Asakusa",1);
					document.form1.area_sel.options[19].value = "1";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "297";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";

	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "298";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "299";

	               	document.form1.area_sel.options[2] = new Option("Toyama",1);
					document.form1.area_sel.options[2].value = "69";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";

	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";

	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "300";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Wakayama",1);
					document.form1.area_sel.options[1].value = "81";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "301";

	               	document.form1.area_sel.options[2] = new Option("Yonezawa",1);
					document.form1.area_sel.options[2].value = "241";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "302";

	               	document.form1.area_sel.options[2] = new Option("Shimonoseki",1);
					document.form1.area_sel.options[2].value = "304";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option(" ",1);
					document.form1.area_sel.options[1].value = "303";

	               	document.form1.area_sel.options[2] = new Option("Kawaguchi",1);
					document.form1.area_sel.options[2].value = "88";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";


	               	document.form1.area_sel.options[1] = new Option("Chinese Street",1);
					document.form1.area_sel.options[1].value = "230";

	               	document.form1.area_sel.options[2] = new Option("Minato Mira 21",1);
					document.form1.area_sel.options[2].value = "40";

	               	document.form1.area_sel.options[3] = new Option("Shinyokohama Staition",1);
					document.form1.area_sel.options[3].value = "61";

	               	document.form1.area_sel.options[4] = new Option("Yokohama Etc.",1);
					document.form1.area_sel.options[4].value = "39";

	               	document.form1.area_sel.options[5] = new Option("Yokohama Station",1);
					document.form1.area_sel.options[5].value = "62";
	
			}			
			count++;
		
			if(document.form1.city_sel.options[count].selected) {
				document.form1.area_sel.options[0] = new Option("=== 전 체 === ",1);
				document.form1.area_sel.options[0].value = "0";

	
			}			
			count++;

		if(document.form1.area_sel.length < 2) {
			document.form1.area_sel.options[1] = new Option("",1);
			document.form1.area_sel.options[1].value = "0";
		}
		document.form1.area_sel.selectedIndex = 0;
		return;
	}

	function search1() {
    		if(form2.city_sel.value == 0) {
			alert("도시명을 선택하여 주십시오.");
			form2.city_sel.focus();
			return;
		}

		form1.action = "reservation_01.aspx";
		form1.submit();
	}
	
	
    function selNum(param){
            var targetForm = document.form1;
            var r_num = "r_num"+param;
            var r_type = "r_type"+param;
            if(targetForm.elements[r_type].value == '')
                    targetForm.elements[r_num].selectedIndex = 0;
            else
                    targetForm.elements[r_num].selectedIndex = 1;
    }



        function hotel_search() {

          if((document.form1.h_name.value).length <1) 
          {
            if(document.form1.location1.value == '') {
                    alert('도시를 선택해 주세요!\n');
                    document.form1.location1.focus();
                    return;
            }
	      }	

        if(document.form1.checkInDate.value == '') {
                alert('체크인 일자를 선택해 주세요!\n');
                document.form1.checkInDate.focus();
                return;
        }
        if(document.form1.night.value == '') {
                alert('박수를 선택해 주세요!\n');
                document.form1.night.focus();
                return;
        }
        if(document.form1.r_type1.value == '' && document.form1.r_type2.value == '' && document.form1.r_type3.value == '' && document.form1.r_type4.value == '') {
                alert('객실을 적어도 하나는 선택해 주세요\n!');
                return;
        }
        if(document.form1.r_type1.value != '' && document.form1.r_num1.value == '0') {
                alert('객실수를 선택해 주세요!\n');
                document.form1.r_num1.focus();
                return;
        }
        if(document.form1.r_type2.value != '' && document.form1.r_num2.value == '0') {
                alert('객실수를 선택해 주세요!\n');
                document.form1.r_num2.focus();
                return;
        }
        if(document.form1.r_type3.value != '' && document.form1.r_num3.value == '0') {
                alert('객실수를 선택해 주세요!\n');
                document.form1.r_num3.focus();
                return;
        }
        if(document.form1.r_type4.value != '' && document.form1.r_num4.value == '0') {
                alert('객실수를 선택해 주세요!\n');
                document.form1.r_num4.focus();
                return;
        }
//        document.form1.action = "../reservation/reservation_02.aspx";
        if( (document.form1.r_type1.value != '' && document.form1.r_type2.value == '' && document.form1.r_type3.value == '' && document.form1.r_type4.value == '') || (document.form1.r_type1.value == '' && document.form1.r_type2.value != '' && document.form1.r_type3.value == '' && document.form1.r_type4.value == '') || (document.form1.r_type1.value == '' && document.form1.r_type2.value == '' && document.form1.r_type3.value != '' && document.form1.r_type4.value == '') || (document.form1.r_type1.value == '' && document.form1.r_type2.value == '' && document.form1.r_type3.value == '' && document.form1.r_type4.value != '')) {
//        	document.form1.action = "../reservation/listing_search.aspx";
        	document.form1.action = "../reservation/listing_main.aspx";
//	        document.form1.action = "../reservation/reservation_02.aspx";
	}
	else {
//        	document.form1.action = "../reservation/listing_search.aspx";
        	document.form1.action = "../reservation/listing_main.aspx";
//	        document.form1.action = "../reservation/reservation_02.aspx";
	}
	//checkInDate
	//checkOutDate
	//days

	document.form1.location1_index.value = document.form1.location1.selectedIndex;	
    document.form1.location2_index.value = document.form1.location2.selectedIndex;		
	document.form1.night_index.value = document.form1.night.selectedIndex;			
	document.form1.r_type1_index.value = document.form1.r_type1.selectedIndex;	
	document.form1.r_num1_index.value = document.form1.r_num1.selectedIndex;	
	document.form1.r_type2_index.value = document.form1.r_type2.selectedIndex;	
	document.form1.r_num2_index.value = document.form1.r_num2.selectedIndex;
	document.form1.r_type3_index.value = document.form1.r_type3.selectedIndex;	
	document.form1.r_num3_index.value = document.form1.r_num3.selectedIndex;
	document.form1.r_type4_index.value = document.form1.r_type4.selectedIndex;	
	document.form1.r_num4_index.value = document.form1.r_num4.selectedIndex;
	document.form1.h_level_index.value = document.form1.h_level.selectedIndex;			

	document.form1.submit();
}
            function toggleMenu(currMenu) {
            if (document.all) {
            thisMenu = eval("document.all." + currMenu + ".style")
            if (thisMenu.display == "block") {
            thisMenu.display = "none"
            }
            else {
            thisMenu.display = "block"
            }
            return false
            }
            else {
            return true
            }
            }
            
        function sawon() {

              window.open('../etc/sawon.aspx','','left=50, top=50, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=500, height=600"');
              }            

        function picopen(param1,param2,param3,param4,width, height) {
              if (width == null)
                width = 700;
                
              if (height == null)
                height = 710;
                
              var url = "view_image.aspx?h_code="+param1+"&main_img="+param2 +"&hidSi_Type="+param3+"&Img_Type="+param4;
              window.open(url,'','left=50, top=50, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width='+ width +', height=' + height + '"');
              }        

        function cost_bank(b_no) {
   
              var url = "http://www.hoteljapan.com/kor/reservation_check/cost_bank.aspx?bh_no="+ bh_no;
              window.open(url,'','left=50, top=50, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=700, height=500"');
        } 
        function cost_card(b_no) {
   
              var url = "http://www.hoteljapan.com/kor/reservation_check/cost_card.aspx?bh_no="+ bh_no;
              window.open(url,'','left=50, top=50, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=700, height=500"');
        }         


//    function sort(xsldoc){
//    xmldoc.documentElement.transformNodeToObject(xsldoc.documentElement,xmldso.XMLDocument);
//    }

    function sort(){ var xmldoc = xmlData.cloneNode(true); 
    xmlData.loadXML(xmldoc.documentElement.transformNode(xslData.XMLDocument))}
    
  function idsort()
  { 
    xslData.XMLDocument.selectSingleNode("root/CardBoard/xsl:for-each").setAttribute("order-by", "number(@id)");
  }
  
  ///호텔예약 선택
  ///young keun.song
  /*
  function reserve_contents(agrs)
  {
  
         var param = arguments[0];
         var h_code = arguments[1];  
         var temp_room = "";
  
         var ROOM_TYPE_CNT = document.getElementsByName("ROOM_TYPE_CNT["+param+"]")[0];          
         var span_price = document.getElementsByName("span_price["+param+"]")[0]; 
         var addnight = document.getElementsByName("addnight["+param+"]")[0];      
         var total_act_yen = document.getElementsByName("total_act_yen["+param+"]")[0];   
         var total_act_won = document.getElementsByName("total_act_won["+param+"]")[0]; 
         var roomcount = document.getElementsByName("roomcount["+param+"]")[0];                                          
         var block_confirm_check = document.getElementsByName("block_confirm_check["+param+"]")[0];  
     
         var ntemp = 0;
         
         for(var i=0;i<ROOM_TYPE_CNT.value;i++)
         {
             var t = i+1;
             
             var room_type = document.getElementsByName("room_type["+param+"]["+t+"]")[0];   
             
             if(room_type.checked==true)
             {
               if(t==1)
               {
                 temp_room = room_type.value+","+parseInt(total_act_yen.value)+","+parseInt(total_act_won.value)+","+roomcount.value+","+block_confirm_check.value;
               }
               else if(t>1)
               {
                 temp_room = temp_room +"|"+ room_type.value+","+parseInt(total_act_yen.value)+","+parseInt(total_act_won.value)+","+roomcount.value+","+block_confirm_check.value;
               }
                                    
               ntemp = ntemp+1;           
             }  
         }    
         
         
         
//         if(ntemp<1)
//         {
//            alert('적어도 하나의 룸타입을 선택하세요');
//            return;       
//         }
//         else
//         {roomcount
         		document.reserve.action = "reservation_listing.aspx?h_code="+h_code+"&param="+param+"&check_room="+temp_room+"&ntemp="+ntemp;
		         document.reserve.submit();  
//         }
         
       
  }
*/  
  
//function reserve(param,param2) {
//	var flag = '0';
//	var count = 0;
//	var count2 = 0;

//	var targetForm = document.reserve;
//	var r_type;
//	var r_num = "r_type_num"+param2;
//	for(var i=0;i<targetForm.elements[r_num].value;i++) {
//		r_type = "room_type"+param2+i;
//		if(targetForm.elements[r_type].checked){
//			flag = '1';
//			count++;
//		}
//	}

//  count2 = 1;


//  //alert(count2);
//  //alert(count);

//	if((count*1) > (count2*1)) {
//		alert('검색하신 조건은 룸타입수가 1개입니다. 1개 이하로 선택해주세요');
//		return;
//	}
//	else if(flag == '0') {
//		alert('적어도 하나의 룸타입을 선택하세요');
//		return;
//	}
//	else {

//		document.reserve.action = "reservation_listing.aspx?h_code="+param+"&count="+param2;
//		document.reserve.submit();
//	}

//}


function round (n, d) {
	n = n - 0;
	d = d || 2;

	var f = Math.pow(10, d);
	n = Math.round(n * f) / f;
	n += Math.pow(10, - (d + 1));
	n += '';

	return d == 0 ? n.substring(0, n.indexOf('.')) : n.substring(0, n.indexOf('.') + d + 1);
}
///통화형으로 변환
///young keun.song
function formatCurrency (n, d) {
	n = round (n, d);

	for (var i = n.indexOf('.') - 3; i > 0; i -= 3) {
		n = n.substring(0, i) + ',' + n.substring (i);
	}
	n = n.substring(0, n.indexOf('.'));
	return n;
}





function span_price_total(param)
{
alert('test');
}

//block_confirm_check
function block_confirm_check()
{
    var TempHtml = "1";
	var Confirm = document.getElementsByName("Confirm")[0];	
	Confirm.innerHTML = TempHtml;	

}


//block_confirm_wrtie
function block_confirm_write()
{
    var TempHtml = "1";
	var Confirm = document.getElementsByName("Confirm")[0].innerHTML;	
	var Confirm_write = document.getElementsByName("confirm_write")[0].innerHTML;		
	
	if(Confirm.innerHTML=='1')
	{
	    TempHtml = "<font class='tx_blue'><b>예약과 동시에 확정</b></font> 호텔입니다.</b></font>";
	}
	else
	{
	    TempHtml = "<font class='tx_gray'><b>1시간 이내 회신.</b></font>";	
	}
    Confirm_write.innerHTML=TempHtml;
}


///식사 형태 출력
///young keun.song
function Function_Food(param)
{
	var request_breack_use = document.getElementsByName("request_breack_use["+param+"]")[0].value;	
	var request_breack_inc = document.getElementsByName("request_breack_inc["+param+"]")[0].value;	
	var request_dinner_use = document.getElementsByName("request_dinner_use["+param+"]")[0].value;
	var request_dinner_inc = document.getElementsByName("request_dinner_inc["+param+"]")[0].value;
	var food = document.getElementsByName("food["+param+"]")[0].value;
    var spanfood = document.getElementsByName("spanfood["+param+"]")[0];

    var TempHtml = "";
	if(food != "N")
	{
	
		if(request_breack_use == "1")
		{
			if(request_breack_inc == "0")
			{					
	            TempHtml += "조식제공<br>(선택사항)<br>";				
			}
			else
			{
	            TempHtml += "조식 불포함<br>(추가선택가능)<br>";				
			}			
		}
		if(request_breack_use == "0")
		{
			if(request_breack_inc == "0")
			{					
	            TempHtml += "조식 제공<br>";	
			}
			else
			{
	            TempHtml += "조식 제공안함<br>(추가선택가능)<br>";				
			}			
		}		
		
	    if(request_dinner_use == "1")
	    {
			if(request_dinner_inc == "0")
			{					
	            TempHtml += "석식 불포함<br>(선택가능)<br>";					
			}
			else
			{
				TempHtml += "석식 포함<br>(선택가능)<br>";						
			}
			
		}
		if(request_dinner_use == "0")
		{
			if(request_dinner_inc == "0")
			{	
				TempHtml += "석식제공 안함<br>";					
			}
			else
			{
				TempHtml += "석식 제공<br>";					
			}					
		}	

        spanfood.innerHTML	= TempHtml;	
	}
}

///룸별 식사 형태 출력
///young keun.song
function Function_Room_Food(param,param1)
{
	var request_breack_use = document.getElementsByName("request_breack_use["+param+"]["+param1+"]")[0].value;	
	var request_breack_inc = document.getElementsByName("request_breack_inc["+param+"]["+param1+"]")[0].value;	
	var request_dinner_use = document.getElementsByName("request_dinner_use["+param+"]["+param1+"]")[0].value;
	var request_dinner_inc = document.getElementsByName("request_dinner_inc["+param+"]["+param1+"]")[0].value;
	var food = document.getElementsByName("food["+param+"]")[0].value;
    var spanfood = document.getElementsByName("spanfood["+param+"]["+param1+"]")[0];

    var TempHtml = "";
	if(food == "N")
	{
	
		if(request_breack_use == "1")
		{
			if(request_breack_inc == "0")
			{					
	            TempHtml += "조식제공<br>(선택사항)<br>";				
			}
			else
			{
	            TempHtml += "조식 불포함<br>(추가선택가능)<br>";				
			}			
		}
		if(request_breack_use == "0")
		{
			if(request_breack_inc == "0")
			{					
	            TempHtml += "조식 제공<br>";	
			}
			else
			{
	            TempHtml += "조식 제공안함<br>(추가선택가능)<br>";				
			}			
		}		
		
	    if(request_dinner_use == "1")
	    {
			if(request_dinner_inc == "0")
			{					
	            TempHtml += "석식 불포함<br>(선택가능)<br>";					
			}
			else
			{
				TempHtml += "석식 포함<br>(선택가능)<br>";						
			}
			
		}
		if(request_dinner_use == "0")
		{
			if(request_dinner_inc == "0")
			{	
				TempHtml += "석식제공 안함<br>";					
			}
			else
			{
				TempHtml += "석식 제공<br>";					
			}					
		}	

        spanfood.innerHTML	= TempHtml;	
	}
}


//원하는 문자열 전부 replace 하기
//young keun.song
String.prototype.replaceAll = function(from, to) { 
return this.replace(new RegExp(from, "g"), to); 
} 



function func_replace(str)
{
    str = str.replaceAll("&lt;","<");  
    str = str.replaceAll("&gt;",">");  
    str = str.replaceAll("&amp;","&");   
    return str;    
}
										
//review
function str_replace(code,str)
{
    var code = "";
    if(code=="h_review")
    {
        code= document.getElementsByName("h_review")[0];    
    }
    else if(code=="h_map")
    {
        code= document.getElementsByName("h_map")[0]; 
    }
    else if(code=="h_room_info")
    {
        code= document.getElementsByName("h_room_info")[0]; 
    }
    else if(code=="h_facil")
    {
        code= document.getElementsByName("h_facil")[0]; 
    }
    else if(code=="h_basic")
    {
        code= document.getElementsByName("h_basic")[0]; 
    }            
    
	
	var tempHtml = "";
	tempHtml =  func_replace(str);
	code.innerHTML = tempHtml;
}

											
																
///식사상태값 정의
///young keun.song
function Foon_False(param)
{
    var food = document.getElementsByName("food["+param+"]")[0];
	food.value = "N";
}
///식사상태값 정의
///young keun.song
function breack_use(code,value,param)
{
	var request_breack_use = document.getElementsByName("request_breack_use["+param+"]")[0];
	var request_breack_inc = document.getElementsByName("request_breack_inc["+param+"]")[0];
	var request_dinner_use = document.getElementsByName("request_dinner_use["+param+"]")[0];
	var request_dinner_inc = document.getElementsByName("request_dinner_inc["+param+"]")[0];				

    if(code=='b_use')
    {
       request_breack_use.value = value;
    }
    else  if(code=='b_inc')
    {
       request_breack_inc.value = value;
    }    
    else  if(code=='d_use')
    {
       request_dinner_use.value = value;
    }    
    else  if(code=='d_inc')
    {
       request_dinner_inc.value = value;
    }            
}




function Check_Price_M(param,param1)
{
         var ROOM_TYPE_CNT = document.getElementsByName("ROOM_TYPE_CNT["+param+"]")[0];          
         var span_price = document.getElementsByName("span_price["+param+"]")[0]; 
         //var addnight = document.getElementsByName("addnight["+param+"]")[0];                    
   
         var total_price=0;
         var total_price_r = 0;         
         var ntemp = 0;
         
         for(var i=0;i<ROOM_TYPE_CNT.value;i++)
         {
             var t = i+1;
             var room_type = document.getElementsByName("room_type["+param+"]["+t+"]")[0];            
             
             if(room_type.checked==true)
             {
                var room_price = document.getElementsByName("room_price["+param+"]["+t+"]")[0];
                var room_priceW = document.getElementsByName("room_priceW["+param+"]["+t+"]")[0]; 
                
                //total_price = parseInt(total_price) + parseInt(room_price.value);
                //total_price_r = parseInt(total_price_r) + parseInt(room_priceW.value);   
                total_price = total_price + Math.ceil(room_price.value);
                total_price_r = total_price_r + Math.ceil(room_priceW.value);   
                
                             
             }  
         }     
         
    var room_priceStr  = formatCurrency(total_price,0);
	var room_price2Str = formatCurrency(total_price_r,0);

  span_price.innerHTML  = '<IMG src=\"../img/mark_yen_02.gif\" align=absMiddle><FONT class=tx_cost>' + room_price2Str + '</FONT> <FONT class=tx_cost3>(<IMG src=\"../img/mark_won_02.gif\" align=absMiddle>' +	room_priceStr  + ')</FONT>&nbsp;&nbsp;';       
                              
}

function check_price(param,param2) {
	var flag = '0';
	var count = 0;
	var count2 = 0;
	

	var room_price = 0;
	var room_price2 = 0;

	var room_priceStr ='';
	var room_price2Str ='';


	var targetForm = document.reserve;
	var r_type;
	var r_price;
	var r_price2;
	var r_num = "r_type_num"+param2;

	var divname;
	var divname_obj;


	for(var i=0;i<targetForm.elements[r_num].value;i++) {
		r_type = "room_type"+param2+i;
		r_price = "room_price"+param2+i;
		r_price2 = "room_priceW"+param2+i;
				
				if (document.getElementById(r_type) != null) {
						if(targetForm.elements[r_type].checked ){
							room_price = room_price + (targetForm.elements[r_price].value *1);
							room_price2 = room_price2 + (targetForm.elements[r_price2].value *1);
						}
				}		

	}

	room_priceStr = formatCurrency(room_price,0);
	room_price2Str =formatCurrency(room_price2,0);


  divname = "total_price" + param2;
  divname_obj = document.getElementById(divname) ;

  divname_obj.innerHTML  = '<font class="tx_gray tx_le"><b>1 박 합계 : </b></font><img src="../img/mark_yen_02.gif" align="absmiddle"><font class="tx_cost">' + room_priceStr + '</font> <font class="tx_cost3">(<img src="../img/mark_won_02.gif" align="absmiddle">' +	room_price2Str + ')</font>&nbsp;&nbsp;&nbsp;'

}

function cdate_check()
{
    document.all.loadingBar.style.display='none';
    alert('내일 체크인 부터 검색 및 예약이 가능합니다!.');
    history.go(-1);
}


//   		function goHotel(param){
                //parent.document.location.href="../reservation/reservation_listing.aspx?h_code="+param;
//        }

//                          <input type="hidden" name="room_price[]" value="{$HP_ROOM_MARGIN}"></input>
//                          <input type="hidden" name="room_priceW[]" value="{$HP_ROOM_MARGIN_PRICE}"></input>
//                          <input type="hidden" name="room_num[]" value="{$ROOM_CNT}"></input>
//                          <input type="hidden" name="h_code[]" value="{$H_CODE}"></input>
//                          span_price[]

   function Recomm_Control(divname) {
   
            switch(parseInt(divname)) {  
                case 11 : 
                    document.getElementById("recom1_1").style.display = "";          
                    document.getElementById("recom1_2").style.display = "none";                                                           
                    document.getElementById("recom1_3").style.display = "none";      
                    document.getElementById("recom1_4").style.display = "none"; 
                break;
                case 12 : 
                    document.getElementById("recom1_1").style.display = "none";          
                    document.getElementById("recom1_2").style.display = "";                                                           
                    document.getElementById("recom1_3").style.display = "none";      
                    document.getElementById("recom1_4").style.display = "none"; 
                break;       
                case 13 : 
                    document.getElementById("recom1_1").style.display = "none";    
                    document.getElementById("recom1_2").style.display = "none";                                                          
                    document.getElementById("recom1_3").style.display = "";      
                    document.getElementById("recom1_4").style.display = "none"; 
                break;  
                case 14 : 
                    document.getElementById("recom1_1").style.display = "none";    
                    document.getElementById("recom1_2").style.display = "none";                                                          
                    document.getElementById("recom1_3").style.display = "none";        
                    document.getElementById("recom1_4").style.display = "";  
                break; 
                case 21 : 
                    document.getElementById("recom2_1").style.display = "";          
                    document.getElementById("recom2_2").style.display = "none";                                                           
                    document.getElementById("recom2_3").style.display = "none";      
                    document.getElementById("recom2_4").style.display = "none"; 
                break;
                case 22 : 
                    document.getElementById("recom2_1").style.display = "none";    
                    document.getElementById("recom2_2").style.display = "";                                                           
                    document.getElementById("recom2_3").style.display = "none";      
                    document.getElementById("recom2_4").style.display = "none"; 
                break;       
                case 23 : 
                    document.getElementById("recom2_1").style.display = "none";    
                    document.getElementById("recom2_2").style.display = "none";                                                          
                    document.getElementById("recom2_3").style.display = "";      
                    document.getElementById("recom2_4").style.display = "none"; 
                break;  
                case 24 : 
                    document.getElementById("recom2_1").style.display = "none";    
                    document.getElementById("recom2_2").style.display = "none";                                                          
                    document.getElementById("recom2_3").style.display = "none";        
                    document.getElementById("recom2_4").style.display = "";  
                break;       
                case 31 : 
                    document.getElementById("recom3_1").style.display = "";          
                    document.getElementById("recom3_2").style.display = "none";                                                           
                    document.getElementById("recom3_3").style.display = "none";      
                    document.getElementById("recom3_4").style.display = "none"; 
                break;
                case 32 : 
                    document.getElementById("recom3_1").style.display = "none";    
                    document.getElementById("recom3_2").style.display = "";                                                           
                    document.getElementById("recom3_3").style.display = "none";      
                    document.getElementById("recom3_4").style.display = "none"; 
                break;       
                case 33 : 
                    document.getElementById("recom3_1").style.display = "none";    
                    document.getElementById("recom3_2").style.display = "none";                                                          
                    document.getElementById("recom3_3").style.display = "";      
                    document.getElementById("recom3_4").style.display = "none"; 
                break;  
                case 34 : 
                    document.getElementById("recom3_1").style.display = "none";    
                    document.getElementById("recom3_2").style.display = "none";                                                          
                    document.getElementById("recom3_3").style.display = "none";        
                    document.getElementById("recom3_4").style.display = "";  
                break;    
                case 41 : 
                    document.getElementById("recom4_1").style.display = "";          
                    document.getElementById("recom4_2").style.display = "none";                                                           
                    document.getElementById("recom4_3").style.display = "none";      
                    document.getElementById("recom4_4").style.display = "none"; 
                break;
                case 42 : 
                    document.getElementById("recom4_1").style.display = "none";    
                    document.getElementById("recom4_2").style.display = "";                                                           
                    document.getElementById("recom4_3").style.display = "none";      
                    document.getElementById("recom4_4").style.display = "none"; 
                break;       
                case 43 : 
                    document.getElementById("recom4_1").style.display = "none";    
                    document.getElementById("recom4_2").style.display = "none";                                                          
                    document.getElementById("recom4_3").style.display = "";      
                    document.getElementById("recom4_4").style.display = "none"; 
                break;  
                case 44 : 
                    document.getElementById("recom4_1").style.display = "none";    
                    document.getElementById("recom4_2").style.display = "none";                                                          
                    document.getElementById("recom4_3").style.display = "none";        
                    document.getElementById("recom4_4").style.display = "";  
                break;      
                case 45 :
                    document.getElementById("recom5_1").style.display = "";    
                    document.getElementById("recom5_2").style.display = "none";                                                          
                    document.getElementById("recom5_3").style.display = "none";        
                    document.getElementById("recom5_4").style.display = "none";  
                break; 
                case 46 : 
                    document.getElementById("recom5_1").style.display = "none";    
                    document.getElementById("recom5_2").style.display = "";                                                          
                    document.getElementById("recom5_3").style.display = "none";        
                    document.getElementById("recom5_4").style.display = "none";  
                break; 
                case 47 : 
                    document.getElementById("recom5_1").style.display = "none";    
                    document.getElementById("recom5_2").style.display = "none";                                                          
                    document.getElementById("recom5_3").style.display = "";        
                    document.getElementById("recom5_4").style.display = "none";  
                break; 
                case 48 : 
                    document.getElementById("recom5_1").style.display = "none";    
                    document.getElementById("recom5_2").style.display = "none";                                                          
                    document.getElementById("recom5_3").style.display = "none";        
                    document.getElementById("recom5_4").style.display = "";  
                break;                                       
              
            }     
            
              
    }
    
   function Cate_Control(divname) {
  
            switch(parseInt(divname)) {  
           
                case 1 : 
                    document.getElementById("Business").style.display = "";          
                    document.getElementById("Shopping").style.display = "none";                                                           
                    document.getElementById("Tourist").style.display = "none";      
//                    document.getElementById("Residence").style.display = "none"; 
                break;
                case 2 : 
                    document.getElementById("Business").style.display = "none";          
                    document.getElementById("Shopping").style.display = "none";                                                           
                    document.getElementById("Tourist").style.display = "";      
//                    document.getElementById("Residence").style.display = "none"; 
                break;       
                case 3 : 
                    document.getElementById("Business").style.display = "none";          
                    document.getElementById("Shopping").style.display = "";                                                           
                    document.getElementById("Tourist").style.display = "none";      
//                    document.getElementById("Residence").style.display = "none"; 
                break;       
                case 4 : 
                    document.getElementById("Business").style.display = "none";          
                    document.getElementById("Shopping").style.display = "none";                                                           
                    document.getElementById("Tourist").style.display = "none";      
                    document.getElementById("Residence").style.display = ""; 
                break;                                      
                }
    }    
    
   function information_Control(divname) {
  
            switch(parseInt(divname)) {  
           
                case 1 : 
                    document.getElementById("information_01").style.display = "";          
                    document.getElementById("information_02").style.display = "none";                                                           
                    document.getElementById("information_03").style.display = "none";      
                    document.getElementById("information_04").style.display = "none"; 
                    document.getElementById("information_05").style.display = "none";      
                    document.getElementById("information_06").style.display = "none"; 
                    document.getElementById("information_07").style.display = "none";      
                break;
                case 2 : 
                    document.getElementById("information_01").style.display = "none";        
                    document.getElementById("information_02").style.display = "";                                                           
                    document.getElementById("information_03").style.display = "none";      
                    document.getElementById("information_04").style.display = "none"; 
                    document.getElementById("information_05").style.display = "none";      
                    document.getElementById("information_06").style.display = "none"; 
                    document.getElementById("information_07").style.display = "none";  
                break;       
                case 3 : 
                    document.getElementById("information_01").style.display = "none";      
                    document.getElementById("information_02").style.display = "none";                                                           
                    document.getElementById("information_03").style.display = "";  
                    document.getElementById("information_04").style.display = "none"; 
                    document.getElementById("information_05").style.display = "none";      
                    document.getElementById("information_06").style.display = "none"; 
                    document.getElementById("information_07").style.display = "none";  
                break;       
                case 4 : 
                    document.getElementById("information_01").style.display = "none";         
                    document.getElementById("information_02").style.display = "none";                                                           
                    document.getElementById("information_03").style.display = "none";      
                    document.getElementById("information_04").style.display = "";  
                    document.getElementById("information_05").style.display = "none";      
                    document.getElementById("information_06").style.display = "none"; 
                    document.getElementById("information_07").style.display = "none";  
                break;     
                case 5 : 
                    document.getElementById("information_01").style.display = "none";         
                    document.getElementById("information_02").style.display = "none";                                                           
                    document.getElementById("information_03").style.display = "none";      
                    document.getElementById("information_04").style.display = "none"; 
                    document.getElementById("information_05").style.display = "";    
                    document.getElementById("information_06").style.display = "none"; 
                    document.getElementById("information_07").style.display = "none";  
                break;   
                case 6 : 
                    document.getElementById("information_01").style.display = "none";         
                    document.getElementById("information_02").style.display = "none";                                                           
                    document.getElementById("information_03").style.display = "none";      
                    document.getElementById("information_04").style.display = "none"; 
                    document.getElementById("information_05").style.display = "none";      
                    document.getElementById("information_06").style.display = "";  
                    document.getElementById("information_07").style.display = "none";  
                break;   
                case 7 : 
                    document.getElementById("information_01").style.display = "none";         
                    document.getElementById("information_02").style.display = "none";                                                           
                    document.getElementById("information_03").style.display = "none";      
                    document.getElementById("information_04").style.display = "none"; 
                    document.getElementById("information_05").style.display = "none";      
                    document.getElementById("information_06").style.display = "none"; 
                    document.getElementById("information_07").style.display = "";  
                break;   		
                }
    }  

    function faq_Control(divname) {
  
            switch(parseInt(divname)) {  
           
                case 1 : 
                    document.getElementById("all").style.display = "";          
                    document.getElementById("japanhotel").style.display = "none";                                                           
                    document.getElementById("backpack").style.display = "none";      
                    document.getElementById("ticket").style.display = "none"; 
                    document.getElementById("account").style.display = "none";      
                    document.getElementById("guide").style.display = "none"; 
                    document.getElementById("cancel").style.display = "none";  
					document.getElementById("etc").style.display = "none"; 
                break;
                case 2 : 
                    document.getElementById("all").style.display = "none";          
                    document.getElementById("japanhotel").style.display = "";                                                           
                    document.getElementById("backpack").style.display = "none";      
                    document.getElementById("ticket").style.display = "none"; 
                    document.getElementById("account").style.display = "none";      
                    document.getElementById("guide").style.display = "none"; 
                    document.getElementById("cancel").style.display = "none";  
					document.getElementById("etc").style.display = "none"; 
                break;       
                case 3 : 
                   document.getElementById("all").style.display = "none";          
                    document.getElementById("japanhotel").style.display = "none";                                                           
                    document.getElementById("backpack").style.display = "";      
                    document.getElementById("ticket").style.display = "none"; 
                    document.getElementById("account").style.display = "none";      
                    document.getElementById("guide").style.display = "none"; 
                    document.getElementById("cancel").style.display = "none";  
					document.getElementById("etc").style.display = "none";  
                break;       
                case 4 : 
                   document.getElementById("all").style.display = "none";          
                    document.getElementById("japanhotel").style.display = "none";                                                           
                    document.getElementById("backpack").style.display = "none";      
                    document.getElementById("ticket").style.display = ""; 
                    document.getElementById("account").style.display = "none";      
                    document.getElementById("guide").style.display = "none"; 
                    document.getElementById("cancel").style.display = "none";  
					document.getElementById("etc").style.display = "none"; 
                break;     
                case 5 : 
                    document.getElementById("all").style.display ="none";          
                    document.getElementById("japanhotel").style.display = "none";                                                           
                    document.getElementById("backpack").style.display = "none";      
                    document.getElementById("ticket").style.display = "none"; 
                    document.getElementById("account").style.display = "";      
                    document.getElementById("guide").style.display = "none"; 
                    document.getElementById("cancel").style.display = "none";  
					document.getElementById("etc").style.display = "none"; 
                break;   
                case 6 : 
                   document.getElementById("all").style.display = "none";         
                    document.getElementById("japanhotel").style.display = "none";                                                           
                    document.getElementById("backpack").style.display = "none";      
                    document.getElementById("ticket").style.display = "none"; 
                    document.getElementById("account").style.display = "none";      
                    document.getElementById("guide").style.display = ""; 
                    document.getElementById("cancel").style.display = "none";  
					document.getElementById("etc").style.display = "none"; 
                break;   
                case 7 : 
                   document.getElementById("all").style.display = "none";          
                    document.getElementById("japanhotel").style.display = "none";                                                           
                    document.getElementById("backpack").style.display = "none";      
                    document.getElementById("ticket").style.display = "none"; 
                    document.getElementById("account").style.display = "none";      
                    document.getElementById("guide").style.display = "none"; 
                    document.getElementById("cancel").style.display = "";  
					document.getElementById("etc").style.display = "none"; 
			    break;   
                case 8 : 
                  document.getElementById("all").style.display = "none";          
                    document.getElementById("japanhotel").style.display = "none";                                                           
                    document.getElementById("backpack").style.display = "none";      
                    document.getElementById("ticket").style.display = "none"; 
                    document.getElementById("account").style.display = "none";      
                    document.getElementById("guide").style.display = "none"; 
                    document.getElementById("cancel").style.display = "none";  
					document.getElementById("etc").style.display = "";
                break;   		
                }
    }
	
	
	   function mainsearch_Control(divname) {
  
            switch(parseInt(divname)) {  
           
                case 1 : 
                    document.getElementById("searchhotel").style.display = "";          
                    document.getElementById("searchbp").style.display = "none";                                                           
                break;
                case 2 : 
                    document.getElementById("searchhotel").style.display = "none";          
                    document.getElementById("searchbp").style.display = "";                                                           
                break;                                     
                }
    }   
	 function hotelsearch_Control(divname) {
  
            switch(parseInt(divname)) {  
           
                case 1 : 
                    document.getElementById("hotel01").style.display = "";          
                    document.getElementById("hotel02").style.display = "none";                                                           
                break;
                case 2 : 
                    document.getElementById("hotel01").style.display = "none";          
                    document.getElementById("hotel02").style.display = "";                                                           
                break;                                     
                }
    }   
	
	   function ct_Control(divname) {
  
            switch(parseInt(divname)) {  
           
                case 1 : 
                    document.getElementById("ct01").style.display = "";          
                    document.getElementById("ct02").style.display = "none";
					document.getElementById("ct03").style.display = "none";
                break;
                case 2 : 
                    document.getElementById("ct01").style.display = "none";          
                    document.getElementById("ct02").style.display = "";    
					document.getElementById("ct03").style.display = "none";  
                break;  
				case 3 : 
                    document.getElementById("ct01").style.display = "none";          
                    document.getElementById("ct02").style.display = "none";   
					document.getElementById("ct03").style.display = "";  
                break;  
                }
    }   
	
	
	
	   function frt_Control(divname) {
  
            switch(parseInt(divname)) {  
           
                case 1 : 
                    document.getElementById("frt01").style.display = "";          
                    document.getElementById("frt02").style.display = "none";
					document.getElementById("frt03").style.display = "none";
                break;
                case 2 : 
                    document.getElementById("frt01").style.display = "none";          
                    document.getElementById("frt02").style.display = "";    
					document.getElementById("frt03").style.display = "none";  
                break;  
				case 3 : 
                    document.getElementById("frt01").style.display = "none";          
                    document.getElementById("frt02").style.display = "none";   
					document.getElementById("frt03").style.display = "";  
                break;  
                }
    }   
	
	
	
	
	  function maintheme_Control(divname) {
  
            switch(parseInt(divname)) {  
           
                case 1 : 
                    document.getElementById("tm_honeymoon").style.display = "";          
                    document.getElementById("tm_ryokan").style.display = "none";                                                           
                    document.getElementById("tm_golf").style.display = "none";      
                    document.getElementById("tm_kid").style.display = "none"; 
                break;
                case 2 : 
                    document.getElementById("tm_honeymoon").style.display = "none";          
                    document.getElementById("tm_ryokan").style.display = "";                                                           
                    document.getElementById("tm_golf").style.display = "none";      
                    document.getElementById("tm_kid").style.display = "none"; 
                break;       
                case 3 : 
                    document.getElementById("tm_honeymoon").style.display = "none";          
                    document.getElementById("tm_ryokan").style.display = "none";                                                           
                    document.getElementById("tm_golf").style.display = "";      
                    document.getElementById("tm_kid").style.display = "none"; 
                break;       
                case 4 : 
                    document.getElementById("tm_honeymoon").style.display = "none";          
                    document.getElementById("tm_ryokan").style.display = "none";                                                           
                    document.getElementById("tm_golf").style.display = "none";      
                    document.getElementById("tm_kid").style.display = ""; 
                break;                                      
                }
    }    
	
	
	<!--theme zone theme park-->
	
	   function tm_Control(divname) {
  
            switch(parseInt(divname)) {  
           
                case 1 : 
                    document.getElementById("tm01").style.display = "";          
                    document.getElementById("tm02").style.display = "none";
					document.getElementById("tm03").style.display = "none";
					
                break;
                case 2 : 
                    document.getElementById("tm01").style.display = "none";          
                    document.getElementById("tm02").style.display = "";  
					document.getElementById("tm03").style.display = "none";
				  
                break;  
				case 3 : 
                    document.getElementById("tm01").style.display = "none";          
                    document.getElementById("tm02").style.display = "none";  
					document.getElementById("tm03").style.display = "";
				break;
                }
    }   
	
	<!--theme zone exhibitionhall-->
	 function tmm_Control(divname) {
  
            switch(parseInt(divname)) {  
           
                case 1 : 
                    document.getElementById("tmm01").style.display = "";          
                    document.getElementById("tmm02").style.display = "none";
					document.getElementById("tmm03").style.display = "none";
					
                break;
                case 2 : 
                    document.getElementById("tmm01").style.display = "none";          
                    document.getElementById("tmm02").style.display = ""; 
					document.getElementById("tmm03").style.display = "none";
				  break;
                case 3 : 
                    document.getElementById("tmm01").style.display = "none";          
                    document.getElementById("tmm02").style.display = "none"; 
					document.getElementById("tmm03").style.display = ""; 
                break;  
				
                }
    }   
	
	<!--theme zone designershotel-->
	 function tmd_Control(divname) {
  
            switch(parseInt(divname)) {  
           
                case 1 : 
                    document.getElementById("tmd01").style.display = "";          
                    document.getElementById("tmd02").style.display = "none";
			
					
                break;
                case 2 : 
                    document.getElementById("tmd01").style.display = "none";          
                    document.getElementById("tmd02").style.display = ""; 
				
			               
                break;  
				
                }
    }   
	<!--theme zone business hotel-->
	 function tmb_Control(divname) {
  
            switch(parseInt(divname)) {  
           
                case 1 : 
                    document.getElementById("tmb01").style.display = "";          
                    document.getElementById("tmb02").style.display = "none";
					document.getElementById("tmb03").style.display = "none";
			
					
                break;
                case 2 : 
                    document.getElementById("tmb01").style.display = "none";          
                    document.getElementById("tmb02").style.display = ""; 
					document.getElementById("tmb03").style.display = "none";
				break;
                case 3 : 
                    document.getElementById("tmb01").style.display = "none";          
                    document.getElementById("tmb02").style.display = "none"; 
					document.getElementById("tmb03").style.display = "";
			               
                break;  
				
                }
    }   



	

        
    function move_page(param,param2) {
		document.form1.h_code.value = param;
		document.form1.image_no.value = param2;
		document.form1.action = "view_image.aspx";
		document.form1.submit();
	}
	
function Resizing(img, limit_width, limit_height) 
{  
    if(img.width > limit_width || img.height > limit_height) {
        if((img.width/img.height) > (limit_width/limit_height)) {
            img.width = limit_width;
        } else {
            img.height = limit_height;
        }
    }
    if(img.width < limit_width || img.height < limit_height) {
        if((img.width/img.height) < (limit_width/limit_height)) {
            img.height = limit_height;
        } else {
            img.width = limit_width;
        }
    }
}


    
   		function go_url(mode){   
   	
   		    if(mode=='1')
   		    {
   		        document.location.href="check_02.aspx";
   		    }
       	
   		    if(mode=='2')
   		    {
   		        document.location.href="check_02_01.aspx";
   		    }   		
                
        }        
        
        function category(str)
        {
        
        }
        ///해더 검색 xslt 값 셋팅
        ///young keun.song
        function HotelSearch(args)
        {
            document.form1.h_name.value = arguments[0];
            document.form1.night.selectedIndex = arguments[1];        
	        document.form1.location1.selectedIndex = arguments[2];	        
            //document.form1.location2.selectedIndex = arguments[3];		
		    document.form1.h_level.selectedIndex = arguments[4];
            document.form1.checkInDate.value = arguments[5];    
            document.form1.checkOutDate.value = arguments[6];  
	        document.form1.r_num1.selectedIndex = arguments[7];		
	        document.form1.r_num2.selectedIndex = arguments[8];		
	        document.form1.r_num3.selectedIndex = arguments[9];	
	        document.form1.r_num4.selectedIndex = arguments[10];
	        document.form1.r_type1.selectedIndex = arguments[11];
	        document.form1.r_type2.selectedIndex = arguments[12];
	        document.form1.r_type3.selectedIndex = arguments[13];
	        document.form1.r_type4.selectedIndex = arguments[14];
	        document.form1.days.value = arguments[15];	
	        
      	    if(parseInt(arguments[12])>0)  
      	    {
      	        document.all["pro2"].style.display = "";
      	    }  	        
      	    if(parseInt(arguments[13])>0)  
      	    {
      	        document.all["pro3"].style.display = "";
      	    }  	        
   
      	    if(parseInt(arguments[14])>0)  
      	    {
      	        document.all["pro4"].style.display = "";
      	    }  	             
	        
        }
        
        //해더에서 도시 선택에 대한 셀렉트에 대한 값 설정때문에 수정
        ///young keun.song
        function  HotelSearch_location2(args)
        {
            document.form1.location1.selectedIndex = arguments[0];
        }       
        

function go() {


//	if(document.form1.room_type11.value == '' && document.form1.room_type12.value == '' && document.form1.room_type13.value == '' && document.form1.room_type14.value == '') {
//                alert('객실을 적어도 하나는 선택해 주세요!');
//		document.form1.room_type11.focus();
//                return;
//        }
//        if(document.form1.room_type11.value != '' && document.form1.room_num11.value == '0') {
//                alert('객실수를 선택해 주세요!');
//                document.form1.room_num11.focus();
//                return;
//        }
//        if(document.form1.room_type12.value != '' && document.form1.room_num12.value == '0') {
//                alert('객실수를 선택해 주세요!');
//                document.form1.room_num12.focus();
//                return;
//        }
//        if(document.form1.room_type13.value != '' && document.form1.room_num13.value == '0') {
//                alert('객실수를 선택해 주세요!');
//                document.form1.room_num13.focus();
//                return;
//        }
//        if(document.form1.room_type14.value != '' && document.form1.room_num14.value == '0') {
//                alert('객실수를 선택해 주세요!');
//                document.form1.room_num14.focus();
//                return;
//        }
//	if(document.form1.chg.value != '1') {
////<%
////	int bbbb = 0;
////	for(int i=0;i<r_type_num;i++) {
////		if(r_type[i].length() == 0) continue;
////		for(int k=0;k<r_num[i];k++) {
////%>
////			if(document.form1.lastname<%=bbbb+1%><%=k+1%>.value == '' || document.form1.firstname<%=bbbb+1%><%=k+1%>.value == '') {
////				alert('객실수에 맞게 적어도 한분의 숙박자명을 입력하셔야 합니다.');
////				if(document.form1.lastname<%=bbbb+1%><%=k+1%>.value == '') 
////					document.form1.lastname<%=bbbb+1%><%=k+1%>.focus();
////				else
////					document.form1.firstname<%=bbbb+1%><%=k+1%>.focus();
////				return;
////			}
////			if(abc(document.form1.lastname<%=bbbb+1%><%=k+1%>.value) == false) {
////				alert('영문만 입력 가능합니다.');
////				document.form1.lastname<%=bbbb+1%><%=k+1%>.focus();
////				return;
////			}
////			if(abc(document.form1.firstname<%=bbbb+1%><%=k+1%>.value) == false) {
////				alert('영문만 입력 가능합니다.');
////				document.form1.firstname<%=bbbb+1%><%=k+1%>.focus();
////				return;
////			}
////			
////<%
////		}
////		bbbb++;
////	}
////%>
////	}
////	if(document.form1.chg.value == '1') {
////		alert('예약정보가 바뀌었습니다. 자동으로 재검색이 된 다음에 예약정보를 확인후 예약버튼을 눌러주세요.');
////		reserve();
////		return;
////	}

////<%
////	if(session_id.length() == 0) {
////		if(o_name_flag.equals("1")) {
////%>
////		if(document.form1.o_name_chk.value =='0' || document.form1.o_name.value == '') {
////			alert('비회원예약에 필요한 이름을 입력해 주세요.');
////			document.form1.o_name.focus();
////			return;
////		}
////<%
////		}
////%>
////		if(abc(document.form1.o_name.value) == false) {
////			alert('영문만 입력 가능합니다.');
////			document.form1.o_name.focus();
////			return;
////		}
////		if(document.form1.o_name.value == '') {
////			alert('비회원예약에 필요한 이름을 입력해 주세요.');
////			document.form1.o_name.focus();
////			return;
////		}
////		if(abc(document.form1.o_name.value) == false) {
////			alert('영문만 입력 가능합니다.');
////			document.form1.o_name.focus();
////			return;
////		}
////<%
////		if(o_tel_flag.equals("1")) {
////%>
////		if(document.form1.o_tel_chk.value == '0' || document.form1.o_tel.value == '') {
////			alert('비회원 예약에 필요한 전화번호를 입력해 주세요');
////			document.form1.o_tel.focus();
////			return;
////		}
////<%
////		}
////%>
////		if(numchk(document.form1.o_tel.value) == false) {
////			alert('숫자만 입력 가능합니다.');
////			document.form1.o_tel.focus();
////			return;
////		}
////		if(document.form1.o_tel.value == '') {
////			alert('비회원 예약에 필요한 전화번호를 입력해 주세요');
////			document.form1.o_tel.focus();
////			return;
////		}
////		if(numchk(document.form1.o_tel.value) == false) {
////			alert('숫자만 입력 가능합니다.');
////			document.form1.o_tel.focus();
////			return;
////		}
////<%
////		if(o_email_flag.equals("1")) {
////%>
////		if(document.form1.o_email_chk.value == '0' || document.form1.o_email.value == '') {
////			alert('비회원 예약에 필요한 이메일을 입력해 주세요');
////			document.form1.o_email.focus();
////			return;
////		}
////<%
////		}
////%>

////		
////		if(document.form1.o_email.value == '') {
////			alert('비회원 예약에 필요한 이메일을 입력해 주세요');
////			document.form1.o_email.focus();
////			return;
////		}
////		if (document.form1.o_email.value =='' || document.form1.o_email.value.length <= 6 || 
////			document.form1.o_email.value.indexOf ('@', 0) == -1 || document.form1.o_email.value.indexOf ('.', 0) == -1) {
////		        alert("'' " + document.form1.o_email.value + " '', 은 이메일주소가 아닙니다"); 
////		        return; 
////	    }
////		
////		if(document.form1.o_hp_chk.value == '0') {
////			document.form1.o_hp.value = '';
////		}
////		else {
////			if(numchk(document.form1.o_hp.value) == false) {
////				alert('숫자만 입력 가능합니다.');
////				document.form1.o_hp.focus();
////				return;
////			}
////		}
////<%
////	}
////%>

//	document.form1.action="reservation_041.aspx";
//	document.form1.submit();
}
function abc(str){
	var flag = 0;
	c=new Array(str.length);
	for(var i=0;i<str.length;i++){
		c[i]=str.charCodeAt(i);
		if(!((c[i] >= 97 && c[i] <= 122) || ( c[i] >= 65 && c[i] <= 90) || c[i] == 32 || c[i] == 64 || c[i] == 46 || c[i] == 45 || (c[i] >= 48 && c[i] <=57)))
		 flag = 1;
	}
	if(flag == 1) {
		return false;
	}
};
function numchk(str){
	var flag = 0;
	c=new Array(str.length);
	for(var i=0;i<str.length;i++){
		c[i]=str.charCodeAt(i);
		if(!(c[i] >= 48 && c[i] <=57))
		 flag = 1;
	}
	if(flag == 1) {
		return false;
	}
};
function chgInfo() {
	document.form1.chg.value = '1';
}

function getReSize()
{
       try {
              var objFrame = document.getElementById("ifrm");
              var objBody = ifrm.document.body; 

              ifrmHeight = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight); 

              if (ifrmHeight > 100) { 
                     objFrame.style.height = ifrmHeight; 
              } else {
                     objFrame.style.height = 100;
              } 
              objFrame.style.width = '99%'
       } catch(e) {
       };
} 

function getRetry()
{
       getReSize(); 
       setTimeout('getRetry()',50);
}
getRetry();
function selNum(param){
        var targetForm = document.form1;
        var r_num = "room_num1"+param;
        var r_type = "room_type1"+param;
        
//        if(targetForm.elements[r_type].value == '')
//                targetForm.elements[r_num].selectedIndex = 0;
//        else
//                targetForm.elements[r_num].selectedIndex = 1;

	//chgInfo();
}
function addRoom() {
        var count = 0;
        for(i=1;i<4;i++) {
                name = 'pro'+(i+1);
                if(document.all[name].style.display == "") count++;
        }
        if(count == 0) {
                name = 'pro2'
                document.all[name].style.display = "";
        }
        else if(count == 1) {
                name = 'pro3'
                document.all[name].style.display = "";
        }
        else if(count == 2) {
                name = 'pro4'
                document.all[name].style.display = "";
        }
        else if(count == 3) {
                alert('더이상 룸타입을 추가 하실수 없습니다.');
                return;
        }
}
//function reserve() {
//	if(document.form1.room_type11.value == '' && document.form1.room_type12.value == '' && document.form1.room_type13.value == '' && document.form1.room_type14.value == '') {
//                alert('객실을 적어도 하나는 선택해 주세요!');
//		document.form1.room_type11.focus();
//                return;
//        }
//        if(document.form1.room_type11.value != '' && document.form1.room_num11.value == '0') {
//                alert('객실수를 선택해 주세요!');
//                document.form1.room_num11.focus();
//                return;
//        }
//        if(document.form1.room_type12.value != '' && document.form1.room_num12.value == '0') {
//                alert('객실수를 선택해 주세요!');
//                document.form1.room_num12.focus();
//                return;
//        }
//        if(document.form1.room_type13.value != '' && document.form1.room_num13.value == '0') {
//                alert('객실수를 선택해 주세요!');
//                document.form1.room_num13.focus();
//                return;
//        }
//        if(document.form1.room_type14.value != '' && document.form1.room_num14.value == '0') {
//                alert('객실수를 선택해 주세요!');
//                document.form1.room_num14.focus();
//                return;
//        }

//	document.form1.action="reservation_033.aspx";
//	document.form1.submit();
//}

	         
//매거진 이메일 등록 ////////////////////////////////////////////////////////
function mail_regi() {
    if(form2.c_mail.value == "") {
        alert("이메일 주소를 입력해 주세요.");
        form2.c_mail.focus();
        return;
    }
    if (document.form2.c_mail.value =='' || document.form2.c_mail.value.length <= 6 || 
        document.form2.c_mail.value.indexOf ('@', 0) == -1 || document.form2.c_mail.value.indexOf ('.', 0) == -1) {
            alert("'' " + document.form2.c_mail.value + " '', 은 이메일주소가 아닙니다"); 
            return; 
    }
    form2.action = "../information/mail_regi.aspx";
    form2.submit();
}


// 이미지 리사이즈 /////////////////////////////////////////////////////
function img_view(hcode) {
form1.main_img.src= hcode;
var tmpimg = new Image();
tmpimg.src = hcode;
tmpimg.onload = function(){
    Rsize(tmpimg, 690, 350);
}
//Rsize(tmpimg, 690, 350);
}



function imgRsize(img, rW, rH){
        var iW = img.width;
        var iH = img.height;
        var g = new Array;
        if(iW < rW && iH < rH) { // ????? ??? ??? ?? ??
                g[0] =  iW; 
                g[1] =  iH; 
        } else {
                if(img.width > img.height) { // ??? ??? ???? ??
                        g[0] = rW;
                        g[1] = Math.ceil(img.height * rW / img.width);
                } else if(img.width < img.height) { //???? ??? ???? ??
                        g[0] = Math.ceil(img.width * rH / img.height);
                        g[1] = rH;
                } else {
                        g[0] = rW;
                        g[1] = rH;
                }
                if(g[0] > rW) { // ??? ???? ?? ???? ??
                        g[0] = rW;
                        g[1] = Math.ceil(img.height * rW / img.width);
                }
                if(g[1] > rH) { // ??? ???? ?? ??????? ??
                        g[0] = Math.ceil(img.width * rH / img.height);
                        g[1] = rH;
                }
        }
        g[2] = img.width; // ???? ??
        g[3] = img.height; // ???? ??
        return g;
}

function Rsize(img, ww, hh){
        var tt = imgRsize(img, ww, hh);

        if(img.width > ww || img.height > hh){ // ??? ????? ?????? ??            
            form1.main_img.width = tt[0]; // ????
            form1.main_img.height = tt[1];
		}
		else if(img.width < ww || img.height < hh) {		    
			form1.main_img.width = tt[2];
			form1.main_img.height = tt[3];
		}
		return ;
}