function contr() {
if (document.search.tag6002.selectedIndex == 1 == true)
self.document.search.IsisScript.value="Opcat/search3g.xis";
if (document.search.tag6002.selectedIndex == 2 == true)
self.document.search.IsisScript.value="Opcat/search3g.xis";
if (document.search.tag6002.selectedIndex == 3 == true)
self.document.search.IsisScript.value="Opcat/search3g.xis";
if (document.search.tag6002.selectedIndex == 4 == true)
self.document.search.IsisScript.value="Opcat/search3g.xis";
if (document.search.tag6002.selectedIndex == 5 == true)
self.document.search.IsisScript.value="Opcat/search3g.xis";
if (document.search.tag6002.selectedIndex == 6 == true)
self.document.search.IsisScript.value="Opcat/search3g.xis";
if (document.search.tag6002.selectedIndex == 7 == true)
self.document.search.IsisScript.value="Opcat/search4g.xis";
if (document.search.tag6002.selectedIndex == 8 == true)
self.document.search.IsisScript.value="Opcat/search4g.xis";
if (document.search.tag6002.selectedIndex == 9 == true)
self.document.search.IsisScript.value="Opcat/search4g.xis";
if (document.search.tag6002.selectedIndex == 10 == true)
self.document.search.IsisScript.value="Opcat/search4g.xis";
if (document.search.tag6002.selectedIndex == 11 == true)
self.document.search.IsisScript.value="Opcat/search4g.xis";
if (document.search.tag6002.selectedIndex == 12 == true)
self.document.search.IsisScript.value="Opcat/search5g.xis";
if (document.search.tag6002.selectedIndex == 1 == true) self.document.search.tag6100.value="Catop";
if (document.search.tag6002.selectedIndex == 2 == true) self.document.search.tag6100.value="Catop";
if (document.search.tag6002.selectedIndex == 3 == true) self.document.search.tag6100.value="Catop";
if (document.search.tag6002.selectedIndex == 4 == true) self.document.search.tag6100.value="Catop";
if (document.search.tag6002.selectedIndex == 5 == true) self.document.search.tag6100.value="Catop";
if (document.search.tag6002.selectedIndex == 6 == true) self.document.search.tag6100.value="Catop";
if (document.search.tag6002.selectedIndex == 7 == true) self.document.search.tag6100.value="Opcat1";
if (document.search.tag6002.selectedIndex == 8 == true) self.document.search.tag6100.value="Opcat1";
if (document.search.tag6002.selectedIndex == 9 == true) self.document.search.tag6100.value="Opcat1";
if (document.search.tag6002.selectedIndex == 10 == true) self.document.search.tag6100.value="Opcat1";
if (document.search.tag6002.selectedIndex == 11 == true) self.document.search.tag6100.value="Opcat1";
if (document.search.tag6002.selectedIndex == 12 == true) self.document.search.tag6100.value="Opcat2";
if (document.search.tag6001.value == "" == true)
{
alert("no search query has been entered");
return false;
}
if (document.search.tag6002.selectedIndex == 0 == true)
{
alert("no field has been selected");
return false;
}
if ((document.search.tag6000.selectedIndex == 2 == true) &&
((document.search.tag6002.selectedIndex == 7 == true) ||
(document.search.tag6002.selectedIndex == 8 == true) ||
(document.search.tag6002.selectedIndex == 9 == true) ||
(document.search.tag6002.selectedIndex == 10 == true) ||
(document.search.tag6002.selectedIndex == 11 == true) ||
(document.search.tag6002.selectedIndex == 12 == true)))
{
alert("a search has been set up that combines the \"images\"\ntype with a field from the critical contributions area");
return false;
}
var tag6001=document.search.tag6001.value;
var tag5001=document.search.tag5001.value;
tag5001=tag6001;
var ne="";
var v="',.[]()";
var n=" ";
for(i=0; i <= tag5001.length-1; i++)
{
lc=tag5001.substring(i,i+1);
nl=lc;
for (ii=0; ii<=v.length-1; ii++)
{
lv=v.substring(ii,ii+1);
ln=n.substring(ii,ii+1);
if (lc==lv)
nl=ln;
}
ne=ne+nl;
}
document.search.tag5001.value=ne;
var tag8001=document.search.tag8001.value;
tag8001=ne;
var nuovaespressione="";
var vecchia=" ";
var nuova="";
var ttt=" and ttt="
var atm=" and atm=";
var ttm=" and ttm=";
var cp=" and cp=";
var tp=" and tp=";
var cn=" and cn=";
var atb=" and atb=";
var ttb=" and ttb=";
var rv=" and rv=";
var dt=" and dt=";
var ab=" and bs=";
var ttt2=" or ttt="
var atm2=" or atm=";
var ttm2=" or ttm=";
var cp2=" or cp=";
var tp2=" or tp=";
var cn2=" or cn=";
var atb2=" or atb=";
var ttb2=" or ttb=";
var rv2=" or rv=";
var dt2=" or dt=";
var ab2=" or bs=";
if(document.search.tag6003[1].checked)
{troncamento="$";}
else
{troncamento="";}
if ((document.search.tag6002.selectedIndex == 1) && (document.search.tag9004.selectedIndex == 0))
{campo=ttt;}
if ((document.search.tag6002.selectedIndex == 1) && (document.search.tag9004.selectedIndex == 1))
{campo=ttt2;}
if ((document.search.tag6002.selectedIndex == 2) && (document.search.tag9004.selectedIndex == 0))
{campo=atm;}
if ((document.search.tag6002.selectedIndex == 2) && (document.search.tag9004.selectedIndex == 1))
{campo=atm2;}
if ((document.search.tag6002.selectedIndex == 3) && (document.search.tag9004.selectedIndex == 0))
{campo=ttm;}
if ((document.search.tag6002.selectedIndex == 3) && (document.search.tag9004.selectedIndex == 1))
{campo=ttm2;}
if ((document.search.tag6002.selectedIndex == 4) && (document.search.tag9004.selectedIndex == 0))
{campo=cp;}
if ((document.search.tag6002.selectedIndex == 4) && (document.search.tag9004.selectedIndex == 1))
{campo=cp2;}
if ((document.search.tag6002.selectedIndex == 5) && (document.search.tag9004.selectedIndex == 0))
{campo=tp;}
if ((document.search.tag6002.selectedIndex == 5) && (document.search.tag9004.selectedIndex == 1))
{campo=tp;}
if ((document.search.tag6002.selectedIndex == 6) && (document.search.tag9004.selectedIndex == 0))
{campo=cn;}
if ((document.search.tag6002.selectedIndex == 6) && (document.search.tag9004.selectedIndex == 1))
{campo=cn2;}
if ((document.search.tag6002.selectedIndex == 7) && (document.search.tag9004.selectedIndex == 0))
{campo=ttt;}
if ((document.search.tag6002.selectedIndex == 7) && (document.search.tag9004.selectedIndex == 1))
{campo=ttt2;}
if ((document.search.tag6002.selectedIndex == 8) && (document.search.tag9004.selectedIndex == 0))
{campo=atb;}
if ((document.search.tag6002.selectedIndex == 8) && (document.search.tag9004.selectedIndex == 1))
{campo=atb2;}
if ((document.search.tag6002.selectedIndex == 9) && (document.search.tag9004.selectedIndex == 0))
{campo=ttb;}
if ((document.search.tag6002.selectedIndex == 9) && (document.search.tag9004.selectedIndex == 1))
{campo=ttb2;}
if ((document.search.tag6002.selectedIndex == 10) && (document.search.tag9004.selectedIndex == 0))
{campo=rv;}
if ((document.search.tag6002.selectedIndex == 10) && (document.search.tag9004.selectedIndex == 1))
{campo=rv2;}
if ((document.search.tag6002.selectedIndex == 11) && (document.search.tag9004.selectedIndex == 0))
{campo=dt;}
if ((document.search.tag6002.selectedIndex == 11) && (document.search.tag9004.selectedIndex == 1))
{campo=dt2;}
if ((document.search.tag6002.selectedIndex == 12) && (document.search.tag9004.selectedIndex == 0))
{campo=ab;}
if ((document.search.tag6002.selectedIndex == 12) && (document.search.tag9004.selectedIndex == 1))
{campo=ab2;}
for(i=0; i <= tag8001.length-1; i++)
{
letteracercata=tag8001.substring(i,i+1);
nuovalettera=letteracercata;
for (ii=0; ii<=vecchia.length-1; ii++)
{
letteravecchia=vecchia.substring(ii,ii+1);
letteranuova=nuova.substring(ii,ii+1);
if (letteracercata==letteravecchia)
nuovalettera=letteranuova+troncamento+campo;
}
nuovaespressione=nuovaespressione+nuovalettera;
}
document.search.tag8001.value=nuovaespressione;
}
