{*
  ===============================================================

  inGenio X
  http://ingenio.area421.com

  Created by 
  Julian Moreno Hidalgo (Software developer)
  Jesus Moreno Hidalgo (Communication's tree)

  inGenio X is a free software licensed under CC-GNU GPL

  ===============================================================
*}

	<a name="cmf"></a>
	<div class="div_form_comen">

	{* mensajes *}
	{if $form_comen_msj == 1}<div class="mensaje_vale_comen">{$smarty.const.LEN_52}</div>{/if}
	{if $form_comen_msj == 2}<div class="mensaje_vale_comen">{$smarty.const.LEN_76}</div>{/if}

{* ayuda *}
<div class="ayuda_add">
{$smarty.const.LEN_51}
</div>

{* FORMULARIO INCLUIR COMENTARIOS *}
<form action="{$smarty.const.RUTA_INICIO}len{$smarty.const.IGUAL}{$smarty.const.IDIOMA_ACTUAL}" method="post" name="formD" onsubmit="return validar_nuevo_comentario(this);">
<div class="grupos_add">
* {$smarty.const.LEN_46}&nbsp;&nbsp;<input type="text" name="nick" class="input_comen_nick" maxlength="100" />
<br /><br />
{$smarty.const.LEN_47}&nbsp;&nbsp;<input type="text" name="email" class="input_comen_mail" maxlength="255" />
<br /><br />
{$smarty.const.LEN_49}&nbsp;&nbsp;<input type="text" name="link" class="input_comen_gral" maxlength="255" value="http://" />
<br /><br />
* {$smarty.const.LEN_48}&nbsp;&nbsp;<input type="text" name="asunto" class="input_comen_gral" maxlength="255" />
<br /><br />
{$smarty.const.LEN_50}
<br />
<textarea name="comentario" cols="40" rows="15" class="input_comen_gral input_editor"></textarea>
</div>

{* securimage *}
<div class="grupos_add">
{$form_comentarios_securimage}
&nbsp;&nbsp;<a onclick="document.getElementById('image').src = '{$smarty.const.RUTA_INICIO_IMG}paqs/scimg/securimage_show.php?sid=' + Math.random(); return false" title="{$smarty.const.LEN_135}" style="text-decoration:none;"><span class="conex_input_img_reload">&nbsp;</span></a>
<br />
<input type="text" name="img_gen" class="input_add_img" maxlength="10" />
</div>

<div class="grupos_add">
* {$smarty.const.LEN_44}
&nbsp;&nbsp;<input type="submit" value="{$smarty.const.LEN_42}" class="input_boton_comen" />
&nbsp;&nbsp;<input type="reset" value="{$smarty.const.LEN_43}" class="input_boton_comen" />
</div>

<input type="hidden" name="ad_comentar_prd" value="1" />
<input type="hidden" name="itemID" value="{$item_id}" />
	<script language="javascript" type="text/javascript">

	function validar_nuevo_comentario (form)
	{literal}{{/literal}
		var alerta = "{$smarty.const.LEN_72}";
		var alertamail = "{$smarty.const.LEN_73}";

			if (relleno(form.nick.value))
			{literal}{{/literal} 
				alert(alerta); form.nick.focus(); return false; 
			}

			if (relleno(form.asunto.value))
			{literal}{{/literal} 
				alert(alerta); form.asunto.focus(); return false; 
			}

			if (relleno(form.img_gen.value))
			{literal}{{/literal} 
				alert(alerta); form.img_gen.focus(); return false; 
			}
	
			if (!relleno(form.email.value))
			{literal}{{/literal} 
				if (!mailcorrecto(form.email.value))
				{literal}{{/literal}
				alert(alertamail); form.email.focus(); return false;			
				} 
			}
	}

	</script>
</form>
{* FIN FORMULARIO INCLUIR COMENTARIOS *}
	
	</div> {* div_form_comen *}
