function urlencode(a){a=(a+"").toString();return encodeURIComponent(a).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")}
function ucwords(a){return(a+"").replace(/^([a-z])|\s+([a-z])/g,function(a){return a.toUpperCase()})}
function http_build_query(a,e,c){var f,d,g=[],h=this,i=function(a,b,d){var c,e=[];b===true?b="1":b===false&&(b="0");if(b!==null&&typeof b==="object"){for(c in b)b[c]!==null&&e.push(i(a+"["+c+"]",b[c],d));return e.join(d)}else if(typeof b!=="function")return h.urlencode(a)+"="+h.urlencode(b);else throw Error("There was an error processing for http_build_query().");};c||(c="&");for(d in a)f=a[d],e&&!isNaN(d)&&(d=String(e)+d),g.push(i(d,f,c));return g.join(c)}
