<script language="javascript" src="js/jupload.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
<!--
{include file="$incpath/other/validate_js.tpl"}


$.validator.setDefaults({ldelim}
	submitHandler: function() 
	{ldelim}
		document.forms['newsForm'].submit();
	{rdelim}
});

$().ready(function() 
{ldelim}
	$("#newsForm").validate({ldelim}
	rules: {ldelim}
				Titel: {ldelim}required: true{rdelim}
				{if $smarty.request.langcode==1}
				,ZeitStart: {ldelim}required: true{rdelim}
				{/if}
			{rdelim}, 
	messages: 
			{ldelim}
			{rdelim}
	{rdelim});
{rdelim});

$(function() {ldelim}
	 $('#container-options ul').tabs({ldelim} {rdelim});
	 $('div.teaser').toggleElements( {ldelim} fxAnimation:'false', fxSpeed:'normal', className:'toggler'{rdelim} );
	  $('div.inline').toggleElements( {ldelim} fxAnimation:'true', fxSpeed:'normal', className:'toggler'{rdelim} );
{rdelim});

function ajaxFileUpload(updir,divid,resize)
{ldelim}
	$("#loading_" + divid)
	.ajaxStart(function(){ldelim}
		$(this).show();
		document.getElementById('buttonUpload_' + divid).value = '{#Global_Wait#}';
		document.getElementById('buttonUpload_' + divid).disabled = true;
		
	{rdelim})
	.ajaxComplete(function(){ldelim}
		$(this).hide();
		document.getElementById('buttonUpload_' + divid).value = '{#Global_Upload#}';
		document.getElementById('buttonUpload_' + divid).disabled = false;
	{rdelim});

	var up = 'index.php?do=gaming&sub=gamingiconupload' + updir + '&divid=' + divid + '&resize=' + resize;
			
	
	$.ajaxFileUpload
	(
		
		{ldelim}
			url: up,
			secureuri:false,
			fileElementId:'fileToUpload_' + divid,
			dataType: 'json',
			success: function (data, status)
			{ldelim}
				if(typeof(data.error) != 'undefined')
				{ldelim}
					if(data.error != '')
					{ldelim}
						document.getElementById('UpInf_' + divid).innerHTML  = data.error;
					}else
					{ldelim}
						document.getElementById('UpInf_' + divid).innerHTML = data.msg;
						document.getElementById('newFile_' + divid).value =  data.html;
						
					{rdelim}
				{rdelim}
			{rdelim},
			error: function (data, status, e)
			{ldelim}
				document.getElementById('UpInf_' + divid).innerHTML = e;
			{rdelim}
		{rdelim})
	return false;
{rdelim}
// -->
</script>


<div class="popbox">
<div class="header">{#Gaming_articles_edit#}</div>
<div class="subheaders">{#News_lang_inf#}</div>
<div class="header_inf">
<form onsubmit="" method="post" action="">
<select class="input" onchange="eval(this.options[this.selectedIndex].value)" name="langcode" id="langcode">
<option id="l_1" value="if(confirm('{#Global_changeLangDoc#}')){ldelim} location.href='index.php?do=gaming&sub=editarticle&id={$smarty.request.id}&noframes=1&pop=1&langcode=1';{rdelim}else{ldelim}document.getElementById('l_{$smarty.request.langcode}').selected=true;{rdelim}" {if $smarty.request.langcode=='1'}selected="selected"{/if}>{#Shop_articles_editin#}  - {$language_long_1|upper} - {#Shop_articles_editinb#}</option>
<option id="l_2" value="if(confirm('{#Global_changeLangDoc#}')){ldelim} location.href='index.php?do=gaming&sub=editarticle&id={$smarty.request.id}&noframes=1&pop=1&langcode=2';{rdelim}else{ldelim}document.getElementById('l_{$smarty.request.langcode}').selected=true;{rdelim}" {if $smarty.request.langcode=='2'}selected="selected"{/if}>{#Shop_articles_editin#}  - {$language_long_2|upper} - {#Shop_articles_editinb#}</option>
<option id="l_3" value="if(confirm('{#Global_changeLangDoc#}')){ldelim} location.href='index.php?do=gaming&sub=editarticle&id={$smarty.request.id}&noframes=1&pop=1&langcode=3';{rdelim}else{ldelim}document.getElementById('l_{$smarty.request.langcode}').selected=true;{rdelim}"  {if $smarty.request.langcode=='3'}selected="selected"{/if}>{#Shop_articles_editin#} - {$language_long_3|upper} - {#Shop_articles_editinb#}</option>
</select>
<img class="absmiddle" src="{$imgpath}/arrow_right.png" alt="" />
</form>
</div>

<form method="post" action="" enctype="multipart/form-data"  name="newsForm" id="newsForm">

<div id="container-options">
<ul>
<li><a href="#opt-1"><span>{#News_tab_gen#}</span></a></li>
{if $smarty.request.langcode==1}<li><a href="#opt-2"><span>Details</span></a></li>{/if}
<li><a href="#opt-3"><span>{#News_tab_img#}</span></a></li>
<li><a href="#opt-4"><span>{#Gaming_articles_top#}</span></a></li>
<li><a href="#opt-5"><span>{#Global_Inline#}</span></a></li>
{if $smarty.request.langcode==1}<li><a href="#opt-6"><span>{#News_tab_other#}</span></a></li>{/if}
</ul>

</div>


<div id="opt-1">
<table width="100%">
<tr>
<td><fieldset>
<legend><label for="t">{#Global_Title#}</label></legend>
<input name="Titel" type="text" class="input" id="t" style="width:300px" value="{$article->Titel}" /> 
</fieldset>
</td>
<td><fieldset>
<legend><label for="tu">{#Gaming_articles_subt#}</label></legend>
<input name="Untertitel" type="text" class="input" id="tu" style="width:300px" value="{$article->Untertitel}" /> 
</fieldset></td>
{if $smarty.request.langcode==1}
<td>
<fieldset>
<legend><label for="c">{#Global_Categ#}</label></legend>
<select  style="width:120px"  class="input" id="c" name="categ">
{foreach from=$articlecategs item=dd}
<option value="{$dd->Id}" {if $article->Kategorie==$dd->Id}selected="selected"{/if}>{$dd->visible_title} </option>
{/foreach}
</select>     
</fieldset>
{/if}
</td>
</tr>
</table>

{if $smarty.request.langcode==1}
<table width="100%">
<tr>
<td>
<fieldset>
<legend><label for="at">{#Gaming_ArtType#}</label>&nbsp;
<span {popup sticky=$config_vars.POPSTICKY  width=450 text=$config_vars.Gaming_articles_typInf}><img class="absmiddle" src="{$imgpath}/help.png" alt="" /></span>
</legend>
<select style="width:150px"  id="at" class="input" name="Typ">
<option value="review" {if $article->Typ=='review'}selected="selected"{/if}>{#Gaming_ArtType_review#} </option> 
  <option value="special" {if $article->Typ=='special'}selected="selected"{/if}>{#Gaming_ArtType_special#} </option>     
 <option value="preview" {if $article->Typ=='preview'}selected="selected"{/if}>{#Gaming_ArtType_preview#} </option>   
</select>
</fieldset>
</td>

<td>
<fieldset>
<legend><label for="ZeitStart">{#Global_PublicDate#}</label></legend>
<input name="ZeitStart" type="text" class="input" id="ZeitStart" style="width:70px" value="{$article->ZeitStart|date_format:'%d.%m.%Y'}" readonly="readonly" />
</fieldset></td>
<td>
<fieldset>
<legend><label for="ZeitEnde">{#Global_PublicEndDate#}</label></legend>
<input name="ZeitEnde" type="text" class="input" id="ZeitEnde" style="width:70px" value="{if $article->ZeitEnde!='0'}{$article->ZeitEnde|date_format:'%d.%m.%Y'}{/if}" readonly="readonly" />
</fieldset></td>

<td valign="top">
<fieldset>
<legend>{#News_Status#}</legend>
<label><input type="radio" name="Aktiv" value="1" {if $article->Aktiv=='1'}checked="checked"{/if}/>{#Global_online#}</label>
<label><input type="radio" name="Aktiv" value="0" {if $article->Aktiv=='0'}checked="checked"{/if}/>{#Global_offline#}</label>
</fieldset>
</td>
</tr>
</table>


<table width="100%">
<tr>

<td valign="top">
<fieldset>
<legend>{#News_show_allsections#}</legend>
<label><input type="radio" name="AlleSektionen" value="1" {if $article->AlleSektionen=='1'}checked="checked"{/if}/>{#Yes#}</label>
<label><input type="radio" name="AlleSektionen" value="0" {if $article->AlleSektionen=='0'}checked="checked"{/if}/>{#No#}</label>
</fieldset>
</td>

<td valign="top">
<fieldset>
<legend>{#News_searchable#}</legend>
<label><input type="radio" name="Suche" value="1" {if $article->Suche=='1'}checked="checked"{/if}/>{#Yes#}</label>
<label><input type="radio" name="Suche" value="0" {if $article->Suche=='0'}checked="checked"{/if}/>{#No#}</label>
</fieldset>
</td>

<td valign="top">
<fieldset>
<legend>{#News_voteable#}</legend>
<label><input type="radio" name="Wertung" value="1" {if $article->Wertung=='1'}checked="checked"{/if}/>{#Yes#}</label>
<label><input type="radio" name="Wertung" value="0" {if $article->Wertung=='0'}checked="checked"{/if}/>{#No#}</label>
</fieldset>
</td>

<td valign="top">
<fieldset>
<legend>{#News_commentable#}</legend>
<label><input type="radio" name="Kommentare" value="1" {if $article->Kommentare=='1'}checked="checked"{/if}/>{#Yes#}</label>
<label>
<input type="radio" name="Kommentare" value="0" {if $article->Kommentare=='0'}checked="checked"{/if}/>{#No#}</label>
</fieldset>
</td>
</tr>
</table>
{/if}




<fieldset>
<legend>{#News_text#}</legend>
{$Inhalt}
 <div style="padding:4px">
      <img {popup sticky=$config_vars.POPSTICKY  width=400 text=$config_vars.Global_newInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
      <a href="javascript:;" onclick="setEditorValue('Inhalt','[--NEU--]')">{#Global_newPage#}</a>      
 
 	{if $cforms}
 	<select {popup sticky=$config_vars.POPSTICKY  delay=300 text=$config_vars.Contactform_inf} class="input" onchange="eval(this.options[this.selectedIndex].value);selectedIndex=0;">
    <option value="">{#Content_insertContactForms#}</option>
    {foreach from=$cforms item=cf}
    <option value="setEditorValue('Inhalt','[CONTACT:{$cf->Id}]')">{$cf->Titel1}</option>
    {/foreach}
    </select>
    {/if}

	{if $ContentLinks}
    <select {popup sticky=$config_vars.POPSTICKY  delay=300 text=$config_vars.Content_insertContentLinksInf}  class="input" onchange="eval(this.options[this.selectedIndex].value);selectedIndex=0;">
    <option value="">{#Content_insertContentLinks#}</option>
    {foreach from=$ContentLinks item=cn}
    <option value="setEditorValue('Inhalt',' &lt;a href=&quot;index.php?p=content&amp;id={$cn->Id}&amp;name={$cn->Titel1|seotitle}&amp;area={$cn->Sektion}&quot;&gt;{$cn->Titel1|koobispecialchars}&lt;/a&gt; ')">{$cn->Titel1|koobispecialchars}</option>
    {/foreach}
    </select>
    {/if}

 </div>
</fieldset>
</div>

<!-- DETAILS -->
{if $smarty.request.langcode==1}
<div id="opt-2">
<table width="100%" border="0" cellspacing="2" cellpadding="0">
  <tr>
    <td valign="top">
    <fieldset>
    <legend><label for="lgenre">{#Products_genre#}</label></legend>
    <select  style="width:150px"  class="input" id="lgenre" name="Genre">
    <option value="">-</option>
    {foreach from=$genres item=g}
    <option value="{$g->Id}" {if $article->Genre==$g->Id}selected="selected"{/if}>{$g->Name|koobispecialchars}</option>
    {/foreach}
    </select>
    </fieldset>
    </td>
    <td>
    <fieldset>
    <legend><label for="lHersteller">{#Manufacturer#}</label></legend>
    <select  style="width:150px"  class="input" id="lHersteller" name="Hersteller">
    <option value="">-</option>
    {foreach from=$mf item=m}
    <option value="{$m->Id}" {if $article->Hersteller==$m->Id}selected="selected"{/if}>{$m->Name|koobispecialchars}</option>
    {/foreach}
    </select>
    </fieldset>
	</td>
    <td>
    <fieldset>
    <legend><label for="lVertrieb">{#Manufacturer_v#}</label></legend>
    <select  style="width:150px"  class="input" id="lVertrieb" name="Vertrieb">
    <option value="">-</option>
     {foreach from=$mf item=m}
     <option value="{$m->Id}" {if $article->Vertrieb==$m->Id}selected="selected"{/if}>{$m->Name|koobispecialchars}</option>
     {/foreach}
     </select>
    </fieldset>
	</td>
      <td>
    <fieldset>
    <legend><label for="lPlattform">{#Gaming_plattform#}</label></legend>
    <select  style="width:150px"  class="input" id="lPlattform" name="Plattform">
    <option value="">-</option>
     {foreach from=$pf item=m}
     <option value="{$m->Id}" {if $article->Plattform==$m->Id}selected="selected"{/if}>{$m->Name|koobispecialchars}</option>
     {/foreach}
     </select>
    </fieldset>
	</td>
  </tr>
</table>


<table width="100%" border="0" cellspacing="2" cellpadding="0">
  <tr>
    <td valign="top">
    <fieldset>
    <legend><label for="lVeroeffentlichung">{#Gaming_articles_pub#}</label></legend>
   <input name="Veroeffentlichung" type="text" class="input" id="lVeroeffentlichung" style="width:200px" value="{$article->Veroeffentlichung|koobispecialchars}" />
    </fieldset>
    </td>
    
    <td valign="top">
    <fieldset>
    <legend><label for="lPreis">{#Gaming_articles_price#}</label></legend>
   <input name="Preis" type="text" class="input" id="lPreis" style="width:100px" value="{$article->Preis|koobispecialchars}" />
    </fieldset>
    </td>
    
    <td valign="top">
    <fieldset>
    <legend><label for="lShop">{#Gaming_articles_shop_adress#}</label> <span {popup sticky=$config_vars.POPSTICKY  width=400 text=$config_vars.Gaming_articles_urlInf}<img class="absmiddle" src="{$imgpath}/help.png" alt="" /></span></legend>
   <input name="Shop" type="text" class="input" id="lShop" style="width:200px" value="{$article->Shop|koobispecialchars}" />
    </fieldset>
    </td>
    
     <td valign="top">
    <fieldset>
    <legend><label for="lShopArtikel">{#Gaming_articles_shop#} <span {popup sticky=$config_vars.POPSTICKY  width=400 text=$config_vars.Gaming_articles_shopInf}<img class="absmiddle" src="{$imgpath}/help.png" alt="" /></span></label></legend>
   <input name="ShopArtikel" type="text" class="input" id="lShopArtikel" style="width:100px" value="{$article->ShopArtikel|koobispecialchars}" />
    </fieldset>
    </td>
    <td>
    <fieldset>
    <legend><label for="lKennwort">{#User_Pass#}</label> <span {popup sticky=$config_vars.POPSTICKY  width=400 text=$config_vars.Global_DocPass}><img class="absmiddle" src="{$imgpath}/help.png" alt="" /></span></legend>
    <input name="Kennwort" type="text" class="input" id="lKennwort" style="width:100px" value="{$article->Kennwort}" /> 
    </fieldset>
    </td>
   </tr>
 </table>

<table width="100%" border="0" cellpadding="0" cellspacing="2">
<tr>
<td>
<fieldset>
<legend><label for="lWertungsDaten">{#Gaming_articles_voting#} {#Gaming_articles_nospecial#}</label><br />
</legend>
<table width="100%" border="0" cellspacing="2" cellpadding="0">
  <tr>
    <td width="40%" valign="top"><textarea name="WertungsDaten" id="lWertungsDaten" style="width:98%; height:110px">{$article->WertungsDaten|koobispecialchars}</textarea></td>
    <td valign="top">{#Gaming_articles_votingInf1#} <br />
      <br />
      <em>{#Gaming_articles_votingInf2#}</em></td>
  </tr>
</table>
</fieldset>
</td>
</tr>
</table>

<table width="100%" border="0" cellspacing="2" cellpadding="0">
  <tr>
    <td width="50%" valign="top">
    <fieldset>
    <legend><span {popup sticky=$config_vars.POPSTICKY  width=450 text=$config_vars.Gaming_articles_flotosInf2}><img class="absmiddle" src="{$imgpath}/help.png" alt="" />&nbsp;</span><label for="lTop">{#Gaming_articles_tops#} {#Gaming_articles_nospecial#}</label></legend>
    <textarea name="Top" id="lTop" style="width:99%; height:100px">{$article->Top|koobispecialchars}</textarea>
    </fieldset>
    </td>
    <td valign="top">
    <fieldset>
    <legend><span {popup sticky=$config_vars.POPSTICKY  width=450 text=$config_vars.Gaming_articles_flotosInf2}><img class="absmiddle" src="{$imgpath}/help.png" alt="" />&nbsp;</span><label for="lFlop">{#Gaming_articles_flops#} {#Gaming_articles_nospecial#}</label></legend>
	<textarea name="Flop" id="lFlop" style="width:99%; height:100px">{$article->Flop|koobispecialchars}</textarea>
    </fieldset>
    </td>
  </tr>
</table>



<table width="100%" border="0" cellspacing="2" cellpadding="0">
  <tr>
    <td width="50%" valign="top">
    <fieldset>
    <legend><span {popup sticky=$config_vars.POPSTICKY  width=450 text=$config_vars.Gaming_articles_flotosInf2}><img class="absmiddle" src="{$imgpath}/help.png" alt="" />&nbsp;</span><label for="lMin">{#Gaming_articles_min#} {#Gaming_articles_nospecial#}</label></legend>
    <textarea name="Minimum" id="lMin" style="width:99%; height:100px">{$article->Minimum|koobispecialchars}</textarea>
    </fieldset>
    </td>
    <td valign="top">
    <fieldset>
    <legend><span {popup sticky=$config_vars.POPSTICKY  width=450 text=$config_vars.Gaming_articles_flotosInf2}><img class="absmiddle" src="{$imgpath}/help.png" alt="" />&nbsp;</span><label for="lOpt">{#Gaming_articles_opt#} {#Gaming_articles_nospecial#}</label></legend>
	<textarea name="Optimum" id="lOpt" style="width:99%; height:100px">{$article->Optimum|koobispecialchars}</textarea>
    </fieldset>
    </td>
  </tr>
</table>



</div>
{/if}
<!-- DETAILS -->

<div id="opt-3">
<fieldset>
<legend>{#Global_imgCurrent#} </legend>
<div id="Vorschau_1">{if $article->Bild!=''}<img src="../uploads/articles/{$article->Bild}">{/if}</div>
<label><input type="checkbox" name="NoImg" value="1" /> {#Global_ImgDel#}</label>
</fieldset>

<fieldset>
<legend>{#Global_imgNew#} {#Gaming_articles_imgInf#}</legend>
<div id="UpInf_1"></div><div id="loading_1" align="center"  style="display:none;"><img style="margin-bottom:15px" src="{$imgpath}/loading.gif" alt="" /></div>
<input id="fileToUpload_1" type="file" size="30" name="fileToUpload_1" class="input" />
<input type="button" class="button" id="buttonUpload_1" onclick="return ajaxFileUpload('','1','{#Content_maxwidth_img#}');" value="{#Global_Upload#}" />
<input type="hidden" name="Bild_1" id="newFile_1" />
 
</fieldset>

<fieldset>
<legend>{#Global_imgAlign#}</legend>
   <label><input type="radio" name="BildAusrichtung" value="right" {if $article->BildAusrichtung=='right' || $smarty.request.BildAusrichtung=='right' || $article->BildAusrichtung==''}checked="checked"{/if} /> {#Global_ImgRight#}</label>
      <label><input type="radio" name="BildAusrichtung" value="left" {if $article->BildAusrichtung=='left'  || $smarty.request.BildAusrichtung=='left'}checked="checked"{/if} /> {#Global_ImgLeft#}</label> 

</fieldset>
</div>

<div id="opt-4">
{if $smarty.request.langcode==1}
<fieldset>
<legend>{#Gaming_articles_istop#}</legend>
<label><input type="radio" name="Topartikel" value="1" {if $article->Topartikel=='1'}checked="checked"{/if}/>{#Yes#}</label>
<label><input type="radio" name="Topartikel" value="0" {if $article->Topartikel=='0'}checked="checked"{/if}/>{#No#}</label>
<br />
<br />
{#Gaming_articles_topInf#}
</fieldset>
{else}
<input name="Topcontent" type="hidden" value="{$article->Topartikel}" />
{/if}

<fieldset>
<legend>{#Global_ToarticleimgCurrent#}</legend>
 <div id="Vorschau_2">{if $article->TopartikelBild!=''}<img src="../uploads/articles/{$article->TopartikelBild}">{/if}</div>
 <label><input type="checkbox" name="NoTopnewsImg" value="1" /> {#Global_ImgDel#}</label>
</fieldset>
   
<fieldset>
<legend>{#Global_ToparticleimgNew#}</legend>
<div id="UpInf_2"></div><div id="loading_2" align="center"  style="display:none;"><img style="margin-bottom:15px" src="{$imgpath}/loading.gif" alt="" /></div>
<input id="fileToUpload_2" type="file" size="30" name="fileToUpload_2" class="input" />
<input type="button" class="button" id="buttonUpload_2" onclick="return ajaxFileUpload('','2','0');" value="{#Global_Upload#}" />
<input type="hidden" name="Bild_2" id="newFile_2" />
</fieldset>
</div>

<div id="opt-5">
{assign var='inline_table' value='article'}
{assign var='fieldname' value=$field_inline}
{include file="$incpath/inline/inline_div.tpl"}
</div>

{if $smarty.request.langcode==1}
<div id="opt-6">
<fieldset>
<legend>
<span {popup sticky=$config_vars.POPSTICKY  width=450 text=$config_vars.Tag_info}><img class="absmiddle" src="{$imgpath}/help.png" alt="" /></span>
{#Tags#}
</legend>
<input type="text" class="input" style="width:99%" name="Tags" value="{$article->Tags}" />
</fieldset>


<fieldset>
<legend>
<span {popup sticky=$config_vars.POPSTICKY  width=450 text=$config_vars.Gal_incl_info}><img class="absmiddle" src="{$imgpath}/help.png" alt="" /></span>
{#Global_mergeGalleries#}</legend>
      <select name="Gallery[]" size="15" multiple  class="input" id="select" style="width:250px">
     {foreach from=$Gallery item=ng}
       <optgroup label="{$ng->CategName}"></optgroup>
       {foreach from=$ng->Gals item=g}
       <option value="{$g->GalId}" {if in_array($g->GalId,$article->Galerien)}selected="selected"{/if}>{$g->GalName}</option>
        {/foreach}
       {/foreach}
      </select>
</fieldset>

<fieldset>
<legend><label for="lLinks">{#Products_links#}</label></legend>
{#Products_links_inf#}
<br />
<br />
<textarea name="Links" id="lLinks" style="width:99%; height:77px">{$article->Links}</textarea>
</fieldset>
</div>
{/if}




{if $smarty.request.langcode==1}
<label><input type="checkbox" name="saveAllLang" value="1" /> {#SavDataAllLangs#}</label><br />
{/if}


<input onclick="$('#container-options > ul').tabs('select', 0);" type="submit" class="button big" value="{#Save#}" />
<input type="button" onclick="window.close();" class="button big" value="{#Close#}" />
<input type="hidden" name="save" value="1" />
<input type="hidden" name="langcode" value="{$smarty.request.langcode|default:1}" />
</form>


{literal}
<script>
function getEditorValue( instanceName )
{
	var oEditor = FCKeditorAPI.GetInstance( instanceName ) ;
	return oEditor.GetXHTML( true ) ; // "true" means you want it formatted.
}

function setEditorValue( instanceName, text )
{
	var oEditor = FCKeditorAPI.GetInstance( instanceName ) ;
	oEditor.InsertHtml( text ) ;
}
</script>
{/literal}
</div>





<script language="javascript" src="{$jspath}/calendar.js" type="text/javascript"></script>
<style type="text/css" media="screen,projection">
@import url({$csspath}/calendar.css);
</style>
<script type="text/javascript">
	jQuery(function($){ldelim}
	$.datepicker.setDefaults({ldelim}
	{include file="$incpath/other/calendar.conf.tpl"}

	{rdelim}); 
	$("#ZeitStart").attachDatepicker();
	$("#ZeitEnde").attachDatepicker();
	{rdelim});
</script>