Desde ya muchas gracias!
Código HTML:
<link rel="stylesheet" type="text/css" href="css/style.css"> function validar() { form = document.contactoform; if (form.email.value == "") { alert("Complete correctamente el email por favor. Gracias!"); form.email.focus(); return false; } if (form.nombre.value == "") { alert("Complete correctamente su nombre por favor. Gracias!"); form.nombre.focus(); return false; } if (form.consulta.value == "") { alert("Complete el campo consulta por favor. Gracias!"); form.consulta.focus(); return false; } form.submit(); } <script type="text/javascript"> function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } </script> </head> <body id="home" onLoad="MM_preloadImages('images/botonera_footer/servicios_footer_up.jpg','images/botonera_footer/equipos_footer_up.jpg','images/botonera_footer/filtros_footer_up.jpg','images/botonera_footer/aux_footer_up.jpg','images/botonera_footer/piscinas_footer_up.jpg','images/botonera_footer/kit_footer_up.jpg')"> <div class="wrapper"> <div class="header"> <a class="logo" href="index.html">hidrofiltros</a> <ul class="menu"> <li><a href="contacto.php">contacto</a></li> </ul> </div> <div class="slider-wrapper theme-default"></div> <div class="content-boxes-interior"> <div id="content-interior"> <div id="contenido"> <div id="titulo">Contacto</div> <div id="contacto"> <div class="texto_boton"><span style="color:#74B7D6; font-size:15px; font-weight:bold;">Complete el formulario si desea ponerse en contacto con nosotros. <br> Le responderemos a la brevedada</span> <div id="formulario"><?php if (!isset($_GET['enviar'])) { ?> <form method="post" name="contactoform" id="contactoform" action="contacto.php?option=contacto&enviar=si"> <table width="600" border="0" cellpadding="2" cellspacing="2"> <tr> <td width="50" class="titulos_form">Sector</td> <td width="311"><select name="tema" id="tema"> <option value="0">Elegir sector</option> <option value="ventas">Ventas</option> <option value="gerencia">Gerencia</option> <option value="obras">Obras</option> <option value="Otro">Otro</option> </select></td> <td width="219" style="padding-left: 20px; border-left-color: #84D0F0; border-left-style: solid; border-left-width: thin;"><span class="titulo_celeste">Casa central:</span></td> </tr> <tr> <td class="titulos_form">Nombre</td> <td><input name="nombre" type="text" class="celda_form" id="nombre" size="30" /></td> <td rowspan="5" valign="top" class="titulos_form" style="padding-left: 20px; border-left-color: #84D0F0; border-left-style: solid; border-left-width: thin;">20 de Septiembre 3232 | Mar del Plata | Buenos Aires <br /> <span style="color: #000;">Correo Postal:</span> 7600<br /><br /> <span style="color: #000;">Tel / Fax:</span> (0223) 473 54 22<br /> <span style="color: #000;">e-mail:</span> <a href="mailto:[email protected]" title="Envío de e-mail directo" class="link_mail">[email protected]</a></td> </tr> <tr> <td class="titulos_form">Empresa</td> <td><input name="empresa" type="text" class="celda_form" id="empresa" size="30" /></td> </tr> <tr> <td class="titulos_form">E-mail</td> <td><input name="email" type="text" class="celda_form" id="email" size="30" /></td> </tr> <tr> <td class="titulos_form">Teléfono</td> <td><input name="telefono" type="text" class="celda_form" id="telefono" size="030" /></td> </tr> <tr> <td valign="top" class="titulos_form">Consulta</td> <td height="39" valign="top"><textarea name="consulta" cols="40" class="celda_form" id="consulta"></textarea></td> </tr> <tr> <td> </td> <td><a href="#" onclick="javascript: validar();" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Enviar','','images/enviar_dawn.jpg',1)"><img src="images/enviar_up.jpg" name="Enviar" width="53" height="23" border="0" id="Enviar" /></a><a href="#" onclick="document.contactoform.reset();return false;" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Borrar','','images/borrar_dawn.jpg',1)"><img src="images/borrar_up.jpg" name="Borrar" width="54" height="23" border="0" id="Borrar" /></a></td> <td style=""> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> </table> <br /> <br /> <br /> </form> <?php } else { mail('[email protected]', 'Contacto web', "Tema: ".$_POST['tema']."\r\n". "Nombre: ".$_POST['nombre']."\r\n". "Empresa: ".$_POST['empresa']."\r\n". "Teléfono: ".$_POST['telefono']."\r\n". "Email: ".$_POST['email']."\r\n". "Consulta: ".$_POST['consulta'], 'FROM: '.$_POST['email']); echo "<br><br>Su consulta se ha enviado satisfactoriamente.<br><br>"; }?></div> </div> </div> </div> </div> <div class="botonera_footer"> <ul> <li><a href="servicios.html" target="_parent" onMouseOver="MM_swapImage('boton_footer01','','images/botonera_footer/servicios_footer_up.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="images/botonera_footer/servicios_footer.jpg" alt="servicios" name="boton_footer01" width="150" height="32" border="0"></a></li> <li><a href="equipos.html" target="_parent" onMouseOver="MM_swapImage('boton_footer02','','images/botonera_footer/equipos_footer_up.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="images/botonera_footer/equipos_footer.jpg" alt="Equipos" name="boton_footer02" width="150" height="32" border="0"></a></li> <li><a href="filtros.html" target="_parent" onMouseOver="MM_swapImage('boton_footer03','','images/botonera_footer/filtros_footer_up.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="images/botonera_footer/filtros_footer.jpg" alt="Filtros" name="boton_footer03" width="150" height="32" border="0"></a></li> <li><a href="auxiliares.html" target="_parent" onMouseOver="MM_swapImage('boton_footer04','','images/botonera_footer/aux_footer_up.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="images/botonera_footer/aux_footer.jpg" alt="Auxiliares" name="boton_footer04" width="150" height="32" border="0"></a></li> <li><a href="piscinas.html" target="_parent" onMouseOver="MM_swapImage('boton_footer05','','images/botonera_footer/piscinas_footer_up.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="images/botonera_footer/piscinas_footer.jpg" alt="Piscinas" name="boton_footer05" width="150" height="32" border="0"></a></li> <li><a href="kit.html" target="_parent" onMouseOver="MM_swapImage('boton_footer06','','images/botonera_footer/kit_footer_up.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="images/botonera_footer/kit_footer.jpg" alt="Kit Analítico" name="boton_footer06" width="150" height="32" border="0"></a></li> </ul> </div> <div class="clear"></div> <div class="footer-holder"> <div class="footer"> <p class="left">Copyright © 2011 - Todos los derechos reservados a Hidrofiltros.</p> <a href="http://www.consultoressinergia.com.ar" title="Sinergia" target="_blank" class="rss">Desarrollado por Sinergia</a> </div> </div> </div></div> <script type="text/javascript" src="js/jquery-1.6.1.min.js"></script> <script type="text/javascript" src="js/jquery.nivo.slider.pack.js"></script> <script type="text/javascript"> $(window).load(function() { $('#slider').nivoSlider(); }); </script> </body> </html>