url = setParam(url,"param.CICURI",escape(uri));
var uri_set_size = document.uri_set_size.elements[0].value;
url = setParam(url,"param.uri_set_size",uri_set_size);
+
+ // The generated URL is sometimes too long for I.E.
+ // So it is now better to remove some unuseful pararams from the inner URL
+ url = dropParam(url,"param.processorURL");
+
url = draw_graphURL + 'draw?url=' + escape(url);
var url2 = setParam(location.href,"keys","MGL,RT");
url2 = setParam(url2,"xmluri",escape(url));
return url.slice(0,url.lastIndexOf('/'));
}
+function dropParam(url,name)
+{
+ var urla = url.split("?");
+ var search = urla[1];
+ var args = search.split("&");
+ var newargs = new Array();
+ var j = 0;
+
+ for (var i = 0 ; i < args.length ; i++) {
+ var couple = args[i].split("=");
+ if (couple[0] != name) {
+ newargs[j] = args[i];
+ j++;
+ }
+ }
+
+ return (urla[0] + "?" + newargs.join("&"));
+}
+
function setParam(url,name,value)
{
var urla = url.split("?");