<script type="text/javascript">
{include file="$incpath/other/validate_js.tpl"}
{literal}
$.validator.setDefaults({
	submitHandler: function() 
	{ 
		document.forms['cf'].submit();
		//alert("submitted!"); 
	}
});

$().ready(function() {
	// validate the comment form when it is submitted
	$("#copyform").validate(
	{ // validate
	rules: { // rules
				Artikelnummer: {required: true,minLength: 2},
				Titel_1: {required: true,minLength: 2}
			} // end rules
			, // messages
			messages: 
			{
			}
	} // end validate
	);
}
)
</script>
{/literal}
<div class="popbox">
<div class="header">{#Shop_articles_copy#}<br />
<span style="font-size:11px">{$row->Titel_1}</span>
</div>
{if $error}
<div class="error_box">
{foreach from=$error item=e}
<strong>{$e}</strong><br />
{/foreach}

</div>
{/if}
<p>
<form class="cmxform" id="copyform" name="cf" method="post" action="">
<table>
<tr>
<td><label for="Artikelnummer">{#Shop_articles_numberNew#}</label></td>
<td><input class="input" type="text" name="Artikelnummer" id="Artikelnummer" value="{$smarty.post.Artikelnummer}" /></td>
</tr>
<tr>
<td><label for="Titel_1">{#Shop_articles_name#}</label></td>
<td><input class="input" type="text" name="Titel_1" id="Titel_1" value="{$smarty.post.Titel_1|stripslashes}" /></td>
</tr>
<tr>
  <td>{#Shop_articles_copyEAfter#}</td>
  <td><input name="edit_new" type="checkbox" id="edit_new" value="1" checked="checked" /></td>
</tr>
<tr>
  <td><input name="copy" type="hidden" id="copy" value="1"></td>
  <td><input class="button" type="submit" value="{#Global_save#}" /></td>
</tr>
</table>


</form>
</p>
</div>