-elenco = new Array(@INTERPRETATIONS@);
-labels = new Array(@INTERPRETATIONS_LABELS@);
-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 listainterpretazioni()
- {
- for (i=0;i<elenco.length;i++)
- {
- document.write("<input type=radio name=interp value="+elenco[i]+"> "+labels[i]+"<br>");
- }
- }
-function invia()
- {
- stringa=top.topurl+"/searchPattern?term="+top.terminecic;
- stringa=stringa+"&aliases="+(top.listaliases==""?"":"%20");
- controllo=stringa.length;
- for (j=0;j<elenco.length;j++)
- {
- if (document.disamb.interp[j].checked)
- {
- stringa=stringa+escape(elenco[j]);
-
- // TODO da implementare nella terza fase
- //top.aliasglob[top.aliasglob.length]=document.disamb.interp[j].value;
-
- //for (k=0;k<top.aliasglob.length;k++){alert(top.aliasglob[k])}
- //top.listaliases=top.listaliases+document.disamb.interp[j].value;//in caso di query ulteriori con la stessa lista di alias
- }
-
- }
- if (stringa.length!=controllo)
- {
- window.open(stringa,"cw");
- }
- else {alert("You must choose one option.");}
- }