--- /dev/null
+/*\r
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben\r
+ *\r
+ * == BEGIN LICENSE ==\r
+ *\r
+ * Licensed under the terms of any of the following licenses at your\r
+ * choice:\r
+ *\r
+ * - GNU General Public License Version 2 or later (the "GPL")\r
+ * http://www.gnu.org/licenses/gpl.html\r
+ *\r
+ * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
+ * http://www.gnu.org/licenses/lgpl.html\r
+ *\r
+ * - Mozilla Public License Version 1.1 or later (the "MPL")\r
+ * http://www.mozilla.org/MPL/MPL-1.1.html\r
+ *\r
+ * == END LICENSE ==\r
+ *\r
+ * Defines the FCKURLParams object that is used to get all parameters\r
+ * passed by the URL QueryString (after the "?").\r
+ */\r
+\r
+// #### URLParams: holds all URL passed parameters (like ?Param1=Value1&Param2=Value2)\r
+var FCKURLParams = new Object() ;\r
+\r
+(function()\r
+{\r
+ var aParams = document.location.search.substr(1).split('&') ;\r
+ for ( var i = 0 ; i < aParams.length ; i++ )\r
+ {\r
+ var aParam = aParams[i].split('=') ;\r
+ var sParamName = decodeURIComponent( aParam[0] ) ;\r
+ var sParamValue = decodeURIComponent( aParam[1] ) ;\r
+\r
+ FCKURLParams[ sParamName ] = sParamValue ;\r
+ }\r
+})();\r