3 <SCRIPT language="Javascript">
7 for (num=0;num<parent.calias;num++)
9 stadd=stadd+parent.alist[num]+" ";
12 //top.window.open(top.topurl+top.action+"editorpdq.html","sw");
13 top.window.sw.editalias(stadd);
15 parent.mcq=parent.mcq.replace("<font color=\"#ff0000\">[Alias list]</font>","");
17 //top.qw.document.close();
18 //top.qw.document.write(parent.mcq);
19 if (parent.mcq=="<font color=\"#ff0000\">[Alias list]</font> [Expr]")
25 parent.mcq=parent.mcq.replace("<font color=\"#ff0000\">","");
26 parent.mcq=parent.mcq.replace("</font>","");
28 parent.parse(parent.mcq);
30 function rimuovialias()
32 //alert(document.aliaslist.elenco.value);
33 if (document.aliaslist.elenco.value!="")
35 for (var i=document.aliaslist.elenco.length-1;i>-1;i--)
37 if (document.aliaslist.elenco.options[i].selected==true)
39 for (num=i;num<top.aliasglob.length;num++)
41 top.aliasglob[num]=top.aliasglob[num+1];
43 top.aliasglob.length--;
44 //alert ("rimosso "+i);
48 top.window.open(top.topurl+top.action+"aliaslist.html",(top.cw.frames.length==0?"cw":"bw"));
53 for (num=0;num<top.aliasglob.length;num++)
55 document.write("<OPTION value="+num+">"+top.aliasglob[num]);
56 //alert (top.aliasglob[num]);
61 if (top.idcheck(document.aliaslist.idi.value)==1 && top.uricheck(document.aliaslist.uri.value)==1)
63 top.aliasglob[top.aliasglob.length]="alias "+document.aliaslist.idi.value+" "+document.aliaslist.uri.value;
65 top.window.open(top.topurl+top.action+"aliaslist.html",(top.cw.frames.length==0?"cw":"bw"));
70 top.hw.document.close();
71 top.hw.document.write("You must now enter a list of alias. An Alias is the word 'alias' followed by an <a href='grammarpdq.html#Id' target='gw'>Id</a>, followed by an <a href='grammarpdq.html#Uri' target='gw'>Uri</a>.You may enter as many of them as you want, after each one click the button 'add alias' or press enter and it will be added. When you are done, click 'done'.");
77 <form name="aliaslist" action="Javascript:addalias();" method="get">
79 <input name="idi" type=text size="15" value="">
80 <input name="uri" type=text size="45" value="cic:/"><br>
81 <input type=submit value="add alias"><input type=button value="delete selected" onClick="rimuovialias()";><br>
82 <select name="elenco" multiple size=7>
83 <SCRIPT language=Javascript> listalias(); document.aliaslist.idi.focus(); </SCRIPT>
86 <input type=button value="Done" onClick="top.window.open(top.topurl+top.action+'blank.html','hw');top.window.open(top.topurl+top.action+'editorpdq.html','sw');invia();" ><br>