docs: function(params) {
  			var newparams = ''; 
  			
  			for (par in params) {
  				var obj = params[par];
  				if(typeof obj ==  'string'){
  					if (params[par]) {
  						if(newparams)newparams += "&";
  						newparams += par + "=" + params[par];
  					}
  				}else if(obj instanceof  Array){
  					if(newparams)newparams += "&";
  					
  					var i = 0;
  					for(i=0; i<obj.length; i++){
  						if (obj[i]) {
  							newparams += par + "=" + obj[i];
  							if(i != obj.length-1)newparams += ";";
  						}
  						
  					}
  				}
  			}
  			//newparams=newparams.encode();
  			//encode(newparams);
  			//return escape('?'+newparams);
  			return encodeURI('?'+newparams); //The old version (escape('?'+newparams);) gave problems because it encoded ? and &
  		}