var _timerEsperando;var imag_mnuMenos=new Image();var imag_mnuMas = new Image();imag_mnuMenos.src="/iconos/menos.gif";imag_mnuMas.src="/iconos/mas.gif";function showZona(menu,estilo) {	try {  if (!estilo && estilo!='') { if (document.getElementById (menu).style.display=='') { if (document.getElementById (menu + 'IMG')) document.getElementById (menu + 'IMG').src=imag_mnuMas.src; document.getElementById (menu).style.display='none'; } else { document.getElementById (menu).style.display=''; if (document.getElementById (menu + 'IMG')) document.getElementById (menu + 'IMG').src=imag_mnuMenos.src; } } else { document.getElementById (menu).style.display=estilo;  if (document.getElementById (menu + 'IMG')) if (estilo=='none') document.getElementById (menu + 'IMG').src=imag_mnuMas.src; else document.getElementById (menu + 'IMG').src=imag_mnuMenos.src; }	} catch (e) {	}}function esperando(zdivDest, txtOrig){	try {  var zdiv; var zonaEspera; var txt='';  if (txtOrig) txt=txtOrig; if (! zdivDest) { zdiv='dv_esperando'; reposicionadiv_raton(zdiv); } else zdiv=zdivDest; zonaEspera = document.getElementById(zdiv);  if (zonaEspera) { zonaEspera.innerHTML = '<img src="/iconos/loading.gif" height="18" align="absmiddle"/>&nbsp;&nbsp; ' + txt; showZona(zdiv,''); } } catch(e) { alert ('esp-' + e.description); }}function esperando_fin(zdivDest){	var zdiv;		if (! zdivDest) zdiv='dv_esperando';	else zdiv=zdivDest;		showZona(zdiv,'none'); }function getPageCoords (elementId) {try{ var coords = { x: 0, y: 0 };  var element; if (document.all) element = document.all[elementId]; else if (document.getElementById) element = document.getElementById(elementId); while (element) { coords.x += element.offsetLeft; coords.y += element.offsetTop; element = element.offsetParent; }  return coords; } catch(e) { alert ('err.gpc-' + err.description); } }function getPageCoordsForm (sForm,elementId) {	try { var coords = { x: 0, y: 0 }; var element;  element=document.forms[sForm].elements[elementId]; while (element) { coords.x += element.offsetLeft; coords.y += element.offsetTop; element = element.offsetParent; }  return coords; } catch(e) { alert ('err.gpcf-' + err.description); } }function newDivPos(divName, refIdSel, offsetX, offsetY){	try { var posBoton = getPageCoords(refIdSel); var zonaCliente=document.getElementById(divName);  zonaCliente.style.left = posBoton.x + offsetX; zonaCliente.style.top = posBoton.y + offsetY;  }  catch(e) { alert (e.description); }}function openDiv(divName){	try { document.getElementById(divName).style.display='block';	} catch(e) { alert (e.description);	}	}