-<form id="book" action="{?URL?}/modules.php?module=login&what=surfbar_book" method="post" onsubmit="return SubmitForm()" onreset="return ResetForm()">
+<form accept-charset="utf-8" id="book" action="{?URL?}/modules.php?module=login&what=surfbar_book" method="post" onsubmit="return SubmitForm()" onreset="return ResetForm()">
<div class="member_table dashed" style="width:600px;margin-top:10px">
<div class="member_title2 bottom2" style="padding-top:5px;padding-bottom:5px">
<strong>URL in Surfbar buchen - Statisch:</strong>
</div>
<div class="member_input bottom2" style="padding-top:5px;padding-bottom:5px">
- Aufrufe begrenzen auf: <input class="member_normal" type="text" id="limit" name="limit" size="7" maxlength="20" value="-" />
+ Aufrufe begrenzen auf: <input type="text" class="member_normal" id="limit" name="limit" size="7" maxlength="20" value="-" />
</div>
<div class="member_input" style="padding-top:5px;padding-bottom:5px">
</div>
</div>
-<script language="JavaScript" type="text/javascript">
-<!--
-var limit = document.getElementById('limit');
-var span = document.getElementById('span_limit');
-var old_limit = 0;
+<script type="text/javascript"
+ src="{?URL?}/js.php?js=surfbar_member_book{%version=surfbar%}"></script>
-function FocusLimitedNo () {
- if ((limit.value > 0) && (limit.value != '-')) {
- old_limit = limit.value;
- }
- limit.disabled = true;
- limit.setAttribute('class', 'disabled');
- limit.style.textAlign = 'center';
- limit.value = '-';
-}
-
-function FocusLimitedYes () {
- limit.disabled = false;
- limit.setAttribute('class', 'member_normal');
- limit.style.textAlign = 'left';
- if (old_limit > 0) {
- limit.value = old_limit;
- } else {
- limit.value = '';
- }
- limit.focus();
-}
-
-function SubmitForm () {
- if (limit.value == '-') {
- limit.value = 0;
- }
- return true;
-}
-
-function ResetForm () {
- old_limit = 0;
- FocusLimitedNo();
- return true;
-}
-
-FocusLimitedNo();
-
-//-->
-</script>
</form>