Code

Added Focus patch
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 9 Jul 2007 06:49:48 +0000 (06:49 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 9 Jul 2007 06:49:48 +0000 (06:49 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6769 594d385d-05f5-0310-b6e9-bd551577e9d8

87 files changed:
html/include/focus.js
ihtml/themes/default/accountexpired.tpl
ihtml/themes/default/help.tpl
ihtml/themes/default/login.tpl
ihtml/themes/default/logout.tpl
include/sieve/templates/create_script.tpl
plugins/addons/addressbook/contents.tpl
plugins/addons/godfs/generic.tpl
plugins/addons/logview/contents.tpl
plugins/addons/mailqueue/contents.tpl
plugins/admin/applications/generic.tpl
plugins/admin/departments/generic.tpl
plugins/admin/fai/askClassName.tpl
plugins/admin/fai/faiHook.tpl
plugins/admin/fai/faiHookEntry.tpl
plugins/admin/fai/faiNewBranch.tpl
plugins/admin/fai/faiPackage.tpl
plugins/admin/fai/faiPackageEntry.tpl
plugins/admin/fai/faiPartitionTable.tpl
plugins/admin/fai/faiPartitionTableEntry.tpl
plugins/admin/fai/faiProfile.tpl
plugins/admin/fai/faiScript.tpl
plugins/admin/fai/faiScriptEntry.tpl
plugins/admin/fai/faiTemplate.tpl
plugins/admin/fai/faiTemplateEntry.tpl
plugins/admin/fai/faiVariable.tpl
plugins/admin/fai/faiVariableEntry.tpl
plugins/admin/groups/generic.tpl
plugins/admin/groups/mail.tpl
plugins/admin/groups/paste_generic.tpl
plugins/admin/groups/paste_mail.tpl
plugins/admin/mimetypes/generic.tpl
plugins/admin/ogroups/generic.tpl
plugins/admin/ogroups/mail.tpl
plugins/admin/ogroups/paste_generic.tpl
plugins/admin/ogroups/paste_mail.tpl
plugins/admin/systems/component.tpl
plugins/admin/systems/gencd.tpl
plugins/admin/systems/glpi.tpl
plugins/admin/systems/glpiAttachmentEdit.tpl
plugins/admin/systems/glpiManufacturerAdd.tpl
plugins/admin/systems/glpiPrinterCartridgesEdit.tpl
plugins/admin/systems/glpi_edit_cartridge_type.tpl
plugins/admin/systems/glpi_edit_os.tpl
plugins/admin/systems/glpi_edit_printer_type.tpl
plugins/admin/systems/glpi_edit_type.tpl
plugins/admin/systems/password.tpl
plugins/admin/systems/phone.tpl
plugins/admin/systems/printer.tpl
plugins/admin/systems/servDNSeditZoneEntries.tpl
plugins/admin/systems/servdns.tpl
plugins/admin/systems/servdnseditzone.tpl
plugins/admin/systems/server.tpl
plugins/admin/systems/terminal.tpl
plugins/admin/systems/terminalStartup.tpl
plugins/admin/systems/wingeneric.tpl
plugins/admin/systems/workstation.tpl
plugins/admin/systems/workstationService.tpl
plugins/admin/systems/workstationStartup.tpl
plugins/admin/users/password.tpl
plugins/admin/users/template.tpl
plugins/gofax/blocklists/generic.tpl
plugins/gofax/faxaccount/generic.tpl
plugins/gofax/faxaccount/paste_generic.tpl
plugins/gofax/faxreports/contents.tpl
plugins/gofon/conference/generic.tpl
plugins/gofon/fonreports/contents.tpl
plugins/gofon/macro/generic.tpl
plugins/gofon/macro/parameter.tpl
plugins/gofon/phoneaccount/generic.tpl
plugins/personal/connectivity/pureftpd.tpl
plugins/personal/environment/environment.tpl
plugins/personal/environment/hotplugDialog.tpl
plugins/personal/environment/hotplugDialogNew.tpl
plugins/personal/environment/kioskManagement.tpl
plugins/personal/environment/logonManagement.tpl
plugins/personal/environment/selectPrinterDialog.tpl
plugins/personal/generic/generic.tpl
plugins/personal/generic/password.tpl
plugins/personal/mail/generic.tpl
plugins/personal/nagios/nagios.tpl
plugins/personal/netatalk/netatalk.tpl
plugins/personal/password/password.tpl
plugins/personal/posix/generic.tpl
plugins/personal/scalix/generic.tpl
setup/setup_ldap.tpl
setup/setup_migrate.tpl

index c68951fdc7ef2b19aae18c7edcd7669df944daf1..281f0be89a0a689bdcc88bdff5673857f7c84774 100644 (file)
@@ -402,4 +402,37 @@ function adjust_width(e) {
        }
 }
 
+
+
+/* Set focus to first valid input field 
+               avoid IExplorer warning about hidding or disabled fields 
+*/
+function focus_field()
+{      
+               var i = 0;
+               while(focus_field.arguments[i] && document.getElementById(focus_field.arguments[i]).disabled == true) {
+                       i++;
+               }
+               if(focus_field.arguments[i]){
+
+                               var name                = focus_field.arguments[i];
+                               var element = document.getElementsByName(name);
+
+                               for(i = 0; i < element.length; i++) {
+                                               if(element[i].id == name && (
+                                                               element[i].type != 'none' || 
+                                                               element[i].type != 'hidden')
+                                               ) {
+                                                       element[i].blur();              
+                                                       element[i].focus();             
+                                                       break;
+                                               }
+                               }
+               }
+}
+
+
+
+
+
 // vim:ts=2:syntax
index 39fbd1b81cba6663e2968dc808a0138923b1b71f..239b8fc9f8c5a452a13daae769117e5d24f1ed4c 100644 (file)
@@ -65,7 +65,7 @@
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
   nextfield= "{$nextfield}";
-  document.mainform.{$nextfield}.focus();
+  focus_field({$nextfield});
   -->
 </script>
 
index 82c3e42bc237259ff9b0ed27e59de56835ae6239..2c91d5649c4e1936b452548236ef0201c36982ee 100644 (file)
@@ -30,7 +30,7 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
 <!-- // First input field on page
-document.mainform.search_string.focus();
+  focus_field('search_string');
 -->
 </script>
 
index 729ae8b89e6a58263c7b34d0d2ab8b71f688223a..1c6b44e6ffdd61ba1667e9de832af870c19dbfd1 100644 (file)
@@ -89,7 +89,7 @@
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
   nextfield= "{$nextfield}";
-  document.mainform.{$nextfield}.focus();
+  focus_field({$nextfield});
   -->
 </script>
 
index faf4235a5db7d0ceecd31ff110742554d0ad0072..27005eed636a3896d532cfb6b5292b86133af2ef 100644 (file)
@@ -15,7 +15,7 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.dummy.focus();
+  focus_field('dummy');
   -->
 </script>
 
index 42737169e405fad48c87e282f56ef18ddcabf4e4..fa44081c0393321da090ed8ac951386166fc9648 100644 (file)
@@ -15,5 +15,7 @@
    <input type='submit' name='create_script_cancel' value='{t}Cancel{/t}'>
 </div>
 <script language="JavaScript" type="text/javascript">
-       document.mainform.NewScriptName.focus();
+       <!--
+       focus_field('NewScriptName');
+       -->
 </script>
index 30d03124ba8e26e81a2b394d069bfdc701b9519a..3925643c5e112001e2c6ad51c4e9e4a2326dbe19 100644 (file)
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.search_for.focus();
+       focus_field('search_for');
   -->
 </script>
index c280434649f8d6d1893f565438cc465c39d67a39..4f3ded4d2c2a944baecd2793df363c86107b437e 100644 (file)
@@ -47,6 +47,6 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.ou.focus();
+       focus_field('ou');
   -->
 </script>
index 2262604ad8cadd90620430d7f16e1a4d1df6dc58..9a03544f320f8a558dc30f1bec6f859ad48ca3c9 100644 (file)
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.search_for.focus();
+       focus_field('search_for');
   -->
 </script>
index 53833b7fbfa8e9ff8291bbd687de4982287a3ea9..139bcd48109faf92a7eba0bc3d3b1f455d2f5a71 100644 (file)
 
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.search_for.focus();
+       focus_field('search_for');
   -->
 </script>
index 9da9a8d5653b879408c8d282e57455f880847781..b50ed7eb85a022109638d9776312e82471b35fd2 100644 (file)
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cn.focus();
+       focus_field('cn');
   -->
 </script>
index bfb6c139c10ea01766a392a2e0dc8ade20cf1a0a..7e353be8c826af3cf9df493c4e2ec662b7920094 100644 (file)
@@ -127,6 +127,6 @@ Its functionality is disabled in class_departmentGeneric.inc
 <input type='hidden' name='dep_generic_posted' value='1'>
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.ou.focus();
+       focus_field('ou');
   -->
 </script>
index f972210a762f2e9827dcb9da15a84544fdc4db34..7975e1052ecfd62937c484bc9bb9c5d812b6cdb8 100644 (file)
@@ -84,7 +84,6 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
        <!--
-       document.mainform.UseTextInputName.select();
-       document.mainform.UseTextInputName.focus();
+       focus_field('UseTextInputName');
        -->
 </script>
index df968b1cf3e7b27cf541cdfb1689d2ab09622c25..95ceba6fb3408037c29487ca61f6b24adcb21144 100644 (file)
@@ -59,7 +59,7 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.description.focus();
+       focus_field('cn','description');
   -->
 </script>
 
index 2ab571413e707cbe16306a6c1e2124a91809e25f..7d6bc4415096c752a169450ab9472de45617d01a 100644 (file)
@@ -87,7 +87,7 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cn.focus();
+       focus_field('cn','description');
   -->
 </script>
 
index 725cf1f53bd764798a1656b524dae0578fc7e756..831e02898fccf1466073cecfb829cac170f4a85e 100755 (executable)
@@ -26,8 +26,7 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
        <!--
-       document.mainform.BranchName.select();
-       document.mainform.BranchName.focus();
+       focus_field('BranchName');
        -->
 </script>
 {else}
index 56b8a7df6308e67f30db95aa9ee373a76b99af17..87c83d98e05b1de771fb4fa42346c57d77bbe154 100644 (file)
@@ -94,7 +94,7 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.description.focus();
+       focus_field('cn','description');
   -->
 </script>
 
index dcd448596db472dcfc968a0a596256854d729bd9..79f47c6c4a115a844aebd3163ac85dadc07dae0b 100644 (file)
@@ -60,7 +60,7 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.filter.focus();
+       focus_field('filter');
   -->
 </script>
 
index 2b7ee4f0732a7668a46ec2736005b69b7982ff3d..20f6ee197aa6c7a3017dbbbec9e03f80401625ed 100644 (file)
@@ -61,7 +61,7 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.description.focus();
+       focus_field('cn','description');
   -->
 </script>
 
index 870b66e03a2ef6fdf9c22f8c6f90ce57aeedc579..4379b663dd0d7cb8984952edb49f2569a157f604 100644 (file)
@@ -42,7 +42,7 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.DISKcn.focus();
+       focus_field('DISK_cn');
   -->
 </script>
 
index 54431ff39bb2ab6f71159bb03cc5f55b3a0a7b89..090d968e734983dba04861ae963c91d36586b571 100644 (file)
@@ -52,7 +52,7 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.description.focus();
+       focus_field('cn','description');
   -->
 </script>
 
index 45f7cf25c5ea32f3150d8cda7b6d650c06487226..acb0d135c69a8910866afaa0c13ae163c292ee31 100644 (file)
@@ -58,8 +58,8 @@
 <input type="hidden" value="1" name="FAIscript_posted" >
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
-  <!-- // First input field on page
-  document.mainform.description.focus();
-  -->
+<!--
+       focus_field("cn","description");
+-->
 </script>
 
index f3db3d682a67b96a85a4a3b61e60109af08cb707..45988a75678c3a77a1f5e7815f7418f49eb02975 100644 (file)
@@ -85,7 +85,7 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cn.focus();
+       focus_field('cn','description');
   -->
 </script>
 
index 1ded8915df1d2e811f555210ad8087a93c6da984..cefe94e2844e6bb3ccde8d1c9edbc42dd3d54f91 100644 (file)
@@ -48,7 +48,7 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.description.focus();
+       focus_field('cn','description');
   -->
 </script>
 
index c431ab52a8acfb3f6e3c1edd76f4cad3554fb4e4..86079b1c2c0fb42cc5f7b7fd039d31dca9f83a1d 100644 (file)
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cn.focus();
+       focus_field('cn','description');
   -->
 </script>
 
index 10b09f67cdbcfa59601969038232e6379cd815cd..10a29f23d7f304d1324ef06f4888ea878240f0d0 100644 (file)
@@ -66,7 +66,7 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.description.focus();
+       focus_field('cn','description');
   -->
 </script>
 
index 07f4038ad2ab605515149a24a49bf4f4ea27fd87..0fd8a4afaf3e25d8cf60b52282908a1ffa7cde9e 100644 (file)
@@ -58,7 +58,7 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cn.focus();
+       focus_field('cn','description');
   -->
 </script>
 
index 1ccd5cab07ade325458b11550fc124161738cb4e..4d67c86655b52b4e580d45463a69095b011a3299 100644 (file)
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cn.focus();
+       focus_field('cn');
   -->
 </script>
index 243601e9b535586309d1690b56cd803bc85057fd..b162fc345a013fe97d85a48c680446a8f708347b 100644 (file)
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.mail.focus();
+       focus_field('mail');
   -->
 </script>
index 134b2963c385faaa2c90b3126be72ecc8a1ef5e4..26477def6078a925e57bd97758581f779eb82f87 100644 (file)
@@ -21,5 +21,5 @@
 </table>
 
 <script language="JavaScript" type="text/javascript">
-  document.mainform.cn.focus();
+       focus_field('cn');
 </script>
index 9784fa92e8aaa6f739ad62f18d2583bb50c05b1a..e30ba9af0d29b951836c9c0021bdd81faab4cc54 100644 (file)
@@ -51,6 +51,6 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.mail.focus();
+       focus_field('mail');
   -->
 </script>
index 36d255361eddd43feb0b3967eb59d7531639bb76..06556cf4bc82e7e10483d09faa2889c0e5f84451 100644 (file)
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cn.focus();
+       focus_field('cn');
   -->
 </script>
index 2585d2c8cfdb6798fe899c6a47aeb24492e6132a..f6f75bcb4d381c0431b98c9f9bfcb0dbfa48cb6b 100644 (file)
@@ -60,6 +60,6 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cn.focus();
+       focus_field('cn');
   -->
 </script>
index 6dd9d750492f4d89a2531a1b721b9ea9e020b449..a28d0ac048c258b8b971f428a763ef2398d33b60 100644 (file)
@@ -22,6 +22,6 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.mail.focus();
+       focus_field('mail');
   -->
 </script>
index 637b759eabbf70119ad1302110abf2ac117fb6d9..91f84d8aef85d336c214157cda000b343b2b40fc 100644 (file)
@@ -10,5 +10,5 @@
 </table>
 
 <script language="JavaScript" type="text/javascript">
-  document.mainform.cn.focus();
+       focus_field('cn');
 </script>
index d9d569b7f0d1d27b26a58aa163d569b281a29906..737d707ef4b3d88916a83b48345a8b5f2a02b3fd 100644 (file)
@@ -10,5 +10,5 @@
 </table>
 
 <script language="JavaScript" type="text/javascript">
-  document.mainform.mail.focus();
+       focus_field('mail');
 </script>
index 5fb787f61dff12faaaf1214d8c7547894fac13f8..3ddd5068ca7b09b0dc1fed2a9c41eeb8356181d6 100644 (file)
@@ -51,6 +51,6 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cn.focus();
+       focus_field('cn');
   -->
 </script>
index b2b9d04a1ded424909e468ba9018feb305d93931..f0c4496774b489944bf6b65449737dea6931aea8 100644 (file)
@@ -14,7 +14,7 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  nextfield= 'new_password';
-  document.mainform.new_password.focus();
+       nextfield= 'new_password';
+       focus_field('new_password');
   -->
 </script>
index eea99fdf2d7a024c573f9b1fab16114dea538f55..0d2f8db366caca15f364df0212842a6e7a2b74a6 100644 (file)
 <input type="hidden" name="glpi_tpl_posted" value="1">
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.type.focus();
+       focus_field('type');
   -->
 </script><p style="text-align:right">
index f9867ddbd92f2a8a649c582f7327f6f90036c6d6..7d91e50afd1519c76a61a83d4956652b6ad277c0 100644 (file)
@@ -72,7 +72,7 @@
 </div>
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.name.focus();
+       focus_field('name');
   -->
 </script>
 
index 980138a48f478866c763e1c497bec3096eb42d1b..c5b060d29781e3b52cca8308c11d7fcc375d49de 100644 (file)
@@ -83,7 +83,7 @@
 </div>
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.name.focus();
+               focus_field('name');
   -->
 </script>
 
index 22001e6b24937116923a8e076cb4854903d1caac..6857efdb3510926e5f1889f451653185f09049da 100644 (file)
@@ -77,7 +77,7 @@
 </div>
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.name.focus();
+       focus_field('name');
   -->
 </script>
 
index 0d640bbb5d076583f08f0444b50fa979aa31c67c..cbc91d95f4d119abebbfe3eb9f055dbf84c0d669 100644 (file)
@@ -15,7 +15,7 @@
 </div>
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cartridge_type_string.focus();
+       focus_field('cartridge_type_string');
   -->
 </script>
 
index 892490acc88c9e503c3bbff6c5b3bd9a686dbdfd..8e3726451084657e3f38e4e01c9fc16a84435f37 100644 (file)
@@ -17,7 +17,7 @@
 </div>
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.is_string.focus();
+               focus_field('is_string');
   -->
 </script>
 {else}
@@ -31,7 +31,7 @@
     </p>
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.string.focus();
+       focus_field('string');
   -->
 </script>
 {/if}
index 90dd9c054f72e158526276bc1acfe87e7b16ce75..a63e9235e47911a2d19a1475e6b56af1319f71bd 100644 (file)
@@ -16,7 +16,7 @@
        </div>
        <script language="JavaScript" type="text/javascript">
          <!-- // First input field on page
-         document.mainform.type_string.focus();
+               focus_field('type_string');
          -->
        </script>
 
@@ -32,7 +32,7 @@
     </p>
        <script language="JavaScript" type="text/javascript">
          <!-- // First input field on page
-         document.mainform.string.focus();
+               focus_field('string');
          -->
        </script>
 
index bc24ce30555d11bc91d951a2858ad815d69228bf..14a4f54311cf98d2b0e7edfdcb659fab72087f6f 100644 (file)
@@ -17,7 +17,7 @@
        </div>
        <script language="JavaScript" type="text/javascript">
          <!-- // First input field on page
-         document.mainform.type_string.focus();
+               focus_field('type_string');
          -->
        </script>
 {else}
@@ -31,7 +31,7 @@
        </p>
        <script language="JavaScript" type="text/javascript">
        <!-- // First input field on page
-       document.mainform.string.focus();
+               focus_field('string');
        -->
        </script>
 {/if}
index 6fb9cdb057ccb2cad5cea97fb233467d0d8ddb40..734a4ae0c443f629c34b36070c0acd7664167377 100644 (file)
@@ -33,7 +33,7 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  nextfield= 'new_password';
-  document.mainform.new_password.focus();
+       nextfield= 'new_password';
+       focus_field('new_password');
   -->
 </script>
index a7e652cea442a4928b20ed6edfd3d6d1af6a6ee2..58fdd608448966bc1eb0e6c78f07a8cef4c12297 100644 (file)
@@ -52,6 +52,6 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cn.focus();
+       focus_field('cn');
   -->
 </script>
index e7f8d8d8356a93c109d7a38975d7995bc7f196f0..e4ba965b9cfbb2d1c4ebcc24c69bcfecb6229ccc 100644 (file)
 
   <!-- // First input field on page
   if(document.mainform.cn)
-         document.mainform.cn.focus();         
+       focus_field('cn');
   -->
 </script>
index 0efdd7bd40651301af12b89444790a26f83da5b3..0396575621171ae6869ac771ab7587e0e822e92c 100644 (file)
@@ -24,7 +24,7 @@
 
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.zoneName.focus();
+       focus_field('zoneName');
   -->
 </script>
                                                                             
index 9cd1d91b3d4b92ddfa9d3f56e66d26efe54e7cab..62909377908d75b5a3880b27370fa2ae960d954b 100644 (file)
@@ -11,7 +11,7 @@
 </table>
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.AddZone.focus();
+       focus_field('AddZone');
   -->
 </script>
 
index 702e7717b81c7d4cc03c6a489c31a6dea93ecfdc..2e7c969be9d9c276ad97d0dbc365c66ed9e4d919 100644 (file)
 </div>
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.zoneName.focus();
+       focus_field('zoneName');
   -->
 </script>
index ef53bab8ad2b356e49f4e5a53a75f84d8fbec010..4e2d9b6a4c0147b6e7e86d460fd9df79fd647ad2 100644 (file)
@@ -80,6 +80,6 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cn.focus();
+       focus_field('cn');
   -->
 </script>
index 48eb310e7ac330dde404bc1aee684627af95a9ba..c8bc445e70d405f41617c1df638453a426b3669f 100644 (file)
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cn.focus();
+       focus_field('cn');
   -->
 </script>
index 91e64415eea825deabd543c306825ab9022874f5..faabb822c5fae8cf8dc054bcbf9de373819a0904 100644 (file)
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.gotoLdapServer.focus();
+       focus_field('gotoLdapServer');
   -->
 </script>
index 2840270c02baf9b3462b9f986ec3c362cf680a3f..fb58a6d66c4b01da700349a1303d461ad4e63ba4 100644 (file)
@@ -37,6 +37,6 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cn.focus();
+       focus_field('cn');
   -->
 </script>
index 428b5ca048a6f04f1ecdff32ea42541cfc681c75..ed79e540718a73dbe4781137b9430496dad2a3a1 100644 (file)
 <!-- Place cursor -->
                <script language="JavaScript" type="text/javascript">
                  <!-- // First input field on page
-                 document.mainform.l.focus();
+                       focus_field('l');
                  -->
                </script>
      {else}
                <script language="JavaScript" type="text/javascript">
                  <!-- // First input field on page
-                 document.mainform.cn.focus();
+                       focus_field('cn');
                  -->
                </script>
      {/if}
index dafb6371847798c8f7295c7ec4e967cf90660f36..e5171fe0185295bb406c0c21bece46d2bf7b783b 100644 (file)
 
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.gotoXKbModel.focus();
+       focus_field('gotoXKbModel');
   -->
 </script>
 
index e14e11cc580ad6c897063b083f28bce5d5a12239..04ab4d1c2545962ebd3d3755d34610b3fba99536 100644 (file)
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.gotoLdapServer.focus();
+       focus_field('gotoLdapServer');
   -->
 </script>
index 8ce6f731796e40946a22e45397a800737efcb556..83dfc24948a1236c1b73973ac64cd32b1746b092 100644 (file)
@@ -26,7 +26,7 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  nextfield= "new_password";
-  document.mainform.new_password.focus();
+       nextfield= "new_password";
+       focus_field('new_password');
   -->
 </script>
index 64cbe547594fbdc3ab1f05bb45ee1f55119e15da..37237f9fc0bc0e8a07068723fd5874f887536e85 100644 (file)
@@ -55,6 +55,6 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.sn.focus();
+       focus_field('sn');
   -->
 </script>
index 888339abe55150849e4d9e002084994ad7a8aa71..b645ba68c959b8781b212a42defef0fe465ff4fc 100644 (file)
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cn.focus();
+       focus_field('n');
   -->
 </script>
index 01a5282891d4efb629282784fa8cd3444a05361a..d7587ef2183b45c676aa47b9d884b01e4ded18c9 100644 (file)
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.facsimileTelephoneNumber.focus();
+       focus_field('facsimileTelephoneNumber');
   -->
 </script>
index fc24dc4ba2f5c03bb4db2d02417d52c3f0350a58..6efca1d5b2c24a3fd8f961b8baa5168a3a8ea24b 100644 (file)
@@ -26,6 +26,6 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.facsimileTelephoneNumber.focus();
+       focus_field('facsimileTelephoneNumber');
   -->
 </script>
index a0eb831a30f13dd23f2845dc282e85059d3f113f..197c5b8c8a5bf6937bb1e073dbfb5071913379dd 100644 (file)
@@ -54,6 +54,6 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.search_for.focus();
+       focus_field('search_for');
   -->
 </script>
index 10291712002212c215ff74073bc7902ba46a07ac..d35ea462400cada8514b5acbeb5cd6d06b021a00 100644 (file)
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cn.focus();
+       focus_field('cn');
   -->
 </script>
 <!-- 
index 2a1807d17dbb3a55bcdc3bece8070115992f27ec..d8cf0a47fc68ce113514a9d86dff20c070d1324b 100644 (file)
@@ -54,6 +54,6 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.search_for.focus();
+       focus_field('search_for');
   -->
 </script>
index 75b613fbbaab48091a9bb8338e086423582bbf5d..7bedc521947327542cda17feb64446f6c829a144 100755 (executable)
@@ -78,6 +78,6 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cn.focus();
+       focus_field('cn');
   -->
 </script>
index b62e1de49d3de832b0dba2ed29986689446ef8bb..48e99cd8226aa4b5d270108eb4d5ab415860fdaa 100755 (executable)
@@ -23,6 +23,6 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cn.focus();
+       focus_field('cn');
   -->
 </script>
index ae726bedb53b8fd0957e717c953c44d9dbe5e4cb..f034afeb7157b7b747474590a1a710078c0749c7 100644 (file)
 
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.phonenumber.focus();
+       focus_field('phonenumber');
   -->
 </script>
index a769e157c465038d8733c110f4cb20bff5d3f6e9..714ef787bb390fea1d40e9a8cfb32a1d005cfd33 100644 (file)
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.FTPUploadBandwidth.focus();
+       focus_field('FTPUploadBandwidth');
   -->
 </script>
index 47131474dd9539fe7037cb003dd8b89a9f447966..dd31581c65d41e1c01dc57930c871b39e820054c 100644 (file)
 </table>
 <script language="JavaScript" type="text/javascript">
 <!-- // First input field on page
-document.mainform.useProfile.focus();
+focus_field('useProfile');
 -->
 </script>
 {/if}
index ddc810599953a6f929492efe39cba8a2e0ebc778..868e72b00209950367b6decae10ff5a8be56640b 100644 (file)
@@ -65,6 +65,6 @@
     </p>
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.hotplugName.focus();
+       focus_field('hotplugName');
   -->
 </script>
index 8ae162286dcb2b25d272d94d93fcf476aec999ba..93a3b12c42986cc0b6b98c1a12244554f1b31a83 100644 (file)
@@ -55,7 +55,7 @@
        </p>
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.HOT_name.focus();
+       focus_field('HOT_name');
   -->
 </script>
 
index 117cf354ee57fc3901f8704187de09e9fcdd462c..88391b8a2931ebf658c9f5cc80a3b49016d6ae6f 100644 (file)
@@ -26,6 +26,6 @@
     </p>
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.gotoKioskProfile.focus();
+       focus_field('gotoKioskProfile');
   -->
 </script>
index 87e282ba343521f58b7415e94d883128c33790f2..746be6fe17269d6efdeafae3920fdc44bc5fc309 100644 (file)
@@ -78,7 +78,7 @@
 
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.LogonName.focus();
+       focus_field('LogonName');
   -->
 </script>
 
index 95af082eceee7bb60b8cd643e8c6e5f815e2e300..f07674d39baf1fce20ca0f7367bca2e40300a2b7 100644 (file)
@@ -67,6 +67,6 @@
     </p>
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.gotoPrinter.focus();
+       focus_field('gotoPrinter');
   -->
 </script>
index 5d136051b1a1fe0f74dcf886c4b961cfc8a04dcb..f74986c4b02f77b245faf8394fe70101d4f2c2d3 100644 (file)
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.sn.focus();
+       focus_field('sn');
        if (document.mainform.yearSel != "")
                                populate(document.mainform,document.mainform.dateOfBirth);
   -->
index 3d532f58155a1e27cca04dd3ddc1443c40e02505..3d26511fc927afd2e302e263209bc91c57f88a33 100644 (file)
@@ -22,7 +22,7 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  nextfield= "new_password";
-  document.mainform.new_password.focus();
+       nextfield= "new_password";
+       focus_field('new_password');
   -->
 </script>
index 7ce45eb3ce4a7276d545ed263251a3dd01c5be2f..785fd44f6e3daf6975632bb75e4f788d99393dfe 100644 (file)
@@ -309,6 +309,6 @@ onclick="changeState('day'); changeState('month'); changeState('year'); changeSt
        {/literal}
 
 <!-- // First input field on page
-  document.mainform.mail.focus();
+       focus_field('mail');
   -->
 </script>
index c28c4d093dfd7f949ef6e06027fe4836dbf91d1f..e77529add7dda9d472de8f50263bb604993de858 100644 (file)
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.NagiosAlias.focus();
+       focus_field('NagiosAlias');
   -->
 </script>
 
index 5c9aa908f20a5a0ed4951f808f0c77360340e819..c5bcc8ecc746dbaaa5a0cd0191769d7146e25b61 100644 (file)
@@ -28,6 +28,6 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.apple_user_homeurl_raw.focus();
+       focus_field('apple_user_homeurl_raw');
   -->
 </script>
index bf299e1e49caeace2840e8692a8f15534bbbdf66..bc8251446010b8d70b09f9fbb2167b6a617df6a9 100644 (file)
@@ -56,7 +56,7 @@
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
   nextfield= 'current_password';
-  document.mainform.current_password.focus();
+       focus_field('current_password');
   -->
 </script>
 
index cb5f443acb27bd04c483e590d61c47f253c528b1..65d5ba7e02b6a7c39506a895df73195fb8cdafdb 100644 (file)
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.homeDirectory.focus();
+       focus_field('homeDirectory');
   -->
 </script>
index e87795bfb86c736fd0555e1d958ed1e359d16859..669d2ea172cf5826f782489647d6b6e783d442e3 100644 (file)
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.scalixMailnode.focus();
+       focus_field('scalixMailnode');
   -->
 </script>
index 1def567cb2d7ba6f19e2777b411eb653a3595674..b54c7a6747361d21a2ca2c99ad48ba798b33807e 100644 (file)
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.location.focus();
+       focus_field('location');
   -->
 </script>
 
index 21eae1567afd2affca091f00678b83e28650c116..a1652162b9a68c031e19f277660349369f0faf8f 100644 (file)
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.new_user_password.focus();
+       focus_field('new_user_password');
   -->
 </script>