这段JS代码不兼容浏览器,请问如何修正过来
function send_bet()
{
var temp1=document.all.pl.value;
temp1 = temp1.replace(/[\u4e00-\u9fa5]+/,'');
temp1 = temp1.replace(':','');
temp1 = temp1.replace(':','');
var strArray = new Array();
strArray=temp1.split(" ");
totle_num = strArray.length;
for(i=0;i<totle_num;i++)
{
var strArray2 = new Array();
strArray2=strArray[i].split("=");
document.all('Num_'+Math.floor(strArray2[0])).value =strArray2[1];
}
document.all.pl.value = '';
}