function input(iObj,oObj,dObj)
{
	var date = {
	"suru":$(iObj), //输入对象
	"sucu":$("#"+oObj), //输出城市code对象
	"sudi":$("#"+dObj), //输出城市id对象
	"input":function()
	{
	  //查询输入
	 
	  if(this.suru.val().length>0)
	  {
		   var nz = this.suru.val();
		   var cx = "name";
		   if(nz.match(/^[a-zA-Z]+$/))
		   { //拼音查询
			  cx = "pinyin";
		   }
		   //alert(cx);
		   function cxv(obj,i,cx)
		   {
			   var str = "obj["+i+"]."+cx;
			   str = str.replace('"');
			   return eval(str);
		   }
		   //alert(cxv(gjgwdate,0,cx));
		   var data = new Array();
		   var re = new RegExp("^"+nz,"i");
		   
		   for(var i=0;i<gjgndate.length;i++)
		   {
				if(cxv(gjgndate,i,cx).match(re))
				{
					data.push(gjgndate[i]);
				}
		   }
		   
		   for(var i=0;i<gjgwdate.length;i++)
		   {
				if(cxv(gjgwdate,i,cx).match(re))
				{
					data.push(gjgwdate[i]);
				}
		   }
		   
		   
		   this.showpop(data);
	  }
	},
	"showpop":function(date)
	{ //展示内容
	    if(date.length>0){
		  var html = '<div id="test" class="planpop"><div class="planp_tit">请输入英文或中文并选择</div>';
		  for(var i=0;i<date.length;i++)
		  {
			  html+='<li onclick="gj_plan.outdate(\''+date[i].code+'\',\''+date[i].did+'\',this)">'+date[i].pinyin+' '+date[i].name+'</li>';
		  }
		  html+='</div>';
		  $("#test").html(html);
		  var xy = fGetXY(this.suru[0]);
		  while(typeof($("#test")[0])=='object')
		  {
				  //alert(typeof($("#test")[0]));
				  $("#test").remove();
		  }
		  $("body").append(html);
		  //$("#test").html(html);
		  $("#plan_back").show();
		  $("#test").css({"top":xy.y+25,"left":xy.x});
		  $("#test >li").hover(function(){
				
				    $(this).addClass("plpoplihover");
				
				},function(){
					$(this).removeClass("plpoplihover");
		   });
		  //alert(html);
		}
	},
	"outdate":function(code,did,obj)
	{  //点击效果
		this.sucu.val(code);
		this.sudi.val(did);
		this.suru.val($(obj).html());
		$("#test").remove();
		$("#plan_back").hide();
		if(this.suru.attr("name")=='gjqiname'){
		  //送票城市
		 $("#gjs_codeid").val(code);
		 $("#gjs_code").val($(obj).html());
		}
	},
	"gnhot":function(obj)
	{
		 obj.value='';
		 test_c = false;
		 this.showpop(gjgnht);
	},
	"gwhot":function(obj)
	{
		 obj.value='';
		 test_c = false;
		 this.showpop(gjgwht);
	}
	};
	gj_plan=date;
	return date;
}
