Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/01/2006, 14:02
CARAQUEÑITO
 
Fecha de Ingreso: julio-2004
Mensajes: 29
Antigüedad: 20 años, 8 meses
Puntos: 0
Solventado....Coloco la solucion que encontre

BUENO, NO IMPORTA YA LO TENGO, o Por lo menos asi me funciono. Gracias de todas maneras. Si alguien encuentra una forma mas rapida o mas elegante se le agradece su colaboracion


<script language="javascript">
function Validar_Formulario(){
bol_focus=false;
if (document.frm_Init.txt_firstname.value.length=="") {
document.getElementById('lbl01').innerHTML="Please input your first name";
if(bol_focus!=true){
bol_focus=true;
document.frm_Init.txt_firstname.focus()
}

}else{
document.getElementById('lbl01').innerHTML=""
}
if (document.frm_Init.txt_lastname.value.length==""){
document.getElementById('lbl02').innerHTML="Please input your last name";
if(bol_focus!=true){
bol_focus=true;
document.frm_Init.txt_lastname.focus()
}
}else{
document.getElementById('lbl02').innerHTML="";
}
}
</script>
<form action="index.php?s=1" method="post" name="frm_Init">
<tr>
<td height="33" colspan="4" valign="top">
<div align="center"><span class="texto-naranja"><b>Member Information</b></span></div> </td>
</tr>
<tr>
<td width="109" height="24" valign="top"><span class="texto-gris"> First Name:</span></td>
<td width="230"><input name="txt_firstname" type="text" value="" size="25" />
<font face="Arial, Helvetica, sans-serif" size="1" color="#FF0000"><div id="lbl01"></div></font> </td>

<td><label>&nbsp;*&nbsp;</label></td>
</tr>
<tr>
<td width="109" height="24" valign="top"><span class="texto-gris"> Last Name:</span></td>
<td width="230"><label><input name="txt_lastname" type="text" value="" size="25" /></label>
<font face="Arial, Helvetica, sans-serif" size="1" color="#FF0000"><div id="lbl02"></div></font></td>
</tr>