/**
	 * url参数设置调整,name名的参数存在时,修改原参数值为value,不存在时,添加一个名为name的参数,值为value,若第三个参数存在且为真,则删除url中名为name的参数。
	 * @param name
	 * @param value
	 * @param is_delete
	 * @return {string}
	 */
	urlParam=function(name,value){
		var is_delete=arguments[2]||false;
		var value=value||'';
		var url=location.href;
		var start=url.indexOf('?')==-1?0:url.indexOf('?');
		var end=url.indexOf('#')==-1?url.length:url.indexOf('#')-1;
		var urlNoAnchor=url.substr(start+1,end-start);
		var anchor=url.substr(end+2);
		var paramStrs=urlNoAnchor.match(/([^&]+)/g);
		var paramsObj={};
		var paramsArr=new Array();

		for (var i=0;i<paramStrs.length;i++){
			var paramName=paramStrs[i].substr(0,paramStrs[i].indexOf('='));
			var paramValue=paramStrs[i].substr(paramStrs[i].indexOf('=')+1);
			paramsObj[paramName]=paramValue;
		}
		if ($.type(name)=='object') {
			for (var p in name) {
				if (is_delete) {
					delete (paramsObj[p]);
				} else {
					paramsObj[p] = name[p];
				}
			}
		}else{
			if (is_delete) {
				delete (paramsObj[name]);
			} else {
				paramsObj[name] = value;
			}
		}
		for (var p in paramsObj){
			paramsArr.push(p+'='+paramsObj[p]);
		}
		return location.origin+location.pathname+'?'+paramsArr.join('&')+(anchor==''? '':'#'+anchor);
	}