no te funciona porque tu html es un desastre, limpiandolo un poco
Código HTML:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <script type="text/javascript"> //<![CDATA[
function edad(Fecha){
fecha = new Date(Fecha);
hoy = new Date();
ed = parseInt((hoy -fecha)/365/24/60/60/1000);
document.getElementById('pepe').value = "tienes " + ed + " años";
}
//]]>
<form name="form" action="procesosolicitud.php" method="get" id="form"><!--// <img src="logo.gif" align=right WIDTH=90, HEIGTH=90>//--> <center>
<h1>CPS 5110 -Solicitud de pension-
</h1> </center>
<table align="center" width="1100" border="10"> <td>Seleccione delegacion
</td> <td>Numero de solicitud
</td> <td>Numero de expediente
</td> <td>Numero de expediente clasificado
</td> <td>Apellido y Nombre
</td> <td><input type="text" name="1" size="50" maxlength="50" onkeyup="validar(this.id,'mensaje_nombre');" id="nombre" /><span id="mensaje_nombre"></span></td> <td><input type="text" name="7" size="50" maxlength="50" /></td>
<td>Fecha de iniciacion
</td> <td><input name="fecha" type="text" id="fecha" value="" /></td> <td>Ubicacion-Listado
</td> <td><input type="text" name="15" size="100" maxlength="400" /></td> <td>xxxxx
<input type="text" name="textfield" onblur="edad(this.value)" /></td> <td><input type="text" name="pepe" id="pepe" /></td> <input type="submit" name="boton1" value="Aceptar y Guardar Solicitud" class="boton" /><!--//la clase boton esta definida en el archivo stylo.css//--></form>
si funciona
acostumbrate a pasar el html generado, no el php y a usar el highlight del editor del foro