
// JavaScript Document

document.write ('<link href="estilos/alta.css" rel="stylesheet" type="text/css" title="style">');

/**************************************ie png fix**********************************/

/*document.write( "\<!--[if lt IE 7]\>");
document.write ("\<script" );
document.write( " defer type='text/javascript' src='../6065/js/pngfix.js'" );
document.write( "\>" );
document.write( "\</script\>\<![endif]--\>" );*/

/**************************************ie png fix**********************************/

/******************************** accesibilidad *********************************/
function putVal(lugar, valor){
	if($(valor)){
		if($(valor).type=='checkbox'){
			if($(valor).checked){
				var text=$E($F(valor));
				while($(lugar).lastChild)
					$(lugar).removeChild($(lugar).lastChild);
				$(lugar).appendChild(text);
			}
		}else{
	
			var text=$E($F(valor));
			while($(lugar).lastChild)
				$(lugar).removeChild($(lugar).lastChild);
			$(lugar).appendChild(text);
		}
	}
}

function iniciomarco1(){
document.write ('<table width="542" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:10px;">');
document.write ('  <tr>');
document.write ('    <td>');
document.write ('      <table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write ('        <tr>');
document.write ('          <td width="1" class="colorseccion1"><img src=img/pixel.gif" width="1" height="1"></td>');
document.write ('          <td width=""  height="1" class="colorseccion1"><img src="img/pixel.gif" width="1" height="1"></td>');
document.write ('          <td width="25" class="colorseccion1"><img src="img/pixel.gif" width="1" height="1"></td>');
document.write ('        </tr>');
document.write ('        <tr>');
document.write ('          <td width="1" class="colorseccion1"><img src="img/pixel.gif" width="1" height="1"></td>');
document.write ('          <td width="" style="padding-left:3px; padding-top:2px;">');
}


function finmarco1 (){
	
document.write ('          </td>');
document.write ('          <td width="25" style="border-right:1px solid #F29323;" ><img src="img/pixel.gif" width="1" height="1"></td>');
document.write ('        </tr>');
document.write ('        <tr>');
document.write ('          <td width="1" class="colorseccion1"><img src="img/pixel.gif" width="1" height="1"></td>');
document.write ('          <td width=""  style="border-bottom:1px solid #F29323;" ><img src="img/pixel.gif" width="1" height="1"></td>');
document.write ('          <td width="25" height="25" align="right"><img src="img/borde_1px1.gif"></td>');
document.write ('        </tr>');
document.write ('      </table>');
document.write ('    </td>');
document.write ('  </tr>');
document.write ('</table>');
}


function iniciomarco2(){
document.write ('<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:10px;">');
document.write ('  <tr>');
document.write ('    <td>');
document.write ('      <table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write ('        <tr>');
document.write ('          <td width="1" class="colorseccion1"><img src=img/pixel.gif" width="1" height="1"></td>');
document.write ('          <td width=""  height="1" class="colorseccion1"><img src="img/pixel.gif" width="1" height="1"></td>');
document.write ('          <td width="25" class="colorseccion1"><img src="img/pixel.gif" width="1" height="1"></td>');
document.write ('        </tr>');
document.write ('        <tr>');
document.write ('          <td width="1" class="colorseccion1"><img src="img/pixel.gif" width="1" height="1"></td>');
document.write ('          <td width="" style="padding-left:3px; padding-top:2px;">');
}


function ImprimePasos1 (pasostexto,pasos) {

document.write ('<table width="100%"  border="0" cellspacing="0" cellpadding="0">');
document.write ('  <tr>');
document.write ('    <td width="1" rowspan="5" class="colorseccion1"><img src="img/pixel.gif" width="1" height="1"></td>');
document.write ('    <td height="1" colspan="5" class="colorseccion1"><img src="img/pixel.gif" width="1" height="1"></td>');
document.write ('    <td width="1" rowspan="5" class="colorseccion1"><img src="img/pixel.gif" width="1" height="1"></td>');
document.write ('  </tr>');
document.write ('  <tr>');
document.write ('    <td><img src="img/pixel.gif" width="1" height="1"></td>');
document.write ('    <td class="txtpasos" width="80">'+pasostexto+'</td>');
document.write ('    <td height="18">');
document.write ('      <table width="100%" height="18" border="0" cellpadding="2" cellspacing="2">');
document.write ('        <tr>');
ancho = 100 / (pasos.length - 1);
  for (i = 1; i < pasos.length; i++) {
    if (i == pasos[0]) {
      document.write ('<td class="txtpasoson color2seccion1">&nbsp;'+i+'&nbsp;</td>');
      document.write ('<td  class="txtpasoson color2seccion1">'+pasos[i]+'</td>');
    }
    else {
		document.write ('<td class="" align="right" valign="top">&nbsp;'+i+'.</td>');
      document.write ('<td  class="txtpasosoff">'+pasos[i]+'</td>');
    }
  }
document.write ('        </tr>');
document.write ('      </table>');
document.write ('    </td>');
document.write ('    <td><img src="img/pixel.gif" width="1" height="1"></td>');
document.write ('  </tr>');
document.write ('  <tr>');
document.write ('    <td height="1" colspan="5" class="colorseccion1"><img src="img/pixel.gif" width="1" height="1"></td>');
document.write ('  </tr>');
document.write ('</table>');
}




function ImprimeMenu(nombre) {
var tablero="";
var auxtablero="";
var auxtablero2="";

  for(x=0; x < nombre.length; x++) {
	  auxtablero2=nombre[x].split("|")[2];
		auxtablero = auxtablero2.indexOf("javascript:");
		if (auxtablero == -1) // no se encontró la cadena "javascript:" en la URL
      tablero+='<td align="'+nombre[x].split("|")[1]+'"><input type="button" class="boton" value="'+nombre[x].split("|")[0]+'" onClick="self.location.href=\''+nombre[x].split("|")[2]+'\'"></td>';
	  else
      tablero+='<td align="'+nombre[x].split("|")[1]+'"><input type="button" class="boton" value="'+nombre[x].split("|")[0]+'" onClick="'+auxtablero2+'"></td>';
  }
  return tablero;
}
function iniciomarco3(){
document.write ('<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:10px;">');
document.write ('  <tr>');
document.write ('    <td>');
document.write ('      <table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write ('        <tr>');
document.write ('          <td width="1" class="colorseccion2"><img src=img/pixel.gif" width="1" height="1"></td>');
document.write ('          <td width=""  height="1" class="colorseccion2"><img src="img/pixel.gif" width="1" height="1"></td>');
document.write ('          <td width="25" class="colorseccion2"><img src="img/pixel.gif" width="1" height="1"></td>');
document.write ('        </tr>');
document.write ('        <tr>');
document.write ('          <td width="1" class="colorseccion2"><img src="img/pixel.gif" width="1" height="1"></td>');
document.write ('          <td width="" style="padding-left:3px; padding-top:2px;">');
}

function finmarco3 (){
	
document.write ('          </td>');
document.write ('          <td width="25" style="border-right:1px solid #E42485;" ><img src="img/pixel.gif" width="1" height="1"></td>');
document.write ('        </tr>');
document.write ('        <tr>');
document.write ('          <td width="1" class="colorseccion2"><img src="img/pixel.gif" width="1" height="1"></td>');
document.write ('          <td width=""  style="border-bottom:1px solid #E42485;;" ><img src="img/pixel.gif" width="1" height="1"></td>');
document.write ('          <td width="25" height="25" align="right"><img src="img/borde_1px02.gif"></td>');
document.write ('        </tr>');
document.write ('      </table>');
document.write ('    </td>');
document.write ('  </tr>');
document.write ('</table>');
}
