function refreshcicHeader(headerURL)
 {
-// Qui e sotto da modificare per usare UWOBO!!!
    top.cicheader.location.search = "?keys=GP&xmluri=" + headerURL + "¶m.uri=" + top.cicuri;
    return true;
 }
 
 function getCICMathMLKeys()
 {
-  //Important note: do not modify this function without modifying makeURL
   return escape("d_c,C1,G,C2,L");
 }
 
+function getTheoryKeys()
+{
+  return escape("T1,T2,L,E");
+}
+
 function makeURL(type,uri,cicflags,typesflags)
 {
   var mode = top.mode;
           mode_list[5] + "&patch_dtd=" + mode_list[6];
   } else {
     if (format == "html" && type == "cic") {
-      //Important note: do not modify this function without modifying
-      //getCICMathMLKeys
       keys = escape("d_c,C1,HC2,L") +
        "¶m.processorURL=" + escape(processorURL) +
        "¶m.getterURL=" + escape(getterURL) +
        "¶m.keys=" + escape("d_c,C1,HC2,L") +
        "¶m.interfaceURL=" + escape(interfaceURL);
     } else if (format == "html" && type == "theory") {
-      keys = escape("T1,T2,L,E")+
+      keys = getTheoryKeys()+
        "¶m.processorURL=" + escape(processorURL) +
        "¶m.getterURL=" + escape(getterURL) +
        "¶m.draw_graphURL=" + escape(draw_graphURL) +
        "¶m.uri_set_queueURL=" + escape(uri_set_queueURL) +
        "¶m.UNICODEvsSYMBOL=" + escape(UNICODEvsSYMBOL) +
        "¶m.keys=" + escape("d_c,C1,HC2,L") +
-       "¶m.thkeys=" + escape("T1,T2,L,E") +
+       "¶m.thkeys=" + getTheoryKeys() +
        "¶m.embedkeys=" + escape("d_c,TC1,HC2,L") +
        "¶m.doctype-public="+escape("-//W3C//DTD XHTML 1.0 Transitional//EN")+
        "¶m.encoding=iso-8859-1" +
        "¶m.interfaceURL=" + escape(interfaceURL) +
        "¶m.thinterfaceURL=" + escape(thinterfaceURL);
     } else if (format == "mml_pres" && type == "cic") {
-      keys = escape("d_c,C1,G,C2,L")+
+      keys = getCICMathMLKeys()+
        "¶m.processorURL=" + escape(processorURL) +
        "¶m.getterURL=" + escape(getterURL) +
        "¶m.draw_graphURL=" + escape(draw_graphURL) +
        "¶m.doctype-public=" +
        "¶m.encoding=" +
        "¶m.media-type=text/xml" +
-       "¶m.keys=" + escape("d_c,C1,G,C2,L") +
+       "¶m.keys=" + getCICMathMLKeys() +
        "¶m.interfaceURL=" + escape(interfaceURL);
     } else if (format == "mml_pres" && type == "theory") {
-      keys = escape("T1,T2,L,E")+
-       "¶m.keys=d_c,C1,G,C2,L" +
-       "¶m.thkeys=T1,T2,L,E" +
-       "¶m.embedkeys=d_c,TC1,G,C2,L" +
+      keys = getTheoryKeys()+
+       "¶m.keys=" + getCICMathMLKeys() +
+       "¶m.thkeys=" + getTheoryKeys() +
+       "¶m.embedkeys=" + escape(d_c,TC1,G,C2,L) +
        "¶m.processorURL=" + escape(processorURL) +
        "¶m.getterURL=" + escape(getterURL) +
        "¶m.draw_graphURL=" + escape(draw_graphURL) +