Index: /FCKeditor/trunk/_samples/html/sample01.html
===================================================================
--- /FCKeditor/trunk/_samples/html/sample01.html	(revision 1297)
+++ /FCKeditor/trunk/_samples/html/sample01.html	(revision 1298)
@@ -44,5 +44,5 @@
 // This is usefull only for these samples. A real application should use something like this:
 // oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
+var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
 
 var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
Index: /FCKeditor/trunk/_samples/html/sample02.html
===================================================================
--- /FCKeditor/trunk/_samples/html/sample02.html	(revision 1297)
+++ /FCKeditor/trunk/_samples/html/sample02.html	(revision 1298)
@@ -36,5 +36,5 @@
 	// This is usefull only for these samples. A real application should use something like this:
 	// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-	var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
+	var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
 
 	var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
Index: /FCKeditor/trunk/_samples/html/sample03.html
===================================================================
--- /FCKeditor/trunk/_samples/html/sample03.html	(revision 1297)
+++ /FCKeditor/trunk/_samples/html/sample03.html	(revision 1298)
@@ -79,5 +79,5 @@
 function ChangeLanguage( languageCode )
 {
-	window.location.href = window.location.pathname + "?" + languageCode ;
+	document.location.href = document.location.href.replace( /\?.*$/, '' ) + "?" + languageCode ;
 }
 	</script>
@@ -112,5 +112,5 @@
 // This is usefull only for these samples. A real application should use something like this:
 // oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
+var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
 
 var sLang ;
Index: /FCKeditor/trunk/_samples/html/sample04.html
===================================================================
--- /FCKeditor/trunk/_samples/html/sample04.html	(revision 1297)
+++ /FCKeditor/trunk/_samples/html/sample04.html	(revision 1298)
@@ -40,5 +40,5 @@
 function ChangeLanguage( languageCode )
 {
-	window.location.href = window.location.pathname + "?" + languageCode ;
+	document.location.href = document.location.href.replace( /\?.*$/, '' ) + "?" + languageCode ;
 }
 
@@ -72,5 +72,5 @@
 // This is usefull only for these samples. A real application should use something like this:
 // oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
+var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
 
 // Get the toolbar from the URL.
Index: /FCKeditor/trunk/_samples/html/sample05.html
===================================================================
--- /FCKeditor/trunk/_samples/html/sample05.html	(revision 1297)
+++ /FCKeditor/trunk/_samples/html/sample05.html	(revision 1298)
@@ -45,5 +45,5 @@
 function ChangeLanguage( languageCode )
 {
-	window.location.href = window.location.pathname + "?" + languageCode ;
+	document.location.href = document.location.href.replace( /\?.*$/, '' ) + "?" + languageCode ;
 }
 
@@ -78,5 +78,5 @@
 // This is usefull only for these samples. A real application should use something like this:
 // oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
+var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
 
 // Get the skin from the URL.
Index: /FCKeditor/trunk/_samples/html/sample06.html
===================================================================
--- /FCKeditor/trunk/_samples/html/sample06.html	(revision 1297)
+++ /FCKeditor/trunk/_samples/html/sample06.html	(revision 1298)
@@ -52,5 +52,5 @@
 // This is usefull only for these samples. A real application should use something like this:
 // oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
+var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
 
 var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
Index: /FCKeditor/trunk/_samples/html/sample07.html
===================================================================
--- /FCKeditor/trunk/_samples/html/sample07.html	(revision 1297)
+++ /FCKeditor/trunk/_samples/html/sample07.html	(revision 1298)
@@ -44,5 +44,5 @@
 // This is usefull only for these samples. A real application should use something like this:
 // oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
+var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
 
 var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
Index: /FCKeditor/trunk/_samples/html/sample08.html
===================================================================
--- /FCKeditor/trunk/_samples/html/sample08.html	(revision 1297)
+++ /FCKeditor/trunk/_samples/html/sample08.html	(revision 1298)
@@ -155,5 +155,5 @@
 // This is usefull only for these samples. A real application should use something like this:
 // oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
+var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
 
 var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
Index: /FCKeditor/trunk/_samples/html/sample09.html
===================================================================
--- /FCKeditor/trunk/_samples/html/sample09.html	(revision 1297)
+++ /FCKeditor/trunk/_samples/html/sample09.html	(revision 1298)
@@ -69,5 +69,5 @@
 // This is usefull only for these samples. A real application should use something like this:
 // oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
+var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
 
 var oFCKeditor = new FCKeditor( 'FCKeditor_Basic' ) ;
Index: /FCKeditor/trunk/_samples/html/sample10.html
===================================================================
--- /FCKeditor/trunk/_samples/html/sample10.html	(revision 1297)
+++ /FCKeditor/trunk/_samples/html/sample10.html	(revision 1298)
@@ -51,5 +51,5 @@
 // This is usefull only for these samples. A real application should use something like this:
 // oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
+var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
 
 var oFCKeditor = new FCKeditor( 'FCKeditor_1' ) ;
Index: /FCKeditor/trunk/_samples/html/sample11_frame.html
===================================================================
--- /FCKeditor/trunk/_samples/html/sample11_frame.html	(revision 1297)
+++ /FCKeditor/trunk/_samples/html/sample11_frame.html	(revision 1298)
@@ -41,5 +41,5 @@
 // This is usefull only for these samples. A real application should use something like this:
 // oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
+var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
 
 var oFCKeditor = new FCKeditor( 'FCKeditor_1' ) ;
Index: /FCKeditor/trunk/_samples/html/sample12.html
===================================================================
--- /FCKeditor/trunk/_samples/html/sample12.html	(revision 1297)
+++ /FCKeditor/trunk/_samples/html/sample12.html	(revision 1298)
@@ -83,5 +83,5 @@
 // This is usefull only for these samples. A real application should use something like this:
 // oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
+var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
 
 // The following are the default configurations for the Enter and Shift+Enter modes.
Index: /FCKeditor/trunk/_samples/html/sample13.html
===================================================================
--- /FCKeditor/trunk/_samples/html/sample13.html	(revision 1297)
+++ /FCKeditor/trunk/_samples/html/sample13.html	(revision 1298)
@@ -86,5 +86,5 @@
 	// This is usefull only for these samples. A real application should use something like this:
 	// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-	var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
+	var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
 
 	// Create an instance of FCKeditor (using the target textarea as the name).
Index: /FCKeditor/trunk/_samples/html/sample14.html
===================================================================
--- /FCKeditor/trunk/_samples/html/sample14.html	(revision 1297)
+++ /FCKeditor/trunk/_samples/html/sample14.html	(revision 1298)
@@ -46,5 +46,5 @@
 // This is usefull only for these samples. A real application should use something like this:
 // oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
+var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
 
 var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
