// JavaScript Document
function ventana(URL,ancho,alto,top,left)
 {
	if(top=='')
	top=200;
	if(left=='')
	left=200;	
	if(ancho<650 )
	{
	ancho=650;
	top=200;
	left=200;	
	}
	if(alto<400)
	{
	alto=400;
	left=200;
	top=200;
	}
	window.open(URL,"ventana1","width="+ancho+",height="+alto+",scrollbars=yes, menubar=no,location=no,resizable=no,status=yes top="+top+",left="+left);
 }
 
//-----------------------------------------------------------------------------------------------------------------------------------------------

function mensaje(msg,ancho,alto)
{     

   Dialog.alert(msg, 
             {windowParameters: {top:100, left:350,width:ancho, height:alto}, okLabel: "Aceptar", 
              ok:function(win) {debug("validate alert panel"); return true;}});
}

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act(seccion,pagina,plantilla)
{
   xDisplay('act','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_seccion.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("seccion="+seccion+"&pagina="+pagina+"&plantilla="+plantilla);
} 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function logo_seccion(pagina,div)
{
  xDisplay('logo','block');
 /* y = document.body.clientHeight;
  x = document.body.clientWidth;*/
  resul= document.getElementById(div);
  /*resul.innerHTML= '<div style="background-color:#FFFFFF; width:120px;"><img src="img/proceso.gif" width="16" height="16" > <strong>Procesando...</strong></div>';*/
  ajax=nuevoAjax();
   
  ajax.open("POST", "ver_logo_seccion.php",true);
  ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
  ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
  
  ajax.send("pagina="+pagina);
}

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_titulo(seccion,pagina,plantilla)
{
   xDisplay('act_titulo','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_titulo');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_titulo.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("seccion="+seccion+"&pagina="+pagina+"&plantilla="+plantilla);
} 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_logo(seccion,pagina,plantilla,id)
{
   xDisplay('act_logo','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_logo');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_logo.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("seccion="+seccion+"&pagina="+pagina+"&plantilla="+plantilla+"&id="+id);
} 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_texto(texto,pagina,plantilla)
{
   xDisplay('act_texto','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_texto');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:1700px;  background-image:url(img/trans.png); "></div>';*/
   
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_texto.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("texto="+texto+"&pagina="+pagina+"&plantilla="+plantilla);
} 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_texto_det(texto,pagina,plantilla,menu)
{
   xDisplay('act_texto_det','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_texto_det');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:1700px;  background-image:url(img/trans.png); "></div>';*/
   
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_texto_det.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("texto="+texto+"&pagina="+pagina+"&plantilla="+plantilla+"&menu="+menu);
} 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_grafico(grafico,pagina,plantilla)
{
   xDisplay('act_grafico','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_grafico');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:1700px;  background-image:url(img/trans.png); "></div>';*/
   
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_grafico.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("grafico="+grafico+"&pagina="+pagina+"&plantilla="+plantilla);
} 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_grafico_det(grafico,pagina,plantilla,menu)
{
   xDisplay('act_grafico_det','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_grafico_det');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:1700px;  background-image:url(img/trans.png); "></div>';*/
   
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_grafico_det.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("grafico="+grafico+"&pagina="+pagina+"&plantilla="+plantilla+"&menu="+menu);
} 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_crear_menu(pagina)
{
   xDisplay('crear_menu','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('crear_menu');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_crear_menu2.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("pagina="+pagina);
} 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_menu(menu,pagina,plantilla)
{
   xDisplay('act_menu','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_menu');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_menu.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("menu="+menu+"&pagina="+pagina+"&url="+plantilla);
} 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_pro(seccion,pagina,menu,plantilla)
{
   xDisplay('act_pro','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_pro');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_seccion_pro.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("seccion="+seccion+"&pagina="+pagina+"&menu="+menu+"&plantilla="+plantilla);
} 


//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_categ(seccion,pagina,menu,plantilla,categ)
{
   xDisplay('act_categ','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_categ');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_categoria.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("seccion="+seccion+"&pagina="+pagina+"&menu="+menu+"&plantilla="+plantilla+"&categ="+categ);
} 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_texto_pro(texto,pagina,plantilla,menu)
{
   xDisplay('act_texto_pro','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_texto_pro');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:1700px;  background-image:url(img/trans.png); "></div>';*/
   
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_texto_pro.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("texto="+texto+"&pagina="+pagina+"&plantilla="+plantilla+"&menu="+menu);
} 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_texto_apli(texto,pagina,plantilla,menu)
{
   xDisplay('act_texto_apli','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_texto_apli');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:1700px;  background-image:url(img/trans.png); "></div>';*/
   
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_texto_apli.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("texto="+texto+"&pagina="+pagina+"&plantilla="+plantilla+"&menu="+menu);
} 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_grafico_pro(grafico,pagina,plantilla,menu)
{
   xDisplay('act_grafico_pro','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_grafico_pro');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:1700px;  background-image:url(img/trans.png); "></div>';*/
   
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_grafico_pro.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("grafico="+grafico+"&pagina="+pagina+"&plantilla="+plantilla+"&menu="+menu);
} 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_modelo(seccion,det,categ,pagina,plantilla,menu)
{
   xDisplay('act_modelo','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_modelo');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:1700px;  background-image:url(img/trans.png); "></div>';*/
   
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_modelo.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("seccion="+seccion+"&det="+det+"&categ="+categ+"&pagina="+pagina+"&plantilla="+plantilla+"&menu="+menu);
} 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_ser(seccion,pagina,plantilla)
{
   xDisplay('act_ser','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_ser');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:1700px;  background-image:url(img/trans.png); "></div>';*/
   
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_seccion_ser.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("seccion="+seccion+"&pagina="+pagina+"&plantilla="+plantilla);
} 
//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_grafico_ser(grafico,pagina,plantilla)
{
   xDisplay('act_grafico_ser','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_grafico_ser');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:1700px;  background-image:url(img/trans.png); "></div>';*/
   
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_grafico_ser.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("grafico="+grafico+"&pagina="+pagina+"&plantilla="+plantilla);
} 
//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_titulo_gal(secc_logo,pagina,plantilla)
{
   xDisplay('act_titulo_gal','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_titulo_gal');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:1700px;  background-image:url(img/trans.png); "></div>';*/
   
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_titulo_gal.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("secc_logo="+secc_logo+"&pagina="+pagina+"&plantilla="+plantilla);
} 
//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_seccion_gal(seccion,pagina,plantilla)
{
   xDisplay('act','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_seccion.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("seccion="+seccion+"&pagina="+pagina+"&plantilla="+plantilla);
} 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_gal(logo_gal,pagina,plantilla,secc_logo)
{
   xDisplay('act_galeria','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_galeria');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_galeria.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("logo_gal="+logo_gal+"&pagina="+pagina+"&plantilla="+plantilla+"&secc_logo="+secc_logo);
} 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_imagen(logo_gal,pagina,secc_logo,plantilla)
{
   xDisplay('imagen','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('imagen');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_imagen.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("logo_gal="+logo_gal+"&pagina="+pagina+"&secc_logo="+secc_logo+"&plantilla="+plantilla);
} 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_apli(seccion,pagina,menu,plantilla)
{
   xDisplay('act_apli','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_apli');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_seccion_apli.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("seccion="+seccion+"&pagina="+pagina+"&menu="+menu+"&plantilla="+plantilla);
} 
//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_cont(seccion,pagina,plantilla)
{
   xDisplay('act_cont','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_cont');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_seccion_cont.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("seccion="+seccion+"&pagina="+pagina+"&plantilla="+plantilla);
} 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_cont1(contacto,pagina,plantilla)
{
   xDisplay('act_cont1','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_cont1');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_seccion_cont1.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("contacto="+contacto+"&pagina="+pagina+"&plantilla="+plantilla);
} 
//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_clase(seccion,pagina,menu,plan,categ,detalle,clase)
{
   xDisplay('act_clase','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_clase');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_clase_documento.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("seccion="+seccion+"&pagina="+pagina+"&menu="+menu+"&plan="+plan+"&categ="+categ+"&detalle="+detalle+"&clase="+clase);
} 
//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_eli_clase(seccion,pagina,menu,plan,categ,detalle,clase)
{
   xDisplay('del_clase','block');
   /*y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('del_clase');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_del_clase_documento.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("seccion="+seccion+"&pagina="+pagina+"&menu="+menu+"&plan="+plan+"&categ="+categ+"&detalle="+detalle+"&clase="+clase);
} 


//---------------------------------------------------------------------------------------------------------------------------------------------------------------------

function regreso(seccion,pagina,menu,categ,detalle)
{
   /* xDisplay('act_clase','block');
    y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);
   resul= document.getElementById('act_clase');*/
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_crear_clase_descarga.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("seccion="+seccion+"&pagina="+pagina+"&menu="+menu+"&categ="+categ+"&detalle="+detalle);
} 

//---------------------------------------------------------------------------------------------------------------------------------------------------------------------

function regreso1(modelo)
{
   /* xDisplay('act_clase','block');
    y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);
   resul= document.getElementById('act_clase');*/
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_crear_grupo.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("modelo="+modelo);
} 


//----------------------------------------------------------------------------------------------------------------------------------------------------

function w_descargar(menu,categoria,pagina,plantilla)
{
 objeto=document.getElementById('Marco');
 objeto.src="w_rs_descarga.php?menu="+menu+"&categoria="+categoria+"&pagina="+pagina+"&plantilla="+plantilla;       
}

//----------------------------------------------------------------------------------------------------------------------------------------------------

function w_descargar1(menu,pagina,plantilla)
{
 objeto=document.getElementById('Marco1');
 objeto.src="w_rs_descarga1.php?menu="+menu+"&pagina="+pagina+"&plantilla="+plantilla;       
}

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function w_descargar2(menu,categoria,pagina,plantilla)
{
 objeto=document.getElementById('Marco');
 objeto.src="w_rs_download.php?menu="+menu+"&categoria="+categoria+"&pagina="+pagina+"&plantilla="+plantilla;       
}

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function w_descargar3(menu,pagina,plantilla)
{
 objeto=document.getElementById('Marco1');
 objeto.src="w_rs_download1.php?menu="+menu+"&pagina="+pagina+"&plantilla="+plantilla;       
}

//------------------------------------------------------------------------------------------------------------------------------------------------------------------


function w_descargar(menu,categoria,pagina,plantilla)
{
 objeto=document.getElementById('Marco');
 objeto.src="w_rs_descarga.php?menu="+menu+"&categoria="+categoria+"&pagina="+pagina+"&plantilla="+plantilla;       
}

//----------------------------------------------------------------------------------------------------------------------------------------------------

function w_descargar1(menu,pagina,plantilla)
{
 objeto=document.getElementById('Marco1');
 objeto.src="w_rs_descarga1.php?menu="+menu+"&pagina="+pagina+"&plantilla="+plantilla;       
}


//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_del_pdf(menu,categ,pagina,plantilla,archivo)
{
   xDisplay('del_pdf','block');
   /*y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('del_pdf');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_del_pdf.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("menu="+menu+"&categ="+categ+"&pagina="+pagina+"&plantilla="+plantilla+"&archivo="+archivo);
} 
//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_del_pdf_apli(menu,pagina,plantilla,archivo)
{
   xDisplay('del_pdf_apli','block');
   /*y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('del_pdf_apli');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_del_pdf_apli.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("menu="+menu+"&pagina="+pagina+"&plantilla="+plantilla+"&archivo="+archivo);
} 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_crear_enc(encabezado)
{
   xDisplay('crear_enc','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('crear_enc');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_crear_encabezado.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("encabezado="+encabezado);
} 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_enca(enca)
{
   xDisplay('act_enca','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_enca');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_act_encabezado.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("enca="+enca);
}  

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_crear_pie(pie)
{
   xDisplay('crear_pie','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('crear_pie');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_crear_pie.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("pie="+pie);
} 
//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_pie(id)
{
   xDisplay('act_pie','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_pie');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_act_pie.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("id="+id);
} 
//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_crear_pag(pag)
{
   xDisplay('crear_pag','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('crear_pag');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_crear_pagina.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("pag="+pag);
} 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_crear_pag1(pag)
{
   xDisplay('crear_pag1','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('crear_pag1');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_crear_pagina.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("pag="+pag);
}

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_act_pag(pagina)
{
   xDisplay('act_pag','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_pag');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_act_pagina.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("pagina="+pagina);
}

//---------------------------------------------------------------------------------------------------------------------------------------------------------------------

function indice(criterio,grupo,modelo,seccion,menu,categ,pagina,plantilla,deta)
{
   xDisplay('indice2','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('indice2');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "crear_indice2.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("criterio="+criterio+"&grupo="+grupo+"&modelo="+modelo+"&seccion="+seccion+"&menu="+menu+"&categ="+categ+"&pagina="+pagina+"&plantilla="+plantilla+"&deta="+deta);
}
 
 //------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  
function div_act_grupo(modelo,plantilla,grupo)
{
   xDisplay('act_grupo','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_grupo');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_grupo.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("modelo="+modelo+"&plantilla="+plantilla+"&grupo="+grupo);
} 
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  
function div_act_grupo1(grupo,plantilla)
{
   xDisplay('act_grupo','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_grupo');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_grupo1.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("grupo="+grupo+"&plantilla="+plantilla);
} 

//--------------------------------------------------------------------------------------------------------------------------------------------------------------

function div_eli_grupo(modelo,plantilla,grupo)
{
   xDisplay('del_grupo','block');
   /*y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('del_grupo');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_del_grupo.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("modelo="+modelo+"&plantilla="+plantilla+"&grupo="+grupo);
} 
//--------------------------------------------------------------------------------------------------------------------------------------------------------------
  
function div_act_enlace(enlace,plantilla)
{
   xDisplay('act_enlace','block');
   /*  y = document.bo0dy.clientHeight;
   x = document.body.clientWidth;
   y=(y+100);*/
   resul= document.getElementById('act_enlace');
   /*resul.innerHTML= '<div style="background-color:#FFFFFF;"><img src="img/proceso.gif" width="16" height="16" ><strong>Procesando...</strong></div>';*/
   /*resul.innerHTML='<div style="position:absolute; top:0px; left:0px; width:"+screen.width+"px; height:"+screen.height+"px;  background-image:url(img/trans4.png); "></div>';*/
   ajax=nuevoAjax();
   
   ajax.open("POST", "ver_enlace.php",true);
   ajax.onreadystatechange=function(){if(ajax.readyState==4){ resul.innerHTML = ajax.responseText;} }
   ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   
   ajax.send("enlace="+enlace+"&plantilla="+plantilla);
} 


