{
var op = document.getElementById("opciones").value;
var accion;
if (window.XMLHttpRequest)
{
accion = new XMLHttpRequest();
}
else {
accion = new ActionXObject("microsoft.XMLHTTP");
}
accion.onreadystatechange = function ()
{
if (this.readyState == 4 && this.status == 200)
{
document.getElementById("contenido").innerHTML = this.responseText;
}
};
accion.send();
}
function rutas(ruta,controlador,op)
{
alert("Ruta: " + ruta+"/"+controlador+"?op="+op);
document.form.action=ruta+"/"+controlador;
document.form.method="get";
document.form.op.value=op;
document.form.submit();
}