2 function getParam(name, def)
4 var search = top.location.search;
5 search = search.slice(1);
6 var args = search.split("&");
8 for (var i = 0 ; i < args.length ; i++) {
9 var couple = args[i].split("=");
10 if (couple[0] == name) value = couple[1];
12 if (value == "-1") value = def;
16 function getInitialGetterURL()
18 return getParam("getterURL", "http://mowgli.cs.unibo.it:58081/");
21 function getGetterURL()
23 return document.getterURL.elements[0].value;
26 function selectGetterURL(ss)
28 if (ss.selectedIndex == 0) {
29 document.getterURL.elements[0].value = "";
31 //document.getterURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":8081/";
32 document.getterURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value;