<!--
var idobj='';var mensa='';var response='';
var http = createRequestObject();
function createRequestObject(){var xmlhttp;try{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(f){xmlhttp=null;}}if(!xmlhttp&&typeof XMLHttpRequest!="undefined"){xmlhttp=new XMLHttpRequest();}return xmlhttp;}

function OAW(page){
//Carga una pagina determinada en modalWindow, puede o no recargar la página original.
idobj='modalWindow';page='/ajax/' + page + "&sid="+Math.random();var dvelement=$(idobj); 
dvelement.innerHTML="<table bgcolor=#f9f9f9><tr><td><img align=center src='/pix/ajax-cargando.gif'></td></tr></table>";
http.open('GET', page,false);http.send(null);tx=http.responseText;
var tag=tx.indexOf('<tagNR>');if (tag!=-1) {window.location.reload()};
document.getElementById(idobj).innerHTML=tx;
}


function popR0(obj,page){
//Abre modalWindow con un fade, espera, y posiciona el foco en el campo 'c1'
idobj='modalWindow';page='/ajax/' + page + "&sid="+Math.random(); var dvelement=$(idobj);

var curleft = curtop = 0;if (obj.offsetParent) {do {curleft += obj.offsetLeft;curtop += obj.offsetTop;} while (obj = obj.offsetParent);}
xx1=curtop.toString() + 'px'; $(idobj).style.top=xx1;xx2=curleft.toString() + 'px'; $(idobj).style.left=xx2;

//modal();
$(idobj).style.opacity = (0);$(idobj).style.MozOpacity = (0);$(idobj).style.KhtmlOpacity = (0); $(idobj).style.filter = "alpha(opacity=0)";
$(idobj).style.display = $('BG0').style.display = 'block';opacity(idobj, 0, 100, 150);

dvelement.innerHTML="<table bgcolor=#f9f9f9><tr><td><img align=center src='/pix/ajax-cargando.gif'></td></tr></table>";
http.open('GET', page,false);http.send(null);
tx=http.responseText;$(idobj).innerHTML=tx;
//setTimeout(function() { $('c1').focus(); }, 10);

return false;
//window.scrollTo(100,500);
}



function OpenAjaxWindow(mensa,idobj2,page){
idobj=idobj2
page=page + "&sid="+Math.random();

//document.getElementById("dummy").style.display='';
var dvelement=document.getElementById(idobj);
dvelement.innerHTML="<table width=100% height=100%><tr><td align=center><img align=center src='/pix/ajax-loader.gif'></td></tr><tr><td align=center><font size=1 color=000000>" + mensa + "</td></tr></table>";
try{http.open('GET', page);
http.onreadystatechange = handleResponseTextOAW;
http.send(null);}
catch(e){}finally{}}

function handleResponseTextOAW()
{if((http.readyState==4)&&(http.status==200))
	{response=http.responseText;
	document.getElementById(idobj).innerHTML=response;}}
-->