3 <SCRIPT language="Javascript">
4 qbf=/[[^\[\]<>]*|<set>|<val>|<boole>]*/
7 window.open(top.ask_uwobo(top.topurl+"/execute?query="+escape(document.edit.qta.value)),"cw");
11 while (fb.indexOf("<")>-1){
12 if (fb.indexOf("<")>0)
14 fb=fb.replace("<","<");
17 while (fb.indexOf(">")>-1){
18 if (fb.indexOf(">")>0)
20 fb=fb.replace(">",">");
23 //while (fb.indexOf("[?")>-1){
24 //fb=fb.replace("[?",">");
29 while (fb.indexOf("<set>")>-1)
31 fb=fb.replace("<set>","[set]");
33 while (fb.indexOf("<val>")>-1)
35 fb=fb.replace("<val>","[val]");
37 while (fb.indexOf("<boole>")>-1)
39 fb=fb.replace("<boole>","[boole]");
45 if (confirm("This will delete your query and restart a new one. Are you sure?")) {
47 top.window.open(top.topurl+top.action+"start.html","qw");
48 top.window.open(top.topurl+top.action+"blank.html","cw");
49 top.window.open(top.topurl+top.action+"blank.html","hw");
50 top.window.open(top.topurl+top.action+"blank.html","gw");
51 top.window.open(top.topurl+top.action+"blank.html","sw");
54 function comprimispazi()
56 stringa=document.edit.qta.value;
57 while (stringa.charAt(0)==" ") {stringa=stringa.substring(1,stringa.length)}
61 if (stringa.charAt(i)==" " && stringa.charAt(i+1)==" ") {
62 //alert("i="+i+"char="+stringa.charAt(i));
63 //alert(stringa.substring(0,i)+"---"+stringa.substring(i+1,stringa.length));
64 stringa=stringa.substring(0,i)+stringa.substring(i+1,stringa.length); i--;}
66 document.edit.qta.value=stringa;
71 fb=document.edit.qta.value;
77 top.storeps=1;top.storepv=1;top.storepb=1;
79 //alert("top.parse ok");
81 top.qw.document.close();
82 top.qw.document.write(top.query);
83 top.aggform(); //alert("aggform ok");
84 top.aggcw();//alert("aggcw ok");
87 function inserisci(mq)
89 document.edit.qta.focus();
90 var TR=document.selection.createRange();
95 else document.edit.qta.value+=mq;
100 document.edit.qta.value=top.cquery;
108 <form name="edit" method="get" action="Javascript:invia()">
109 <textarea name="qta" cols="40" rows="8" onMouseOver="top.help(-2)";>
113 <input type="button" value="set" onMouseOver="top.help(-6)" onClick="inserisci(' <set> ');"><br>
114 <input type="button" value="val" onMouseOver="top.help(-6)" onClick="inserisci(' <val> ');"><br>
115 <input type="button" value="bol" onMouseOver="top.help(-6)" onClick="inserisci(' <boole> ');"><br>
117 <input type="submit" value="Submit the query" onMouseOver="top.help(-4)"></input>
118 <input type="button" value="Restart" onMouseOver="top.help(-5)" onClick="armageddon()"></input>
119 <input type="button" value="Apply Changes" onMouseOver="top.help(-3)" onClick="apply();top.actinput++;top.storia[top.actinput]=top.query;top.numeroazioniannullate=0;"></input>