var f= document.forms[1]; var q= URLprocessor+"?"; var param1=true;
var s= document.forms[0].categField.value;
if (s!="") { q+= "categ="+escape(s); param1=false; }
s= selectedValueInSelectArray(f.linkChoice);
if (s!="")
{ if (param1) { q+= "link="+s; param1=false; } else q+= "&link="+escape(s);
s= f.destCategField.value; q+= "&destCateg="+escape(s);
}
else { s= f.destCategField.value;
if ((s!="#") && (s!=""))
alert("Please clear the destination category field or select a link");
}
if (f.justTheCategChoice[1].checked)
{ if (!param1) { q+="&"; param1=false; }
q+= "recursLink="+escape(selectedValueInSelectArray(f.recursLinkChoice));
var d= f.depthField.value;
if (!isEmpty(d))
{ if (isNaN(d)) alert("Use a number to specify the exploration depth");
else q+= "&depth="+escape(d);
}
}
s= f.creatorField.value; if (!isEmpty(s)) q+= "&creator=" + escape(s);
s= f.nonCreatorField.value; if (!isEmpty(s)) q+= "&nonCreator=" + escape(s);
if (f.formatChoice[0].checked) q+= "&linkAbbreviations";
else if (f.formatChoice[2].checked) q+= "&format=FCG";
else if (f.formatChoice[3].checked) q+= "&format=RDF";
else if (f.formatChoice[4].checked) q+= "&format=CGIF";
var i= f.HTMLchoice.selectedIndex;
if (i==1) q+= "&withHTML=1"; else if(!i) q+= "&withHTML=0";
f.queryField.value= q;
*/
}
//************************* General basic functions *************************
function isEmpty (str) { return ((str=="") || (str==" ")); }
function selectedTextInSelectArray ( selArray )
{ return selArray[selArray.selectedIndex].text;
}
function selectedValueInSelectArray ( selArray )
{ return selArray[selArray.selectedIndex].value;
}
function isIn(c,s) { return (s.indexOf(c) >= 0); }
function isInStrings(str,strArray)
{ for (i in strArray) { if (strArray[i]==str) return true; }
return false;
}
function tr(str) //trace function
{ var nbArg = tr.arguments.length;
for (var i=0; i
Search categories
(documentation here;
"category comparison" tool here)
Selection options