return document.UNICODEvsSYMBOL.radioUNICODEvsSYMBOL[1].value;
}
+function chopSlash(url)
+{
+ return url.slice(0,url.lastIndexOf('/'));
+}
+
function refreshLinks()
{
var search = top.location.search;
if (theoryuri == "-1") theoryuri = getDefaultParam("theoryuri");
if (mode == "-1") mode = getDefaultParam("mode");
- document.links[2].search = "?getterURL=" + getGetterURL();
-
- document.links[3].search =
- "?processorURL=" + getUwoboURL() +
- "&getterURL=" + getGetterURL();
-
- document.links[4].href = "../html/library/index.html?cicuri=" + cicuri
- + "&theoryuri=" + theoryuri
- + "&mode=" + mode
- + "&processorURL=" + getUwoboURL()
- + "&getterURL=" + getGetterURL()
- + "&UNICODEvsSYMBOL=" + getUNICODEvsSYMBOL();
+ document.links[2].href =
+ document.links[2].protocol + '//' +
+ document.links[2].host +
+ document.links[2].pathname +
+ "?getterURL=" + getGetterURL();
+
+ document.links[3].href =
+ document.links[3].protocol + '//' +
+ document.links[3].host +
+ document.links[3].pathname +
+ "?processorURL=" + getUwoboURL() +
+ "&getterURL=" + getGetterURL();
+
+ var topurl =
+ chopSlash(chopSlash(
+ document.location.protocol + '//' +
+ document.location.host +
+ document.location.pathname));
+ document.links[4].href =
+ getUwoboURL() + "apply" +
+ "?keys=RT" +
+ "¶m.topurl=" + topurl +
+ "&xmluri=" +
+ escape(
+ topurl + "/html/library/index.html" +
+ "?cicuri=" + cicuri +
+ "&theoryuri=" + theoryuri +
+ "&mode=" + mode +
+ "&processorURL=" + getUwoboURL() +
+ "&getterURL=" + getGetterURL() +
+ "&UNICODEvsSYMBOL=" + getUNICODEvsSYMBOL()
+ );
}
function selectUwoboURL(ss)