﻿var sCity=[{id:'13',name:'北京',depth:2,isbroad:0},{id:'101',name:'上海',depth:2,isbroad:0},{id:'195',name:'深圳',depth:3,isbroad:0},{id:'243',name:'成都',depth:3,isbroad:0},{id:'190',name:'广州',depth:3,isbroad:0},{id:'165',name:'武汉',depth:3,isbroad:0},{id:'215',name:'西安',depth:3,isbroad:0},{id:'263',name:'昆明',depth:3,isbroad:0},{id:'103',name:'南京',depth:3,isbroad:0},{id:'241',name:'重庆',depth:2,isbroad:0},{id:'118',name:'杭州',depth:3,isbroad:0},{id:'67',name:'青岛',depth:3,isbroad:0},{id:'113',name:'无锡',depth:3,isbroad:0},{id:'131',name:'厦门',depth:3,isbroad:0},{id:'28',name:'沈阳',depth:3,isbroad:0},{id:'66',name:'济南',depth:3,isbroad:0},{id:'121',name:'宁波',depth:3,isbroad:0},{id:'105',name:'苏州',depth:3,isbroad:0}];
var eCity=[{name:'出境热门目的地',content:[{id:'321',name:'曼谷',depth:4,isbroad:1},{id:'443',name:'巴厘岛',depth:4,isbroad:1},{id:'492',name:'新加坡',depth:2,isbroad:1},{id:'403',name:'日本',depth:2,isbroad:1},{id:'297',name:'韩国',depth:2,isbroad:1},{id:'802',name:'美国',depth:2,isbroad:1},{id:'790',name:'新西兰',depth:2,isbroad:1},{id:'744',name:'肯尼亚',depth:2,isbroad:1},{id:'755',name:'澳大利亚',depth:2,isbroad:1},{id:'374',name:'马尔代夫',depth:2,isbroad:1}]},{name:'出境热门景区',content:[{id:'2431',name:'普吉岛',depth:6,isbroad:1},{id:'2435',name:'曼谷大皇宫',depth:5,isbroad:1},{id:'3204',name:'富士山',depth:5,isbroad:1},{id:'2551',name:'古罗马斗兽场',depth:5,isbroad:1},{id:'2506',name:'埃菲尔铁塔',depth:5,isbroad:1},{id:'2609',name:'悉尼歌剧院',depth:5,isbroad:1},{id:'2509',name:'卢浮宫',depth:5,isbroad:1},{id:'2510',name:'巴黎圣母院',depth:5,isbroad:1},{id:'15933',name:'狮身人面像',depth:6,isbroad:1}]}];
var adys=[{id:'1',name:'1-5天'},{id:'6',name:'6-9天'},{id:'10',name:'10-15天'},{id:'16',name:'≥16天'},{id:'0',name:'不限'}];
var prices=[{id:'3000',name:'3000元以下'},{id:'3001',name:'3001-5000元'},{id:'5001',name:'5001-10000元'},{id:'10001',name:'10001-15000元'},{id:'15001',name:'15000元以上'},{id:'0',name:'不限'}];
function checkform(){
    if($.trim($('#txtStartCityName').attr('value'))=='' || $.trim($('#hscity').attr('value'))==''){
        $('#txtStartCityName').focus();
        alert('出发地必须填写！');
        return false;
    }
    if($.trim($('#txtEndCityName').attr('value'))=='' || $.trim($('#hecity').attr('value'))==''){
        $('#txtEndCityName').focus();
        alert('目的地必须填写！');
        return false;
    }
    return true;
}
$(document).ready(function(){
$('#txtEndCityName').click(function() { fillDefault('ecity'); }).keyup(function(e) { inputid = 'txtEndCityName'; hidid = 'hecity'; move(e.keyCode, 'ahecity', ecityrow, 'first', 1, 3, 7, 1); }).keydown(function(e) { if (e.keyCode == 32) return false; }).blur(function() { inputblur(); });
$(".tj1").eq(0).show();
$(".tj2").eq(0).show();
$(".tj2").eq(1).addClass("tj2new");
$(".tj2").eq(2).addClass("tj2new1");
});
