4 <SCRIPT language="Javascript">
5 var ambiguousinput="@MSG@";
6 var elenco = new Array(@CHOICES@);
11 top.window.open(top.topurl+top.action+"start.html","qw");
12 top.window.open(top.topurl+top.action+"blank.html","cw");
13 top.window.open(top.topurl+top.action+"blank.html","hw");
14 top.window.open(top.topurl+top.action+"blank.html","gw");
15 top.window.open(top.topurl+top.action+"blank.html","sw");
19 if (confirm("This will erase your query and start a new one. Are you sure you want to do this?"))
24 for (i=0;i<elenco.length;i++)
26 document.write("<input type=checkbox name=uricheck value="+elenco[i]+"> "+elenco[i]+"<br>");
31 vecchiavlds=top.vlds.length;
32 stringa=top.topurl+"/searchPattern?term="+top.terminecic;
33 stringa=stringa+"&aliases="+top.listaliases;
34 stringa=stringa+"&choices=";
36 top.vlds[top.vlds.length]=id;
37 for (j=0;j<elenco.length;j++)
39 if (document.disamb.uricheck[j].checked)
41 top.vlds[top.vlds.length]=document.disamb.uricheck[j].value;
44 top.vlds[top.vlds.length]=";";
45 for (j=0;j<top.vlds.length;j++)
47 choices=choices+(top.vlds[j]==";"?";":escape(top.vlds[j]))+" ";
48 //if (j!=top.vlds.length-1) {stringa=stringa+","}
50 choices=choices.substring(0,choices.length-2);
51 stringa=stringa+escape(choices);
52 if (top.vlds.length==vecchiavlds){alert("You must select at least one of the options.");}
55 window.open(stringa,"cw");
58 function selezionaCostanti() {
59 for (i=0; i<elenco.length; i++) {
60 if (elenco[i].substring(elenco[i].length-4, elenco[i].length) != ".var") {
61 document.disamb.uricheck[i].checked = true;
63 document.disamb.uricheck[i].checked = false;
70 <h3><SCRIPT language="Javascript">document.write(ambiguousinput);</SCRIPT></h3>
71 <br>Please select one or more of the following.
74 <SCRIPT language="Javascript">listauri();</SCRIPT><br>
75 <input type=button value="Ok" onClick="invia();">
76 <input type=button value="Constants Only" onClick="selezionaCostanti();">
77 <input type=button value=Cancel onClick="resetta();">