2 function getInitialProcessorURL()
4 var search = top.location.search;
5 search = search.slice(1);
6 var args = search.split("&");
7 var processorURL = "-1";
8 for (var i = 0 ; i < args.length ; i++) {
9 var couple = args[i].split("=");
10 if (couple[0] == "processorURL") processorURL = couple[1];
12 if (processorURL == "-1") processorURL = getDefaultParam("processorURL");
16 function getInitialGetterURL()
18 var search = top.location.search;
19 search = search.slice(1);
20 var args = search.split("&");
22 for (var i = 0 ; i < args.length ; i++) {
23 var couple = args[i].split("=");
24 if (couple[0] == "getterURL") getterURL = couple[1];
26 if (getterURL == "-1") getterURL = getDefaultParam("getterURL");
30 function getInitialUNICODEvsSYMBOL()
32 var search = top.location.search;
33 search = search.slice(1);
34 var args = search.split("&");
35 var UNICODEvsSYMBOL = "-1";
36 for (var i = 0 ; i < args.length ; i++) {
37 var couple = args[i].split("=");
38 if (couple[0] == "UNICODEvsSYMBOL") UNICODEvsSYMBOL = couple[1];
40 if (UNICODEvsSYMBOL == "-1") UNICODEvsSYMBOL = getDefaultParam("UNICODEvsSYMBOL");
41 return UNICODEvsSYMBOL;
44 function getInitialUNICODEvsSYMBOLsymbol()
46 if (getInitialUNICODEvsSYMBOL() == "symbol")
52 function getInitialUNICODEvsSYMBOLunicode()
54 if (getInitialUNICODEvsSYMBOL() == "unicode")
60 function getUwoboURL()
62 return document.uwoboURL.elements[0].value;
65 function getGetterURL()
67 return document.getterURL.elements[0].value;
70 function getUNICODEvsSYMBOL()
72 if (document.UNICODEvsSYMBOL.radioUNICODEvsSYMBOL[0].checked)
73 return document.UNICODEvsSYMBOL.radioUNICODEvsSYMBOL[0].value;
75 return document.UNICODEvsSYMBOL.radioUNICODEvsSYMBOL[1].value;
78 function chopSlash(url)
80 return url.slice(0,url.lastIndexOf('/'));
83 function refreshLinks()
85 var search = top.location.search;
86 search = search.slice(1);
87 var args = search.split("&");
88 var cicuri = "-1", theoryuri = "-1", mode = "-1";
89 for (var i = 0 ; i < args.length ; i++) {
90 var couple = args[i].split("=");
92 case "cicuri" : cicuri =couple[1]; break;
93 case "theoryuri" : theoryuri =couple[1]; break;
94 case "mode" : mode =couple[1]; break;
97 if (cicuri == "-1") cicuri = getDefaultParam("cicuri");
98 if (theoryuri == "-1") theoryuri = getDefaultParam("theoryuri");
99 if (mode == "-1") mode = getDefaultParam("mode");
101 document.links[2].search = "?getterURL=" + getGetterURL();
103 document.links[3].search =
104 "?processorURL=" + getUwoboURL() +
105 "&getterURL=" + getGetterURL();
109 document.location.protocol + '//' +
110 document.location.host +
111 document.location.pathname));
112 document.links[4].href =
113 getUwoboURL() + "apply" +
115 "¶m.topurl=" + topurl +
118 topurl + "/html/library/index.html" +
119 "?cicuri=" + cicuri +
120 "&theoryuri=" + theoryuri +
122 "&processorURL=" + getUwoboURL() +
123 "&getterURL=" + getGetterURL() +
124 "&UNICODEvsSYMBOL=" + getUNICODEvsSYMBOL()
128 function selectUwoboURL(ss)
130 if (ss.selectedIndex == 0) {
131 document.uwoboURL.elements[0].value = "";
133 document.uwoboURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":8080/helm/servlet/uwobo/";
139 function selectGetterURL(ss)
141 if (ss.selectedIndex == 0) {
142 document.getterURL.elements[0].value = "";
144 document.getterURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":8081/";