function change_content(param){
    if (param==1){
        CMSAjaxRequest('content_switcher','regionplan.php');      
    }else if(param==2){
        
        CMSAjaxRequest('content_switcher','airplan.php');        
    }else if(param==3){
        CMSAjaxRequest('content_switcher','busplan.php');
    }else if(param==4){
        CMSAjaxRequest('content_switcher','railwayplan.php');
        
    }
}

function address_query(input_param){
var tm = setInterval('get_suggest('+input_param+')',1000);
}
function address_query_clear(){
var tm = clearTimeout(1000);
}

function set_tab_class(tab_id){
  
    tabs = new Array();
    tabs[0] = 'weather_tab';
    tabs[1] = 'airplan_tab';
    tabs[2] = 'busplan_tab';
    tabs[3] = 'railplan_tab';
    for(i=0;i<tabs.length;i++){
        if (tabs[i]==tab_id){
            $("#"+tab_id).removeClass('clear_tab');
            $("#"+tab_id).addClass('colorOrange');

        }else{
            
            $("#"+tabs[i]).removeClass('colorOrange');
            $("#"+tabs[i]).addClass('clear_tab');
        }
    }
}



        function get_suggest(input_type){
            word =  document.getElementById('address'+input_type).value;
            if(word.length>2){
                document.getElementById('bus_suggest').style.display = 'block';
                CMSAjaxRequest('bus_suggest','searchBusPlan.php?keyword='+word+'&input_type='+input_type);    
            }
            
            
        }
        function set_address(address,input_type){
              document.getElementById('address'+input_type).value =  address; 
              document.getElementById('suggest_select').style.display= 'none';
        }
        
function switch_ariplan_mode(param){
  
      CMSAjaxRequest('content_switcher','airplan.php?mode='+param);
} 
