function makeURL(str) {
    var strAux = str.toLowerCase();
    strAux = strAux.replace(/-/g," ");
    strAux = strAux.replace(/^\s*|\s*$/g,"");
    while(strAux.indexOf("/")!=-1) strAux = strAux.replace("/","-");
    while(strAux.indexOf("(")!=-1) strAux = strAux.replace("(","");
    while(strAux.indexOf(")")!=-1) strAux = strAux.replace(")","");
    while(strAux.indexOf("*")!=-1) strAux = strAux.replace("*","");
    strAux = strAux.replace(/ /g,"-");
    strAux = strAux.replace(/á/g,"a");
    strAux = strAux.replace(/à/g,"a");
    strAux = strAux.replace(/ä/g,"a");
    strAux = strAux.replace(/â/g,"a");
    strAux = strAux.replace(/é/g,"e");
    strAux = strAux.replace(/è/g,"e");
    strAux = strAux.replace(/ë/g,"e");
    strAux = strAux.replace(/ê/g,"e");
    strAux = strAux.replace(/í/g,"i");
    strAux = strAux.replace(/ì/g,"i");
    strAux = strAux.replace(/ï/g,"i");
    strAux = strAux.replace(/î/g,"i");
    strAux = strAux.replace(/ó/g,"o");
    strAux = strAux.replace(/ò/g,"o");
    strAux = strAux.replace(/ö/g,"o");
    strAux = strAux.replace(/ô/g,"o");
    strAux = strAux.replace(/ú/g,"u");
    strAux = strAux.replace(/ù/g,"u");
    strAux = strAux.replace(/ü/g,"u");
    strAux = strAux.replace(/û/g,"u");
    strAux = strAux.replace(/ñ/g,"n");
    while(strAux.indexOf("--")!=-1) strAux = strAux.replace("--","-");
    return strAux;
}
function _encode (string) {
	return escape(this._utf8_encode(string));
}

function _utf8_encode (string) {
	string = string.replace(/\r\n/g,"\n");
	
	var utftext = "";

	for (var n = 0; n < string.length; n++) {

		var c = string.charCodeAt(n);

		if (c < 128) {
			utftext += String.fromCharCode(c);
		}
		else if((c > 127) && (c < 2048)) {
			utftext += String.fromCharCode((c >> 6) | 192);
			utftext += String.fromCharCode((c & 63) | 128);
		}
		else {
			utftext += String.fromCharCode((c >> 12) | 224);
			utftext += String.fromCharCode(((c >> 6) & 63) | 128);
			utftext += String.fromCharCode((c & 63) | 128);
		}

	}
	
	return utftext;
}