<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>PERPETUA - Wood care & Painting</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="estilos.css" rel="stylesheet" type="text/css">

<script type="text/javascript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//
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_validateForm() { //v4.0
  if (document.getElementById){
    var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
    for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
      if (val) { nm=val.name; if ((val=val.value)!="") {
        if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
          if (p<1 || p==(val.length-1)) errors+='"'+nm+'" requiere una dirección de correo válida.\n';
        } else if (test!='R') { num = parseFloat(val);
          if (isNaN(val)) errors+='"'+nm+'" debe contener un número.\n';
          if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
            min=test.substring(8,p); max=test.substring(p+1);
            if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
      } } } else if (test.charAt(0) == 'R') errors += '"'+nm+'" es requerido.\n'; }
    } if (errors) alert('Existen errores en los datos ingresados:\n'+errors);
    document.MM_returnValue = (errors == '');
} }
//-->
</SCRIPT>

</head>

<body>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="30">&nbsp;</td>
          <td width="720"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="220"><a href="index.html"><img src="imagenes/logo.jpg" width="142" height="121" border="0"></a></td>
                <td width="500" valign="bottom"><div align="right"> 
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr> 
                        <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td class="menu"><a href="index.html">Inicio</a></td>
                              <td class="menu"><a href="productos.html">Productos</a></td>
                              <td class="menu"><a href="cuidadosmadera.html">Cuidados 
                                de la madera</a></td>
                              <td class="menu"><a href="galeriafotos.html">Galer&iacute;a 
                                de fotos</a></td>
                              <td class="menu">Contacto</td>
                            </tr>
                            <tr bgcolor="#FF9933"> 
                              <td height="2" colspan="5"><img src="imagenes/px.gif" width="10" height="2"></td>
                            </tr>
                          </table></td>
                      </tr>
                    </table>
                  </div></td>
              </tr>
              <tr> 
                <td colspan="2"><img src="imagenes/CabezalContacto.jpg" width="720" height="106"></td>
              </tr>
              <tr> 
                <td height="10" colspan="2">&nbsp;</td>
              </tr>
              <tr>
                <td colspan="2" class="titulos">contacto</td>
              </tr>
              <tr>
                <td height="2" colspan="2"><span class="texto">Si desea realizar alguna consulta o solicitar 
                        un presupuesto, puede hacerlo llenando este formulario 
                        o llamando a los tel&eacute;fonos: <strong>Cel.: 099 236-000, Tel.: (598 2) 208-8153 
</strong> o enviando un mail a <a href="mailto:contacto@perpetua.com.uy">contacto@perpetua.com.uy</a> y nos pondremos en contacto con ud. a la brevedad.<br>
                        <br>
A&uacute;n su ud. vive lejos del trabajo a realizar, ya 
                        sea en el exterior del pa&iacute;s o en otro departamento, 
                        podemos realizar un relevamiento de las maderas exteriores 
                        con el fin de presentarle una propuesta para el tratamiento 
                        de &eacute;stas. De esta manera ud. puede evitarse estar 
                presente aprovechando mejor su tiempo.</span><br>
                <br></td>
              </tr>
              <tr>
                <td height="1" colspan="2" bgcolor="#CCCCCC"><img src="imagenes/px.gif" alt="" width="1" height="1"></td>
              </tr>
              <tr>
                <td height="10" colspan="2">&nbsp;</td>
              </tr>
              <tr>
                <td height="40" colspan="2">
                  
                  <div align="left">
                    <table width="270" border="0" align="left" cellpadding="0" cellspacing="0">
                      <tr>
                        <td>
                       <? 
if (!$_POST){ 
?>
                        <form action="contacto.php" method="post" onSubmit="MM_validateForm('Tel&eacute;fono','','NisNum','E-mail','','NisEmail','Consulta','','R');return document.MM_returnValue">
                            
                            <div align="left">
                              <table width="270" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                  <td width="60" class="formulario">Nombre:</td>
                                  <td><input name="nombre" type="Text" class="texto" id="nombre" style="width:210px"></td>
                                </tr>
                                <tr>
                                  <td class="formulario">Apellido:</td>
                                  <td><input name="apellido" type="Text" class="texto" id="apellido" style="width:210px"></td>
                                </tr>
                                <tr>
                                  <td class="formulario">Tel&eacute;fono:</td>
                                  <td><input name="Teléfono" type="Text" class="texto" id="Teléfono" style="width:210px"></td>
                                </tr>
                                <tr>
                                  <td class="formulario">E-mail:</td>
                                  <td><input name="E-mail" type="Text" class="texto" id="E-mail" style="width:210px"></td>
                                </tr>
                                <tr>
                                  <td class="formulario">Consulta:</td>
                                  <td><textarea name="Consulta" rows="6" class="texto" id="Consulta" style="width:210px"></textarea></td>
                                </tr>
                              </table>
                              <table width="100%" border="0" align="right" cellpadding="0" cellspacing="0">
                                <tr>
                                  <td height="40"><div align="right">
                                      <input type="submit" name="accion2" class="texto" value="Enviar">
                                  </div></td>
                                </tr>
                                <tr>
                                  <td><span class="texto">Solo 
                                      podremos responder a aquellas consultas 
                                      que proporcionen un tel&eacute;fono o una 
                                  casilla de correo.</span></td>
                                </tr>
                              </table>
                            </div>
                        </form>
<? 
}else{ 
$cuerpo = "Nombre: " . $_POST["nombre"] . "\n";
$cuerpo .= "Apellido: " . $_POST["apellido"] . "\n";
$cuerpo .= "Teléfono: " . $_POST["Teléfono"] . "\n";
$cuerpo .= "E-mail: " . $_POST["E-mail"] . "\n";
$cuerpo .= "Consulta: " . $_POST["Consulta"] . "\n";

    //mando el correo... 
    mail("contacto@perpetua.com.uy","Consulta desde www.perpetua.com.uy",$cuerpo); 

    //doy las gracias por el envío 
    echo "<span class='texto'><strong>Los datos se enviaron correctamente.<br><br>Gracias por pornerse en contacto con nosotros.</strong><br></span>"; 
} 
?>
                        </td>
                      </tr>
                </table>
                </div></td>
              </tr>
			  
              <tr> 
                <td height="40" colspan="2">&nbsp;</td>
              </tr>
              <tr> 
                <td height="25" colspan="2"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td>&nbsp;</td>
                      <td width="400"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td class="MenuPie"><a href="index.htm">Inicio</a></td>
                            <td width="1" bgcolor="#CCCCCC"><img src="imagenes/px.gif" width="1" height="1"></td>
                            <td class="MenuPie"><a href="productos.html">Productos</a></td>
                            <td width="1" bgcolor="#CCCCCC"><img src="imagenes/px.gif" width="1" height="1"></td>
                            <td class="MenuPie"><a href="cuidadosmadera.html">Cuidados 
                              de la madera</a></td>
                            <td width="1" bgcolor="#CCCCCC"><img src="imagenes/px.gif" width="1" height="1"></td>
                            <td class="MenuPie"><a href="galeriafotos.html">Galer&iacute;a 
                              de fotos</a></td>
                            <td width="1" bgcolor="#CCCCCC"><img src="imagenes/px.gif" width="1" height="1"></td>
                            <td class="MenuPie">Contacto</td>
                          </tr>
                        </table></td>
                      <td>&nbsp;</td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td height="1" colspan="2" bgcolor="#FF9933"><img src="imagenes/px.gif" width="1" height="1"></td>
              </tr>
              <tr> 
                <td height="40" colspan="2" valign="bottom"> 
                  <div align="left">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr> 
                        <td width="360" class="MenuPie"> 
                          <div align="left">Cel.: 099 236000 - Tel.: (598 2) 2088153<br>
                            <a href="mailto:contacto@perpetua.com.uy">contacto@perpetua.com.uy</a></div></td>
                        <td width="360" class="MenuPie"> 
                          <div align="right">Copyright ©2008 - Todos los derechos 
                            reservados<br>
                            <br>
                          </div></td>
                      </tr>
                    </table>
                  </div></td>
              </tr>
          </table></td>
          <td width="30">&nbsp;</td>
        </tr>
      </table></td>
  </tr>
</table>


</body>
</html>
