Index: editor/dialog/fck_replace.html
===================================================================
--- editor/dialog/fck_replace.html	(revision 1555)
+++ editor/dialog/fck_replace.html	(working copy)
@@ -54,10 +54,15 @@
 // Place a range at the start of document.
 // This will be the starting point of our search.
 var GlobalRange = new oEditor.FCKDomRange( oEditor.FCK.EditorWindow ) ;
-GlobalRange.SetStart( oEditor.FCK.EditorDocument.body, 1 ) ;
-GlobalRange.SetEnd( oEditor.FCK.EditorDocument.body, 1 ) ;
-GlobalRange.Collapse( true ) ;
 
+function ResetGlobalRange()
+{
+	GlobalRange.SetStart( oEditor.FCK.EditorDocument.body, 1 ) ;
+	GlobalRange.SetEnd( oEditor.FCK.EditorDocument.body, 1 ) ;
+	GlobalRange.Collapse( true ) ;
+}
+ResetGlobalRange() ;
+
 var HighlightRange = null ;
 function Highlight()
 {
@@ -388,10 +393,13 @@
 				focus.scrollIntoView( false ) ;
 		}
 
-		return true;
+		return true ;
 	}
 	else
-		return false;
+	{
+		ResetGlobalRange() ;
+		return false ;
+	}
 }
 
 function Find()
