-var ambiguousinput="@MSG@";
-var elenco = new Array(@CHOICES@);
-var id = "@ID@";
-function armageddon()
- {
- top.initialize();
- top.window.open(top.topurl+top.action+"start.html","qw");
- top.window.open(top.topurl+top.action+"blank.html","cw");
- top.window.open(top.topurl+top.action+"blank.html","hw");
- top.window.open(top.topurl+top.action+"blank.html","gw");
- top.window.open(top.topurl+top.action+"blank.html","sw");
- }
-function resetta()
- {
- if (confirm("This will erase your query and start a new one. Are you sure you want to do this?"))
- {armageddon();}
- }
-function listauri()
- {
- for (i=0;i<elenco.length;i++)
- {
- document.write("<input type=checkbox name=uricheck value="+elenco[i]+"> "+elenco[i]+"<br>");
- }
- }
-function invia()
- {
- vecchiavlds=top.vlds.length;
- stringa=top.topurl+"/searchPattern?term="+top.terminecic;
- stringa=stringa+"&aliases="+top.listaliases;
- stringa=stringa+"&choices=";
- var choices = "";
- top.vlds[top.vlds.length]=id;
- for (j=0;j<elenco.length;j++)
- {
- if (document.disamb.uricheck[j].checked)
- {
- top.vlds[top.vlds.length]=document.disamb.uricheck[j].value;
- }
- }
- top.vlds[top.vlds.length]=";";
- for (j=0;j<top.vlds.length;j++)
- {
- choices=choices+(top.vlds[j]==";"?";":escape(top.vlds[j]))+" ";
- //if (j!=top.vlds.length-1) {stringa=stringa+","}
- }
- choices=choices.substring(0,choices.length-2);
- stringa=stringa+escape(choices);
- if (top.vlds.length==vecchiavlds){alert("You must select at least one of the options.");}
- else
- {
- window.open(stringa,"cw");
- }
- }
- function selezionaCostanti() {
- for (i=0; i<elenco.length; i++) {
- if (elenco[i].substring(elenco[i].length-4, elenco[i].length) != ".var") {
- document.disamb.uricheck[i].checked = true;
- } else {
- document.disamb.uricheck[i].checked = false;
- }
- }
- }