From: "Guardado por Windows Internet Explorer 8"
Subject: Calcular lletra NIF
Date: Thu, 29 Jul 2010 11:16:07 +0200
MIME-Version: 1.0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: file://F:\Vicent_Bou\@Webs_e_mails\Web_xeresa_info\sise\docs\DNI crear NIF calcular letra NIF calcular DNI D_N_I_ N_I_F generar D_N_I.htm
X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7600.16543

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=3D(0035)http://www.xeresa.info/nif.htm =
--><HTML><HEAD><TITLE>Calcular lletra NIF</TITLE>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META name=3DGENERATOR content=3D"MSHTML 8.00.7600.16588">
<SCRIPT language=3DJAVASCRIPT>
<!--
var pulsado=3Dfalse;
 =20
function highlightButton(s) {
    if ("INPUT"=3D=3Devent.srcElement.tagName)
      event.srcElement.className=3Ds
  }
var pulsado=3Dfalse;
function validarDatos()
{
pulsado=3Dfalse;
if (!validarNulo(document.highlight.vdni,"NIF"))
        return false;

return true;
}
function validarDatosPulsar()
{
if (!validarNulo(document.highlight.vdni,"NIF"))
        return false;
}
function validarNulo(campo,texto)
{
if (campo.value.length=3D=3D0)
   {
                        alert("ERROR: Has olblidat omplir el nombre del =
DNI  "+texto+", que no puede deixar-se en blanc");
                        campo.focus();
                        return false;
   }
if (campo.value.length<=3D7)
   {
                        alert("ERROR: El DNI "+texto+", ha de tindre =
almenys 8 car=E0cters");
                        campo.focus();
                        return false;
   }

   return true;
}
//-->
</SCRIPT>

<META name=3Dkeywords content=3DCalcular nif del lletra></HEAD>
<BODY onload=3Djavascript:pulsado=3Dfalse; bgColor=3D#ccffff>
<DIV align=3Dcenter>
<CENTER>
<TABLE border=3D0 width=3D656 height=3D101>
  <TBODY>
  <TR>
    <TD height=3D11 width=3D"66%">
      <BLOCKQUOTE>
        <P align=3Dcenter><FONT color=3D#cc0033 size=3D5=20
        face=3D"Verdana, Arial, Helvetica, =
sans-serif"><STRONG>Introdueix un=20
        nombre de DNI,<BR>i calcula la lletra que li=20
        correspon..</STRONG></FONT></P></BLOCKQUOTE></TD></TR>
  <TR>
    <TD height=3D41 width=3D"66%">
      <FORM onmouseover=3D"highlightButton('start')"=20
      onmouseout=3D"highlightButton('')" name=3Dhighlight>
      <DIV align=3Dcenter>
      <CENTER>
      <TABLE border=3D0 width=3D84>
        <TBODY>
        <TR>
          <TD width=3D65><INPUT maxLength=3D8 size=3D8 name=3Dvdni> =
</TD>
          <TD width=3D10><INPUT maxLength=3D2 size=3D2 name=3Dvletra> =
</TD></TR>
        <TR>
          <TD width=3D65><INPUT onclick=3D"javascript: if =
(validarDatos()) calcularletra ();" value=3DCalcular type=3Dbutton =
name=3D"Calc. Letra">=20
          </TD>
          <TD width=3D10><INPUT =
onclick=3D"document.highlight.vdni.value=3D'';document.highlight.vletra.v=
alue=3D'';" value=3DBorrar type=3Dbutton name=3DBorrar>=20
          </TD></TR></TBODY></TABLE></CENTER></DIV>
      <DIV align=3Dcenter>
      <CENTER>
      <P><BR>
      <SCRIPT language=3DJavaScript>
function calcularletra ()
{
 var cadena =3D 'TRWAGMYFPDXBNJZSQVHLCKET';
var posicion =3D document.highlight.vdni.value % 23;
document.highlight.vletra.value=3Dcadena.charAt(posicion);
}
</SCRIPT>
      =
</P></CENTER></DIV></FORM></TD></TR></TBODY></TABLE></CENTER></DIV></BODY=
></HTML>

