attachEventListener|DomReady.add
<script>
function bindEventForTraffic(_city){
var _ps = $("start_name");
if(_ps){attachEventListener(_ps,'keyup',function(evt){
suggestRoadAddrInCity(evt,_city);},false);
attachEventListener(_ps,'keydown',function(evt){responseInput(evt,this);
},false);}
DomReady.add(function(){bindEventForTraffic('上海');});
</script>