3 <SCRIPT language="Javascript">
7 for (num=0;num<parent.calias;num++)
9 stadd=stadd+parent.alist[num]+":=[Expr];";
13 //alert(stadd.charAt(stadd.length-1));
14 if (stadd.charAt(stadd.length-1)==";"){stadd=stadd.substring(0,stadd.length-1);}
16 if (stadd==("{}")){stadd=""}
17 parent.mcq=parent.mcq.replace("<font color=\"#ff0000\">[exp_named_subst]</font>",stadd);
19 //top.qw.document.close();
20 //top.qw.document.write(parent.mcq);
21 parent.parse(parent.mcq);
23 function rimuovialias()
25 //alert(document.aliaslist.elenco.value);
26 if (document.aliaslist.elenco.value!=""){
27 for (num=Number(document.aliaslist.elenco.value);num<parent.calias;num++)
29 //alert (parent.alist[num]+" "+parent.alist[num+1]);
30 parent.alist[num]=parent.alist[num+1];
32 parent.calias--;parent.aggiorna2();}
36 for (num=0;num<parent.calias;num++)
38 document.write("<OPTION value="+num+">"+parent.alist[num]);
39 //alert (parent.alist[num]);
45 if (document.aliaslist.varid.value.indexOf("/")>0)
46 {if (top.uricheck(document.aliaslist.varid.value)==1 && document.aliaslist.varid.value.substring(document.aliaslist.varid.value.length-3,document.aliaslist.varid.value.length)=="var")
49 else {if (top.idcheck(document.aliaslist.varid.value)==1)
54 //alert (document.aliaslist.idi.value+" "+document.aliaslist.uri.value);
55 parent.alist[parent.calias]=document.aliaslist.varid.value
56 //alert (parent.alist[parent.calias]);
57 parent.calias=parent.calias+1;
64 You must now enter a list of named_subst. A named_subst is an <a href="grammarpdq.html#Id" target="gw">Id</a> or a <a href="grammarpdq.html#Varuri" target="gw">Varuri</a> followed by ":=" followed by an expression.
65 You may enter as many of them as you want (even none), after each one click the button "add" or press enter and it will be added. When you are done, click "done".
67 <form name="aliaslist" action="Javascript:addalias();" method="get">
68 <input name="varid" type=text size="35"> Insert here the Id or the Uri you want to add.
69 <input type=submit value="add"><input type=button value="delete selected" onClick="rimuovialias()";>
71 <select name="elenco" size=7>
72 <SCRIPT language=Javascript> listalias(); </SCRIPT>
75 <input type=button value="Done" onClick="invia();" >