Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1260)
+++ branches/2.8.x/CHANGELOG	(revision 1261)
@@ -12,6 +12,8 @@
  
 ------------------------------------- 2.8.1 -------------------------------------
 21-Jan-2010 Dietmar Woellbrink (Luisehahne)
+#	fix login_form.php sometimes produce javascript errors in IE
+21-Jan-2010 Dietmar Woellbrink (Luisehahne)
 #	fix more small css-errors in WB Backend (thanks to Ruebenwurzel)
 21-Jan-2010 Dietmar Woellbrink (Luisehahne)
 !	update header info
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 1260)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 1261)
@@ -55,6 +55,6 @@
 
 // check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
 if(!defined('VERSION')) define('VERSION', '2.8.1');
-if(!defined('REVISION')) define('REVISION', '1260');
+if(!defined('REVISION')) define('REVISION', '1261');
 
 ?>
\ No newline at end of file
Index: branches/2.8.x/wb/account/login_form.php
===================================================================
--- branches/2.8.x/wb/account/login_form.php	(revision 1260)
+++ branches/2.8.x/wb/account/login_form.php	(revision 1261)
@@ -56,9 +56,11 @@
 	<td style="width:100px"><?php echo $TEXT['USERNAME']; ?>:</td>
 	<td class="value_input">
 		<input type="text" name="<?php echo $username_fieldname; ?>" maxlength="30" style="width:220px;"/>
-		<script type="text/javascript">
-		document.login.<?php echo $username_fieldname; ?>.focus();
-		</script>
+    	<script type="text/javascript">
+    	// document.login.<?php echo $username_fieldname; ?>.focus();
+    	var ref= document.getElementById("<?php echo $username_fieldname; ?>");
+    	if (ref) ref.focus();
+    	</script>
 	</td>
 </tr>
 <tr>
