Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 675)
+++ trunk/CHANGELOG	(revision 676)
@@ -17,6 +17,7 @@
 -	Removed admin module mail_filter
 +	Added revised version of the output filter module
 08-Feb-2008 Thomas Hornik
+!	module news: set focus on captcha-field if user have to re-enter captcha
 !	Changed maxlength of captcha-fields - don't tell the bots how many chars we want to have.
 -	Removed unused function is_access_denied() from search
 04-Feb-2008 Thomas Hornik
Index: trunk/wb/modules/news/comment_page.php
===================================================================
--- trunk/wb/modules/news/comment_page.php	(revision 675)
+++ trunk/wb/modules/news/comment_page.php	(revision 676)
@@ -79,7 +79,6 @@
 	<?php
 	if(isset($_SESSION['captcha_error'])) {
 		echo '<font color="#FF0000">'.$_SESSION['captcha_error'].'</font><br />';
-		unset($_SESSION['captcha_error']);
 		$_SESSION['captcha_retry_news'] = true;
 	}
 	// Captcha
@@ -92,6 +91,11 @@
 	</tr></table>
 	<br />
 	<?php
+	if(isset($_SESSION['captcha_error'])) {
+		unset($_SESSION['captcha_error']);
+		?><script>document.comment.captcha.focus();</script><?php
+	}?>
+	<?php
 	}
 	?>
 	<input type="submit" name="submit" value="<?php echo $TEXT['ADD']; ?> <?php echo $TEXT['COMMENT']; ?>" />
