获取URL参数
function getUrlParam(name){
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r!=null) return unescape(r[2]); return null;
}
金额按,千位分隔
function formatMoney(str){
if(/[^0-9\.]/.test(str)) return "0.00";
if(str===null || str==="null" || str==="") return "0.00";
str = str.toString().replace(/^(\d*)$/, "$1.");
str = (str + "00").replace(/(\d
}