<script type="text/javascript">
$().ready(function() {
 
function findValueCallback(event, data, formatted) {
$("#content").html("<strong>"+(!data ? "No match!" : "Selected: " + formatted)+"</strong>");
}


    $("#website").blur(function searchNumber()
    {
var clnumber=document.form1.clnumber.value;
    ifrm.location.href="checkDate.jsp?clnumber="+clnumber;
})

$("#website").autocomplete(website,{
minChars: 0,
max: 5,
autoFill: true,
mustMatch: true,
matchContains: true,
scrollHeight: 220,
formatItem: function(data, i, total) {
return "<I>"+data[0]+"</I>";
},
formatMatch: function(data, i, total) {
return data[0];
},
formatResult: function(data) {
return data[0];
}
});
$("#website").result(findValueCallback);
$("#getvalue").click(function() {$("#website").search()});
});
function subm()
{
ifrm3.location.href="bjrk_main_showAllNumber.jsp";
var str=document.form1.hid.value;
    var str1=str.length;
    var str2=str.substring(1,str1-1)
    var array = str2 .split(",");

}
</script>
想将arry传到$("#website").autocomplete的第一个参数 作为数组 实现百度的那种查询 该怎么做呢??