

function ok(){
	f=document.login;
	if (ltrim(f.usuario.value)==""){
		alert("Sartu erabiltzailea");
		f.usuario.focus();
	}else if (ltrim(f.password.value)==""){
		alert("Sartu pasahitza");
		f.password.focus();
	}else{
		f.accion.value="login";
		f.submit();
	}
}
function escribir_1(){
  document.write ("  <table border='0' bgcolor='"+colorR+"' cellspacing='0' cellpadding='0' align='center' width='99%'>");
  document.write ("  <form action='https://www.amvisa.org/w05pWeb/login.do' method='POST' name='login' target='_top'>");
  document.write ("	<input type='hidden' name='accion' value=''>");
  document.write ("	<input type='hidden' name='pagina' value=''>");
  document.write ("	<input type='hidden' name='seccion' value=''>");
  document.write ("	<input type='hidden' name='idioma' value='eu'>");
  document.write ("	<input type='hidden' name='aplicacion' value='w07Web'>");
  if (estamosIndex()){
  document.write ("	  <tr>");
  document.write ("	   <td colspan='4' width=70% ><img src='../../eu/images/pixel.gif' width='1' height='5'></td>");
  document.write ("	  </tr>");
  document.write ("	  <tr>");
  document.write ("	   <td colspan='4' valign='top' align='left' class='home'>");
  document.write ("	      <font color='#552D00'>&nbsp;&nbsp;<img src='../../eu/images/ident_cliente.gif' align='absmiddle'></font>");
  document.write ("	   </td>");
  document.write ("	  <tr>	  ");
  document.write ("	  <tr><td colspan='4'><img src='../../eu/images/pixel.gif' width='1' height='2'></td></tr>	  ");
  document.write ("	  <td colspan=5 background='../../eu/images/index-puntos-horz3.gif' heigth='1'><img src='../../eu/images/pixel.gif' heigth='1'></td></tr>");
  document.write ("	  <tr><td colspan='4'><img src='../../eu/images/pixel.gif' width='1' height='5'></td></tr>");
  document.write ("	  <tr>	  	  	  ");
  document.write ("	  <td><img src='../../eu/images/pixel.gif' width='2' height='3'></td>	  ");
  document.write ("	  <td align='right' class='texto' ><font color='#8D4A00'>&nbsp;Erabiltzailea</font>&nbsp;</td><td class='texto'><input name='usuario' type='text' size='8' maxlength='10' class='borde_txt'></td>");
  document.write ("	  <td><img src='../../eu/images/pixel.gif' width='1' height='3'></td>");
  document.write ("	  </tr>	  	  	    ");
  document.write ("	  <tr>	  	  	    ");
  document.write ("	  <td><img src='../../eu/images/pixel.gif' width='1' height='3'></td>  ");
  document.write ("	  <td align='right' class='texto'><font color='#8D4A00'>Pasahitza</font>&nbsp;</td><td class='texto'><input name='password' type='password' size='8' maxlength='10' class='borde_txt'>&nbsp;<a href='javascript:ok()'><img src='../images/form-ok2.gif' border='0' align=absmiddle></a>&nbsp;</td>");
  document.write ("	  <td align='left' class='texto'>&nbsp;</td>  ");
  document.write ("	  </tr>	  	  	    ");
  document.write ("	    <tr><td colspan='4'><img src='../../eu/images/pixel.gif' width='1' height='5'></td></tr>	");
  }else{
  document.write ("	  <tr>");
  document.write ("	    <td colspan='5' bgcolor='#ffffff' width=70% ><img src='../../eu/images/pixel.gif' width='1' height='5'></td>");
  document.write ("	  </tr>");
  document.write ("	  <tr>");
  document.write ("	    <td rowspan='5' bgcolor='#ffffff' valign='top' align='center'></td>");
  document.write ("	    <td rowspan='5'	bgcolor='#ffffff' width='1'><img src='../../eu/images/pixel.gif' width='1'></td>");
  document.write ("	    <td colspan='3' bgcolor='#ffffff' align='right' class='texto' >&nbsp;&nbsp;<font color='#8D4A00'>Erabiltzailea</font>&nbsp;<input name='usuario' type='text' size='8' maxlength='10' class='borde_txt'>&nbsp;&nbsp;</td>");
  document.write ("	  </tr>");
  document.write ("	  <tr>");
  document.write ("	   <td colspan='3' bgcolor='#ffffff'><img src='../../eu/images/pixel.gif' width='1' height='3'></td>");
  document.write ("	  </tr>");
  document.write ("	  <tr>");
  document.write ("	   <td colspan='3' bgcolor='#ffffff' align='right' class='texto' >&nbsp;&nbsp;<font color='#8D4A00'>Pasahitza</font>&nbsp;<input name='password' type='password' size='8' maxlength='10' class='borde_txt'>&nbsp;&nbsp;</td>");
  document.write ("	  </tr>");
  document.write ("	  <tr>");
  document.write ("	   <td colspan='3' bgcolor='#ffffff'><img src='../../eu/images/pixel.gif' width='1' height='3'></td>");
  document.write ("	  </tr>");
  document.write ("	  <tr>");
  document.write ("	   <td colspan='3' bgcolor='#ffffff' align='right' class='texto' ><a href='javascript:ok()'><img src='../../../images/form-ok2.gif' border='0'></a>&nbsp;&nbsp;</td>");
  document.write ("	  </tr>");
  document.write ("	  <tr>");
  document.write ("	   <td colspan='5' bgcolor='#ffffff' width=60% ><img src='../../eu/images/pixel.gif' width='1' height='5'></td>");
  document.write ("	  </tr>");
  }
  document.write ("  </form>  ");
  document.write ("  </table>");
}

function escribir_2(){
  document.write ("<table border='0' cellspacing='0' cellpadding='0' align='center' width='100%'>");
  if (estamosIndex()){
  document.write ("	<tr>");
  document.write ("	<td align='center'>");
  document.write ("	<a href='https://www.amvisa.org/w07Web/tramite.do?idioma=eu' target='_top'><img src='../../eu/images/accesoTrOnline.gif' align='absmiddle' border='0'></a>");
  document.write ("	</td>");
  document.write ("	</tr>");
  }else{
  document.write ("	<tr>");
  document.write ("	<td align='center'>");
  document.write ("	<a href='https://www.amvisa.org/w07Web/tramite.do?idioma=eu' target='_top'><img src='../../../eu/images/accesoTrOnlineLateral.gif' align='absmiddle' border='0' vspace='2'></a>");
  document.write ("	</td>");
  document.write ("	</tr>");
  }
  document.write ("</table>");
}

