var form = document.getElementById('form');
var ok = document.getElementById('ok');
-function Submit() {
+function submitForm() {
if (counter.innerHTML > 0) {
alert('{--MEMBER_ORDER_PLEASE_WAIT_TESTER--}');
return false;
ok.value='{--MEMBER_ORDER_TEST_STARTED--}';
var interval = window.setInterval("Counter()", 1000);
+
+// Register event listener
+$('#form').submit(function() {
+ return submitForm();
+});
focusLimitedNo();
document.getElementById('url').focus();
+
+// Register all event listeners
+$('#book').submit(function() {
+ return submitForm();
+});
+
+$('#reset').click(function() {
+ return resetForm();
+});
+
+$('#limit').click(function() {
+ return focusLimit();
+});
+
+$('#limit').blur(function() {
+ return blurLimit();
+});
+
+$('#limit').change(function() {
+ return changeLimited();
+});
+
+$('#limited_no').click(function() {
+ return focusLimitedNo();
+});
+
+$('#limited_yes').click(function() {
+ return focusLimitedYes();
+});
} else {
FocusLimitedNo();
}
+
+// Register event listeners
+$('#edit').submit(function() {
+ return submitForm();
+});
+
+$('#reset').click(function() {
+ return resetForm();
+});
<script type="text/javascript" src="{%url=js.php?js=surfbar_member_book%}{%ext,version=surfbar%}"></script>
-<script type="text/javascript">
-<!--
-$('#book').submit(function() {
- return submitForm();
-});
-
-$('#reset').click(function() {
- return resetForm();
-});
-
-$('#limit').click(function() {
- return focusLimit();
-});
-
-$('#limit').blur(function() {
- return blurLimit();
-});
-
-$('#limit').change(function() {
- return changeLimited();
-});
-
-$('#limited_no').click(function() {
- return focusLimitedNo();
-});
-
-$('#limited_yes').click(function() {
- return focusLimitedYes();
-});
-//-->
-</script>
-
{%form_close%}
<span class="notice" style="padding:5px">
<script type="text/javascript" src="{%url=js.php?js=surfbar_member_book%}{%ext,version=surfbar%}"></script>
-<script type="text/javascript">
-<!--
-$('#book').submit(function() {
- return submitForm();
-});
-
-$('#reset').click(function() {
- return resetForm();
-});
-
-$('#limit').click(function() {
- return focusLimit();
-});
-
-$('#limit').blur(function() {
- return blurLimit();
-});
-
-$('#limit').change(function() {
- return changeLimited();
-});
-
-$('#limited_no').click(function() {
- return focusLimitedNo();
-});
-
-$('#limited_yes').click(function() {
- return focusLimitedYes();
-});
-//-->
-</script>
-
{%form_close%}
</div>
<div>
<input type="submit" class="form_submit" id="ok" name="ok" value="{--MEMBER_DO_ORDER--}" />
</div>
+
<script type="text/javascript" src="{%url=js.php?js=order_send%}{%ext,version=order%}"></script>
-<script type="text/javascript">
-<!--
-$('#form').submit(function() {
- return submitForm();
-});
-//-->
-</script>
+
{%form_close%}
</div>
</table>
{%form_close%}
-<!-- Hinweise zur "Auszahlung" in Bannerviews, Textlinkklicks, etc. //-->
-<div class="notice">(*): {--PAYOUT_BANNER_NOTICE--}</div>
-<!-- Hinweise zur "Auszahlung" in Bannerviews, Textlinkklicks, etc. //-->
+<div class="notice">
+ (*): {--PAYOUT_BANNER_NOTICE--}
+</div>
</div>
<script type="text/javascript"
src="{%url=js.php?js=surfbar_member_edit%}{%ext,version=surfbar%}&url_views_max=$content[url_views_max]&limited=$content[limited]"></script>
-<script type="text/javascript">
-<!--
-$('#edit').submit(function() {
- return submitForm();
-});
-
-$('#reset').click(function() {
- return resetForm();
-});
-//-->
-</script>
{%form_close%}
</div>