<?php
/**
 * @version		$Id: contacto.php 20196 2011-03-19 02:40:25Z pol $
 * @package		Joomla.Site
 * @subpackage	Contact
 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

JHTML::_('stylesheet', 'add.css', 'components/com_contacto/css/');

?>
<script src="<?php $GLOBALS['mosConfig_absolute_path'] ?>components/com_contacto/include/jquery.js" type="text/javascript"></script>
<script src="<?php $GLOBALS['mosConfig_absolute_path'] ?>components/com_contacto/include/jquery.validate.js" type="text/javascript"></script>

<script language="javascript" type="text/javascript">
$().ready(function() {
$("#frmContact2").validate({
		rules: {
			empresa: {
			required: true
			},
			nombre: {
			required: true
			},
			mensaje: {
			required: true
			},
			email: {
			required: true,
			email: true
			}
		},
		messages: {
			empresa: {required: "Complete"},
			nombre: {required: "Complete"},
			mensaje: {required: "Complete"},
			email: {required: "Complete",
			         email: "Complete valid email address"
					 }
		}
	});
});

</script>

<div  class="cuerpoform">
<form action="#index.php" method="post" name="frmContact2" id="frmContact2" enctype="multipart/form-data" onsubmit="return checkboxes()">

<div class="camposdatos">
   <label for="nombre">Name</label><br />
   <input name="nombre" type="text"  class="textField2" value="" id="nombre" />
</div>

<div class="camposdatos">
   <label for="email">email</label><br />
   <input name="email" type="text" class="textField2" value="" id="email" />
</div>

<div class="camposdatos">
   <label for="empresa">Company</label><br />
   <input name="empresa" type="text" class="textField2" value="" id="empresa" />
</div>

<div class="camposdatos">
   <label for="mensaje">Message</label><br />
   <textarea name="mensaje" rows=8 cols=48 class="textField22"></textarea>
</div>

<div class="campo3">
<input type="submit" name="submit" value="Send >>"/>
</div>
<input type="hidden" name="view" value="enviado" />

</form>
</div>

