var ultimaPagina;
function Mostrar(url)
{
	ajax=new Ajax();
	ajax.cache=true;
	ajax.loaderEvent='MostrarImagenCarga("Cuerpo");';
	ajax.errorEvent='ErrorAjax("Cuerpo");';

	web=url.split("?")[0];
	get=url.split("?")[1];

	ajax.Updater('Cuerpo',web,hGET,get,true,true);

	ultimaPagina=url;
}

function TextAreaGrow(elemento)
{
	elemento.onclick=RedimensionarTextarea;
	elemento.onkeyup=RedimensionarTextarea;
}

function RedimensionarTextarea(event)
{
	var t = this;
	var lines = t.value.split('\n');
	var newRows = lines.length + 1;
	var oldRows = t.rows;
	for (var i = 0; i < lines.length; i++)
	{
		var line = lines[i];
		if (line.length >= t.cols) newRows += Math.floor(line.length / t.cols);
	}
	if (newRows > t.rows) t.rows = newRows;
	if (newRows < t.rows) t.rows = Math.max(this.defaultRows, newRows);
}