function getUrlArgs(){ var url=location.href; var i=url.indexOf('?'); if(i==-1)return; var querystr=url.substr(i+1); var arr1=querystr.split('&'); var arr2=new Object(); for (i in arr1){ var t=arr1[i].split('='); arr2[t[0]]=t[1]; } return arr2; }
function getUrlArgs(){ var url=location.href; var i=url.indexOf('?'); if(i==-1)return; var querystr=url.substr(i+1); var arr1=querystr.split('&'); var arr2=new Object(); for (i in arr1){ var t=arr1[i].split('='); arr2[t[0]]=t[1]; } return arr2; }