Código PHP:
<?php
include("../funciones/funcionesbox.php");?>
<script language='javascript' src="../funciones/popcalendar.js"></script>
<!--Llamo la configuracion de los div-->
<script type="text/javascript" src="../funciones/tabs_o_pestanas_con_javascript_no_intrusivo.js"></script>
<script language="JavaScript" type="text/javascript" src="../funciones/ajax/Reguistro_usuarios.js"></script>
<script language='javascript' src="../funciones/popcalendar.js">
</script>
<link href="css/siap.css" rel="stylesheet" type="text/css" />
<!--Zona de Trabajo -->
<style type="text/css">
<!--
.txt {font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000000; font-weight: none; text-decoration: none;}
-->
</style>
<div class="txt" id="logo">
<p><img src="../imag/tit_RegUsuario.gif" width="646" height="98" /></p>
<fieldset>
<legend></legend>
<!--< <form name="Guarda_Empleados.php" action=""onsubmit="enviarDatosEmpleado(); return false"> >-->
<form action="Guarda_Empleados.php" method="post" class="txt" >
<table width="54%" height="36%" border="0" cellpadding="0" cellspacing="0" class="estilo1">
<!--DWLayoutTable-->
<tr>
<td width="4" height="18"></td>
<td width="131"><img src="../imag/personal/avatar-man.gif" name="imagen" width="130" height="150" class="cajatexto1" id="imagen" /></td>
<td width="4"></td>
<td width="90"></td>
<td width="4"></td>
<td width="16%" rowspan="2" valign="baseline"><label for="textfield">Rut</label> <input name="Rut" type="text" id="Rut" size="15"> </td>
<td width="76"></td>
<td width="10"></td>
</tr>
<tr>
<td height="25"></td>
<td rowspan="2" valign="top"><input name="userfile" type="file" class="txt" onchange="muestra();" size="10" style="float: left" />
<input type="hidden" name="MAX_FILE_SIZE" value="100000" /></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="18"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td rowspan="2"><label for="textfield"></label></td>
<td height="25%" valign="baseline" class="txt"><label for="textfield">Nombres</label>
<input name="Nombre" type="text" id="Nombre" size="15"></td>
<td> </td>
<td valign="baseline"><label for="label">Apellidos</label> <input name="Apellido" type="text" id="label" size="15"> </td>
<td> </td>
<td colspan="2" valign="baseline"><label for="label2">Fecha Nacimiento <input name="FechaIngreso1" type="text" id="dateArrival" onClick="popUpCalendar(this, form1.dateArrival, 'mm-dd-yyyy');" size="15"></label></td>
<td> </td>
</tr>
<tr>
<td height="0%"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="0%"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="25%"> </td>
<td class="txt">Estado Civil <?php cargar_combo("tblestadocivil","Id_EstadoCivil","Nombre"); ?></td>
<td> </td>
<td valign="top"><label for="label3">Fecah Ingreso <input name="FechaIngreso" type="text" id="dateArrival" onClick="popUpCalendar(this, form1.dateArrival, 'mm-dd-yyyy');" size="15"></label></td>
<td> </td>
<td><label for="select">Activo</label>
s
<select name="Activo" id="Activo">
<option>SI</option>
<option>No</option>
</select> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="10%"> </td>
<td class="txt"><!--DWLayoutEmptyCell--> </td>
<td> </td>
<td valign="top"><!--DWLayoutEmptyCell--> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="16%"> </td>
<td class="txt"><!--DWLayoutEmptyCell--> </td>
<td> </td>
<td valign="top"><div align="right">
<input name="Submit" type="submit" id="Submit" value="Enviar">
</div></td>
<td> </td>
<td><label for="Submit"></label>
<input name="Submit2" type="reset" class="tabla" id="Submit2" value="Restablecer"></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="0%"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</form>
</fieldset>
<p><a href="consulta.php">historico</a></p>
<p> </p>
este es el formulario cuando ingreso el rut no me lo esta validando pasa de largo y es por que no me esta tomando la funcion