var geturl = function(url){
var ret = {};
var queryStr=url.replace(/^[^\?#]*\??/g,'').replace(/#DIALOG_.*$/g,'');
queryStr.replace(/([^=&]+)=([^&]*)/g, function (a, b, c) {
b = decodeURIComponent(b);
c = decodeURIComponent(c);
ret[b] = c;
ret[b.toLowerCase()] = c;
});
return ret;
}