Ver Mensaje Individual
  #6 (permalink)  
Antiguo 28/04/2004, 05:57
Enea
 
Fecha de Ingreso: junio-2003
Mensajes: 744
Antigüedad: 21 años, 8 meses
Puntos: 0
Ok, no hay problema, es el siguiente:

<html>
<head>
<title>PRE-RESERVA</title>

<link href="../Admin/admin.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.Estilo1 {color: #000099}
.Estilo2 {color: #FF0000}
-->
</style>
<script language="javascript">
function comprobamos()
{
//Comprobamos que los datos obligatorio se rellenan, si es así mandamos el formulario si no se obtendrá un mensaje de error.
if ((document.reserva.Nombre_H.value != "") && (document.reserva.Poblacion_H.value != "") && (document.reserva.Telefono_H.value != ""))
{
opener.document.reserva.Nombre_H.value=document.re serva_hotel.Nombre_H.value;
opener.document.reserva.Poblacion_H.value=document .reserva_hotel.Poblacion_H.value;
opener.document.reserva.Telefono_H.value=document. reserva_hotel.Telefono_H.value;
}
else alert ("ATENCIÓN:\nDEBE RELLENAR LOS CAMPOS MARCADOS CON ASTERISCO.");
}
</script>
</head>
<body>

<form name="reserva_hotel">
<table width="85%" border="0" align="center">
<tr>
<td width="5%" class="formularios"><div align="right">Hotel*</div></div></td>
<td width="75%"><input name="Nombre_H" type="text" id="Nombre_H" size="40"></td>
</tr>
<tr>
<td width="5%" class="formularios"><div align="right">Telefono*</div></td>
<td width="75%"><input name="Telefono_H" type="text" id="Telefono_H" size="40"></td>
</tr>
<tr>
<td width="5%" class="formularios"><div align="right">Localidad*</div></td>
<td width="75%"><select name="Poblacion_H" id="Poblacion_H">
<option value="Ibiza">Ibiza</option>
<option value="San Antonio">San Antonio</option>
<option value="San Jos&eacute;">San Jos&eacute;</option>
<option value="Sta. Eulalia">Sta. Eulalia</option>
<option value="San Juan">San Juan</option>
</select> </td>
</tr>
</table>

<br>
<table width="85%" align="center">
<tr>
<td><div align="right"><input name="Submit" type="button" class="formularios" onClick="comprobamos()" value="Ok"></div></td>
</tr>
</table>
</form>
</body>
</html>
__________________
Ibisof | Saludos desde Eivissa !!! :p