function acortaUrl(url, codigo) {
	url = escape(url);
	codigo = escape(codigo);
	$.ajax({
		type: "POST",
		url: "././create.php",
		contentType: "application/x-www-form-urlencoded",
		dataType: "html",
		data: "url="+url+"&custom="+codigo,
		beforeSend: function() {
			// $("#submit_url").replaceWith($("<input />").attr("type", "submit").attr("value", " ").attr("id", "submit_url").attr("class", "inputSubmitLoading"));
			$("#resultadoStats").css("display", "none").fadeOut("slow");
		},
		success: function(datos) {
			// $("#submit_url").replaceWith($("<input />").attr("type", "submit").attr("value", " ").attr("id", "submit_url").attr("class", "inputSubmit"));
			$("#resultado").replaceWith($("<div />").attr("id","resultado").css("width", "681px").css("background", "#e3f1f0").css("height", "35px").html(datos).fadeIn("slow"));
		}
	});
}
function seleccionar(obj){
	if(obj.nodeName.toLowerCase()=='textarea' || (obj.nodeName.toLowerCase()=='input' && obj.type=='text')){
		obj.select();
		return;
	}
	if (window.getSelection) { 
		var sel = window.getSelection();
		var range = document.createRange();
		range.selectNodeContents(obj);
		sel.removeAllRanges();
		sel.addRange(range);
	} 
	else if (document.selection) { 
		document.selection.empty();
		var range = document.body.createTextRange();
		range.moveToElementText(obj);
		range.select();
	}
}