 
 function cabeceraModulos(  indice, tema) {
// alert("0"); 
  var imagen = "";
  var enlacequien= " onClick='goWeb(\"http://www.sunat.gob.pe/quienesSomos/index.html\")' ";
  var enlacegestion= " onClick='goWeb(\"http://www.sunat.gob.pe/gestionTransparente/index.html\")' ";
  var enlacelegis  = " onClick='goWeb(\"http://www.sunat.gob.pe/legislacion/index.html\")' ";
  var enlacepubli = " onClick='goWeb(\"http://www.sunat.gob.pe/publicaciones/index.html\")' ";
  var enlaceeduc  = " onClick='goWeb(\"http://www.sunat.gob.pe/comunidadEducativa/index.html\")' ";
  var enlaceindic = " onClick='goWeb(\"http://www.sunat.gob.pe/indicadores/index.html\")' ";
  var enlaceremates = " onClick='goWeb(\"http://www.sunat.gob.pe/remates/index.html\")' ";
  var enlacecustom = " onClick='goWeb(\"http://www.sunat.gob.pe/aduanas/version_ingles/index.html\")' ";
  var enlacedefenso = " onClick='goWeb(\"/aduanas/version_ingles/index.html\")' ";
  var enlacemapa = " onClick='goWeb(\"http://www.sunat.gob.pe/mapaPortal/index.html\")' ";
  var enlaceorienttrib= " onClick='goWeb(\"http://www.sunat.gob.pe/orientacion/index.html\")' ";
  var enlacemedpago= " onClick='goWeb(\"http://www.sunat.gob.pe/declaracionPago/index.html\")' ";
  var enlaceorientadu= " onClick='goWeb(\"/orientacAduana/index.html\")' ";
  var operaadu= " onClick='goWeb(\"/operatividadAduana/index.html\")' ";
  var enlacearancel= " onClick='goWeb(\"/arancelSivep/index.html\")' ";
  var enlacegestioncalidad= " onClick='goWeb(\"/gestionCalidad/index.html\")' ";
  var comunidadEducativa= " onClick='goWeb(\"http://www.sunat.gob.pe/comunidadEducativa/index.html\")' ";

	 if (tema == 'quienesSomos' ) {
		imagen = "<img src='/imagenes/portalUnificado/quienesSomos.gif'> ";
		enlacequien= " bgcolor='#003399' ";
	 }
	 else if (tema == 'gestion' )  {
		imagen = "<img src='/imagenes/portalUnificado/gestionTransparente.gif'> ";
		enlacegestion= " bgcolor='#003399' ";
	 }
	 else if (tema == 'legislacion' ) {
		imagen = "<img src='/imagenes/portalUnificado/legislacion.gif'> ";
		enlacelegis= " bgcolor='#003399' ";
	 }
	 else if (tema == 'publicaciones' ) {
		imagen = "<img src='/imagenes/portalUnificado/publicaciones.gif'> ";
		enlacepubli= " bgcolor='#003399' ";
	 }
	 else if (tema == 'educandonos' ) {
		imagen = "<img src='/imagenes/portalUnificado/educandonos.gif'> ";
		enlaceeduc= " bgcolor='#003399' ";
	 }
	 else if (tema == 'indicadores' ) {
		imagen = "<img src='/imagenes/portalUnificado/indicadores.gif'> ";
		enlaceindic= " bgcolor='#003399' ";
	 }
	 else if (tema == 'remates' ) {
		imagen = "<img src='/imagenes/portalUnificado/remates.gif'> ";
		enlaceremates= " bgcolor='#003399' ";
	 }
	 else if (tema == 'defensoria' ) {
		imagen = "<img src='/imagenes/portalUnificado/defensoriaContribuyente.gif'> ";
		enlacedefenso= " bgcolor='#003399' ";
	 }
	 else if (tema == 'denuncia' ) {
		imagen = "<img src='/imagenes/portalUnificado/denuncias.gif'> ";
		enlacedefenso= " bgcolor='#003399' ";
	 }
	 else if (tema == 'custom' ) {
		imagen = "<img src='/imagenes/portalUnificado/customs.gif'> ";
		enlacecustom= " bgcolor='#003399' ";
	 }
	 else if (tema == 'mapa' ) {
		imagen = "<img src='/imagenes/portalUnificado/mapaWeb.gif'> ";
		enlacemapa= " bgcolor='#003399' ";
	 }
	 else if (tema == 'buscador' ) {
		imagen = "<img src='/imagenes/portalUnificado/buscador.gif'> ";
		enlacemapa= " bgcolor='#003399' ";
	 }
	 else if (tema == 'orienttrib' ) {
		imagen = "<img src='/imagenes/portalUnificado/orientacionTributaria.gif'> ";
		enlaceorienttrib= " bgcolor='#003399' ";
	 }
	 else if (tema == 'medpago' ) {
		imagen = "<img src='/imagenes/portalUnificado/declaracionPago.gif'> ";
		enlacemedpago = " bgcolor='#003399' ";
	 }
	 else if (tema == 'orientadu' ) {
		imagen = "<img src='/imagenes/portalUnificado/orientacionAduanera.gif'> ";
		enlaceorientadu= " bgcolor='#003399' ";
	 }
	 else if (tema == 'operaadu' ) {
		imagen = "<img src='/imagenes/portalUnificado/operatividadAduanera.gif'> ";
		enlaceoperadu= " bgcolor='#003399' ";
	 }
	 else if (tema == 'arancel' ) {
		imagen = "<img src='/imagenes/portalUnificado/arancelValores.gif'> ";
		enlacearancel = " bgcolor='#003399' ";
	 }
	 else if (tema == 'busca' ) {
		imagen = "<img src='/imagenes/portalUnificado/buscador.gif'> ";
		enlacearancel = " bgcolor='#003399' ";
	 }
	 else if (tema == 'comunicAd' ) {
		imagen = "<img src='/imagenes/portalUnificado/comunicAd.gif'> ";
		enlacecomunicAd = " bgcolor='#003399' ";
	 }
	 else if (tema == 'ultimaNot' ) {
		imagen = "<img src='/imagenes/portalUnificado/ultimaNot.gif'> ";
		enlaceultimaNot = " bgcolor='#003399' ";
	 }
	 else if (tema == 'enlacInteres' ) {
		imagen = "<img src='/imagenes/portalUnificado/enlaceInt.gif'> ";
		enlaceenlacInteres = " bgcolor='#003399' ";
	 }
	 else if (tema == 'remateAduana' ) {
		imagen = "<img src='/imagenes/portalUnificado/remateAduana.gif'> ";
		enlaceenlacInteres = " bgcolor='#003399' ";
	 }
	 else if (tema == 'tutoriales' ) {
		imagen = "<img src='/imagenes/portalUnificado/tutorialesDemos.gif'> ";
		enlaceenlacInteres = " bgcolor='#003399' ";
	 }
	 else if (tema == 'gestionCalidad' ) {
		imagen = "<img src='/imagenes/portalUnificado/gestionCalidad.gif'> ";
		enlacegestioncalidad = " bgcolor='#003399' ";
	 }
// alert("2"); 

	return " <script language='javascript'> "+ 
	" function s(x) { \n"+ 
	" var msg=new Array(); \n"+ 
	" msg[1]='&iquest;Qu&eacute; es la SUNAT?, Visi&oacute;n y Misi&oacute;n, Funciones y Atribuciones, Tributos que Administra, Facultades que posee, [...]';  \n"+ 
	" msg[2]='Plan Estrat&eacute;gico 2003-2008, Presupuesto Institucional, Adquisiciones y Contrataciones, Convenio de Gesti&oacute;n, [...]'; \n"+ 
	" msg[3]='Resumen Legal, Documentos Emitidos por SUNAT, Principales Normas , Normas varias | Normas referidas a Remuneraciones, [...]'; \n"+ 
	" msg[4]='Notificaci&oacute;n a Deudores Tributarios y aduaneros, Pricos que vienen incumpliendo el RESIT, Nota Tributaria, [...]'; \n"+ 
	" msg[5]='Revista Tributemos, Charlas y Seminarios, Educaci&oacute;n Tributaria, Biblioteca en L&iacute;nea, [...]'; \n"+ 
	" msg[6]='Indicadores, Tipo de Cambio, Tasa de Inter&eacute;s Moratorio (TIM), Indice de Precios al por Mayor (IPM), [...]'; \n"+ 
	" msg[7]='Remates, Remates en Tributos Internos, Remates en Aduanas, [...]'; \n"+ 
	" document.write(msg[x]); "+ 
	" } "+ 
	" </script> "+ 
	" <!--FIN FUNCIONES--> "+ 
	" "+
"	<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td valign='bottom'> "+
"	<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td height='6'></td></tr><tr><td valign='bottom'> "+
"	<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr><td valign='bottom' class='mid'> "+
"	<table width='100%' height='39' border='0' cellpadding='0' cellspacing='0'><tr valign='bottom'> "+
"	<td width='155' height='39' valign='bottom'><a id='home' href='http://www.sunat.gob.pe/index.html' target='_top'><img src='/imagenes/logo.gif' border='0'></a></td> "+
"	<td width='557' align='center'> "+imagen+" </td> "+
"	<td width='55' align='right' valign='bottom'><img src='/imagenes/escudo.gif'></td></tr> "+
"	</table></td></tr><tr><td > "+
"	<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td width='25%'>&nbsp;</td><td width='65%'> "+
"	<table width='587' align='right' height='17' border='0' cellpadding='0' cellspacing='0' background='/imagenes/tC2.gif' style='background-repeat:no-repeat ; background-position:bottom '> "+
"	<tr><td width='18'>&nbsp;</td><td width='251' align='right' style='vertical-align:bottom'> "+
"	<table width='178' height='15' border='0' cellpadding='0' cellspacing='0'><tr><td width='178'> "+
"	<!-- MARQUEE ADUANAS--><marquee direction='left' loop='-1' scrolldelay='150' truespeed width='94%'> "+
"	<a href='http://www.aduanet.gob.pe/novedades/aduanas/comunicados/2009/comunica2009.htm' class='dTbn' style='text-decoration:underline' target='_blank'>Comunicados Aduaneros</a>&nbsp;</marquee> "+
"	<!--FIN MARQUEE ADUANAS--></td></tr></table> "+
"	</td><td width='65'>&nbsp;</td><td width='251' align='right' style='vertical-align:bottom'> "+
"	<table width='190' height='15' border='0' cellpadding='0' cellspacing='0'><tr><td width='190'> "+
"	<!-- MARQUEE TRIBUTO INTERNO--><marquee direction='left' width='93%' loop='-1' scrolldelay='150' truespeed class='dT'> <a href='http://www2.sunat.gob.pe/pdt/pdtdown/independientes/independientes.htm' class='dtRN' style='text-decoration:underline ' target='_blank'>Descarga _ Módulos Independientes PDT</a>&nbsp;</marquee> "+
"	<!-- MARQUEE TRIBUTO INTERNO--></td><td width='15'>&nbsp;</td></tr></table> "+
"	</td></tr></table> "+
"	</td><td width='10'></td></tr></table> "+
"	</td></tr></table> "+
"	</td></tr><tr><td height='16'> "+
"	<!--MENU PRINCIPAL--> "+
"	<table width='99%' align='center' height='16' border='0' cellspacing='1' class='dTW'><tr bgcolor='#959593'> "+
"	<td width='15%' id='m1' onMouseOver='c1(this)' onMouseOut='c2(this)' "+enlacequien+" align='center'><center><table width='112' border='0' cellpadding='0' cellspacing='1' class='dTW'><tr><td id='m1' onMouseOver='c1(this)' onMouseOut='c2(this)' "+enlacequien+" align='center'>&iquest;Qui&eacute;nes Somos?</td></tr></table></center></td> "+
"	<td width='17%' id='m2' onMouseOver='c1(this)' onMouseOut='c2(this)' "+enlacegestion+" align='center'><center><table width='132' border='0' cellpadding='0' cellspacing='0' class='dTW'><tr><td id='m2' onMouseOver='c1(this)' onMouseOut='c2(this)' "+enlacegestion+" align='center'>Gesti&oacute;n Transparente</td></tr></table></center></td> "+
"	<td width='14%' id='m3' onMouseOver='c1(this)' onMouseOut='c2(this)' "+enlacelegis+" align='center'>Legislaci&oacute;n</td> "+
"	<td width='12%' id='m4' onMouseOver='c1(this)' onMouseOut='c2(this)' "+enlacepubli+" align='center'>Publicaciones</td> "+
"	<td width='14%' id='m5' onMouseOver='c1(this)' onMouseOut='c2(this)' "+enlaceeduc+" align='center'>Educ&aacute;ndonos</td> "+
"	<td width='14%' id='m6' onMouseOver='c1(this)' onMouseOut='c2(this)' "+enlaceindic+" align='center'>Indicadores</td> "+
"	<td width='14%' id='m7' onMouseOver='c1(this)' onMouseOut='c2(this)' "+enlaceremates+" align='center'>Remates</td></tr></table> "+
"	<!--FIN MENU PRINCIPAL--></td></tr><tr><td> "+
"	<table width='99%' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td> "+
"	<table width='100%' height='20' border='0' cellpadding='0' cellspacing='0'><tr><td height='19' class='brT'> "+
"	<!--ZONA DE ACCESORIOS--> "+
"	<table width='100%' border='0' cellpadding='0' cellspacing='0' id='t0'> "+
"	<tr align='center' class='brT'><td width='26%' height='21'> "+
"	<table width='188' border='0' cellpadding='0' cellspacing='0'><tr><td width='18'><img src='/imagenes/balanza.png' align='absmiddle'></td> "+
"	<td width='170' class='marcodos'><a href='/defensoriaContrib/index.html' class='dTextoB' onMouseOver='m1(this)' onMouseOut='m2(this)' target=_top>Quejas y Sugerencias</a></td></tr> "+
"	</table></td><td width='19%' align='center'>"+
//"	<a href='/denuncias/index.html' class='dTextoB' onMouseOver='m1(this)' onMouseOut='m2(this)' target=_top>Denuncias</a></td><td width='19%'> "+
"	<table width='150' border='0' cellpadding='0' cellspacing='0' align='center'><tr><td width='18'><img src='/imagenes/e2.png' align='absmiddle'></td> "+
"	<td width='132' class='marcodos'><a href='http://www.sunat.gob.pe/aduanas/version_ingles/index.html' class='dTextoB' onMouseOver='m1(this)' onMouseOut='m2(this)' target=_top>Customs Information</a></td> "+
"	</tr></table></td><td width='19%'> "+
"	<table width='190' border='0' cellpadding='0' cellspacing='0' align='center'><tr><td width='21'><img src='/imagenes/iempleo.jpg' align='absmiddle'></td> "+
"	<td width='200' class='marcodos'><a href='http://www.sunat.gob.pe/oportunidadLaboral/index.html' class='dTextoB' onMouseOver='m1(this)' onMouseOut='m2(this)' target=_top>Oportunidades Laborales</a></td> "+
//"	<table width='112' border='0' cellpadding='0' cellspacing='0' align='center'><tr><td width='21'><img src='/imagenes/iconHome.gif' align='absmiddle'></td> "+
//"	<td width='91' class='marcodos'><a href='http://www.sunat.gob.pe/mapaPortal/index.html' class='dTextoB' onMouseOver='m1(this)' onMouseOut='m2(this)' target=_top>Mapa del Sitio</a></td> "+
"	</tr></table></td> "+
"	<td width='19%'><img src='/imagenes/iconSearch.gif' align='absmiddle'>&nbsp;<a href='http://buscador.sunat.gob.pe/search/' class='dTextoB' onMouseOver='m1(this)' onMouseOut='m2(this)' target=_top>Buscador</a></td></tr> "+
"	</table> "+
"	<!--FIN ZONA DE ACCESORIOS--> "+
"	<!-- NO MOVER --> "+
"	<table width='100%' height='21' border='0' cellpadding='0' cellspacing='0' id='t1' style='display:none'><tr><td height='19'> "+
"	<table width='100%' height='19' border='0' cellpadding='0' cellspacing='0'><tr><td class='dNav'>&nbsp;<script>s(1)</script></td></tr> "+
"	</table></td></tr> "+
"	</table> "+
"	<table width='100%' height='21' border='0' cellpadding='0' cellspacing='0' id='t2' style='display:none'><tr><td height='19' class='dTextoB'> "+
"	<table width='100%' height='19' border='0' cellpadding='0' cellspacing='0'><tr><td class='dNav'>&nbsp;<script>s(2)</script></td></tr> "+
"	</table> "+
"	</td></tr></table> "+
"	<table width='100%' height='21' border='0' cellpadding='0' cellspacing='0' id='t3' style='display:none'><tr><td height='19' class='dTextoB'> "+
"	<table width='100%' height='19' border='0' cellpadding='0' cellspacing='0'><tr><td class='dNav'>&nbsp;<script>s(3)</script></td></tr> "+
"	</table></td></tr> "+
"	</table> "+
"	<table width='100%' height='21' border='0' cellpadding='0' cellspacing='0' id='t4' style='display:none'><tr><td height='19' class='dTextoB'> "+
"	<table width='100%' height='19' border='0' cellpadding='0' cellspacing='0'><tr><td class='dNav'>&nbsp;<script>s(4)</script></td></tr> "+
"	</table></td></tr> "+
"	</table> "+
"	<table width='100%' height='21' border='0' cellpadding='0' cellspacing='0' id='t5' style='display:none'><tr><td height='19' class='dTextoB'> "+
"	<table width='100%' height='19' border='0' cellpadding='0' cellspacing='0'><tr><td class='dNav'>&nbsp;<script>s(5)</script></td></tr> "+
"	</table></td></tr> "+
"	</table> "+
"	<table width='100%' height='21' border='0' cellpadding='0' cellspacing='0' id='t6' style='display:none'><tr><td height='19' class='dTextoB'> "+
"	<table width='100%' height='19' border='0' cellpadding='0' cellspacing='0'><tr><td class='dNav'>&nbsp;<script>s(6)</script></td></tr> "+
"	</table></td></tr> "+
"	</table> "+
"	<table width='100%' height='21' border='0' cellpadding='0' cellspacing='0' id='t7' style='display:none'><tr><td height='19' class='dTextoB'> "+
"	<table width='100%' height='19' border='0' cellpadding='0' cellspacing='0'><tr><td class='dNav'> &nbsp;<script>s(7)</script></td></tr> "+
"	</table></td></tr> "+
"	</table></td></tr> "+
"	</table></td></tr> "+
"	</table></td></tr> "+
"	</table> "+
"	<table width='100%' border='0' cellpadding='0' cellspacing='0' class='lowMenu'><tr><td height='17' class='dNav'>&nbsp;&nbsp;<a href='/aduanet.htm' target='_top' class='dNav'>Inicio</a> "+indice+" </td></tr> "+
"	</table></td></tr> "+
"	</table> "+
"	<!--fin de NO MOVER--> "+
"	</td></tr></table> ";
	
 }

