
{if $shop==1  && $smarty.request.print!=1}
{include file="$incpath/shop/shop_steps.tpl"}
{/if}
{if $error}
<div class="error_box"> {#Reg_Failed#}
  <ul>
{foreach from=$error item=reg_error}
<li>{$reg_error}</li>
{/foreach}
</ul>
</div>
{/if}


<script language="javascript" src="{$jspath}/jvalidate.js" type="text/javascript"></script>
<script language="javascript" src="{$jspath}/jform.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
<!-- 
{include file="$incpath/other/validate_conf.tpl"}
{literal}

$(document).ready(function() {
	var validator = $("#regform").validate(
	{ 
		rules: 
		{ 
			reg_email: {required: true, email:true, remote: "index.php?do=checkuserdata&p=register"},
			reg_email2: {required: true, equalTo: "#l_reg_email"},
			reg_username: {required: true, remote: "index.php?do=checkuserdata&p=register"}
			{/literal}
			{if $koobi_version=='PRO'}
			,
			Vorname:{ldelim}required: true{rdelim},
			Nachname:{ldelim}required: true{rdelim},
			Strasse_Nr:{ldelim}required: true{rdelim},
			Postleitzahl:{ldelim}required: true, number:true, minLength:4{rdelim},
			Ort:{ldelim}required: true{rdelim}
			{/if}
			{if $use_code==1}
			,
			scode:{ldelim}required: true{if !get_active('img_captcha')},number:true, remote: "index.php?do=checkuserdata&p=register"{/if}{rdelim}
			{/if}
			{literal}
	
		},
		messages: 
		{
			reg_email:{remote: jQuery.format("{/literal}{#Validate_usedMail#}{literal}")},
			reg_username:{remote: jQuery.format("{/literal}{#Validate_usedUName#}{literal}")},
			scode: {remote:'{/literal}{#Validate_wrong#}{literal}'}
		},
			
		submitHandler: function() 
		{ 
			document.forms['regform'].submit();
		},
		
		success: function(label) 
		{
			label.html("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;").addClass("checked");
		}
	});
});

{/literal}
// -->
</script>   
<form autocomplete="off" method="post" name="regform" id="regform" action="{if $shop==1}index.php{else}index.php{/if}">


<div class="box_innerhead"> {#Reg_LoginData#}</div>
<div class="box_data">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="box_inner">

<tr>
  <td width="180" nowrap="nowrap" class="row_first" align="right"><label for="l_reg_email">{#Reg_Email#}</label></td>
  <td nowrap="nowrap" class="row_second">
  <input type="text" name="reg_email" id="l_reg_email" value="{$smarty.post.reg_email|escape:html|stripslashes}" class="input" style="width:140px" /></td>
</tr>

<tr>
  <td nowrap="nowrap" class="row_first" align="right"><label for="l_reg_email_2">{#Reg_Email2#}</label></td>
  <td nowrap="nowrap" class="row_second">
  <input type="text" name="reg_email2" id="l_reg_email_2" value="{$smarty.post.reg_email2|escape:html|stripslashes}" class="input" style="width:140px" /></td>
</tr>
<tr>
  <td nowrap="nowrap" class="row_first" align="right"><label for="l_reg_username">{#Reg_Username#}</label></td>
  <td nowrap="nowrap" class="row_second">
  <input type="text" name="reg_username" id="l_reg_username" class="input" style="width:140px" value="{$smarty.post.reg_username|escape:html|stripslashes}" />


</table>
</div>

{if $koobi_version=='PRO'}

<div class="box_innerhead">

 {#PersonalData#}
{if $koobi_version=='PRO'}<span class="box_innerhead_inf">{#Profile_RequiredInf#}</span>{/if}</div>
<div class="box_data">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="box_inner">
{if $koobi_version=='PRO'}
<tr>
  <td nowrap="nowrap" class="row_first" align="right"><label for="l_vorname">{#Profile_FirstName#} <sup>*</sup></label></td>
  <td nowrap="nowrap" class="row_second"><input class="input" style="width:140px" name="Vorname" type="text" id="l_vorname" value="{$smarty.post.Vorname|stripslashes|default:$data.Vorname|escape:html|stripslashes}" /></td>
</tr>
<tr>
  <td nowrap="nowrap" class="row_first" align="right"><label for="l_nachname">{#Profile_LastName#} <sup>*</sup></label></td>
  <td nowrap="nowrap" class="row_second"><input class="input" style="width:140px" name="Nachname" type="text" id="l_nachname" value="{$smarty.post.Nachname|stripslashes|default:$data.Nachname|escape:html|stripslashes}" /></td>
</tr>
{if $settings.Reg_Firma==1}
<tr>
  <td nowrap="nowrap" class="row_first" align="right"><label for="l_firma">{#Profile_company#}</label></td>
  <td nowrap="nowrap" class="row_second"><input class="input" style="width:140px" name="Firma" type="text" id="l_firma" value="{$smarty.post.Firma|stripslashes|default:$data.Firma|escape:html|stripslashes}" /></td>
</tr>
{/if}
{if $settings.Reg_Ust==1}
<tr>
  <td nowrap="nowrap" class="row_first" align="right"><label for="l_ustid">{#Profile_vatnum#}</label></td>
  <td nowrap="nowrap" class="row_second"><input class="input" style="width:140px" name="UStId" type="text" id="l_ustid" value="{$smarty.post.UStId|stripslashes|default:$data.ustid|escape:html|stripslashes}" /></td>
</tr>
{/if}
<tr>
  <td nowrap="nowrap" class="row_first" align="right"><label for="l_strassenr">{#Profile_Street#} <sup>*</sup></label></td>
  <td nowrap="nowrap" class="row_second">
  <input class="input" style="width:140px" name="Strasse_Nr" type="text" id="l_strassenr" value="{$smarty.post.Strasse_Nr|stripslashes|default:$data.Strasse_Nr|escape:html|stripslashes}" /></td>
</tr>
<tr>
  <td nowrap="nowrap" class="row_first" align="right"><label for="l_zip">{#Profile_Zip#} <sup>*</sup></label></td>
  <td nowrap="nowrap" class="row_second">
  <input class="input" style="width:50px" name="Postleitzahl" type="text" id="l_zip" value="{$smarty.post.Postleitzahl|stripslashes|default:$data.Postleitzahl|escape:html|stripslashes}" /></td>
</tr>

<tr>
  <td nowrap="nowrap" class="row_first" align="right"><label for="l_ort">{#Profile_Town#} <sup>*</sup></label></td>
  <td nowrap="nowrap" class="row_second"><input class="input" style="width:140px" name="Ort" type="text" id="l_ort" value="{$smarty.post.Ort|stripslashes|default:$data.Ort|escape:html|stripslashes}" /></td>
</tr>
{if $settings.Reg_Fon==1}
<tr>
  <td nowrap="nowrap" class="row_first" align="right"><label for="l_fon">{#Profile_Phone#}</label></td>
  <td nowrap="nowrap" class="row_second"><input class="input" style="width:140px" name="Telefon" type="text" id="l_fon" value="{$smarty.post.Telefon|stripslashes|default:$data.Telefon|escape:html|stripslashes}" /></td>
</tr>
{/if}
{if $settings.Reg_Fax==1}
<tr>
  <td nowrap="nowrap" class="row_first" align="right"><label for="l_fax">{#Profile_Fax#}</label></td>
  <td nowrap="nowrap" class="row_second"><input class="input" style="width:140px" name="Telefax" type="text" id="l_fax" value="{$smarty.post.Telefax|stripslashes|default:$data.Telefax|escape:html|stripslashes}" /></td>
</tr>
{/if}
{/if}


<tr>
  <td width="180" nowrap="nowrap" class="row_first" align="right"><label for="l_reg_country">{#Country#}</label></td>
  <td nowrap="nowrap" class="row_second">
  <select class="input" name="country" id="l_reg_country" style="width:140px">
  {foreach from=$countries item=c}
  <option value="{$c.Code|upper}" {if $smarty.request.send!=1}{if $settings.Land|upper==$c.Code|upper}selected="selected"{/if}{else}{if $smarty.post.country|upper==$c.Code|upper}selected="selected"{/if}{/if}>{$c.Name}</option>
  {/foreach}
  </select>  </td>
</tr>
{if $settings.Reg_Fax==1}
<tr>
  <td width="180" nowrap="nowrap" class="row_first" align="right"><label for="l_reg_birth">{#Birth#}</label></td>
  <td nowrap="nowrap" class="row_second">
  <input class="input" name="birth" type="text" id="l_reg_birth" style="width:100px" value="{$smarty.post.birth|stripslashes|escape:html}" maxlength="10" />
  {#BirthFormat#}  </td>
</tr>
{/if}
</table>
</div>
{else}
<input type="hidden" name="country" value="{$settings.Land}" />
{/if}

{if $use_code==1}	

<div class="box_innerhead">{if get_active('img_captcha')}{#Reg_Securdecode#}{else}{#Reg_SmallQ#}{/if}</div>
<div class="box_data">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="box_inner">
{if get_active('img_captcha')}
<tr>
  <td valign="bottom" width="180" nowrap="nowrap" class="row_first" align="right"><span class="tooltip" {popup text=$config_vars.Reg_secureInf}>{#Reg_EnterSecure#}</span></td>
  <td nowrap="nowrap" class="row_second">
  <div id="xyz">{$secureIMG}</div>
  <br />
<input class="input" name="scode" type="text" style="width:100px;font-size:17px; text-align:center" value="{$smarty.request.scode|stripslashes|escape:html}" maxlength="5" />
{$codeerror_t} 
	<br />
  </td>
</tr>
{else}
<tr>
  <td width="180" nowrap="nowrap" class="row_first" align="right">{#Reg_SmallH#}&nbsp;&nbsp;&nbsp;<strong style="font-size:130%">{$secureIMG}</strong> =</td>
  <td class="row_second"><input class="input" name="scode" type="text" style="width:80px;font-size:17px;" value="{$smarty.request.scode|stripslashes|escape:html}" maxlength="5" />{$codeerror_t} 
  </td>
</tr>
{/if}
</table>
</div>
{/if}


	
	
  <p class="reg_buttons">
	<input type="submit" value="{#Reg_Button#}" class="button">
    <input type="reset" class="button" />
    <input name="area" type="hidden" value="{$area}" />
    <input name="lang" type="hidden" value="{$smarty.session.lang}" />
    <input type="hidden" name="p" value="register" />
    <input type="hidden" name="send" value="1" />
    
	{if $shop==1}
	<input type="hidden" name="p" value="shop" />
	<input type="hidden" name="area" value="{$area}" />
	<input type="hidden" name="action" value="shoporder" />
	<input type="hidden" name="subaction" value="step2" />
	<input type="hidden" name="register" value="new" />
	<input type="hidden" name="send" value="1" />
	<input type="hidden" name="mode" value="shop" />
	{/if}
    
  </p>
</form>

