function MM_reloadPage(init) {  //reloads the window if Nav4 resized
	if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
		document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//--------------------------//
// Yecheng Huang   06/16    //
// Functions for Clusters   //
//                          //
//--------------------------//
///////////////////////////////////////
//  functions for cl options         //
///////////////////////////////////////
	var clSpeciesList = new Array(); // array for Species
	var clSpeciesIdntList = new Array(); // array for identity threshold of each species
	var clSpeciesIdntLenList = new Array(); // array for lengthThreshold of each identity threshold of each species
	var clSpeciesIdntLenUniCtgList = new Array(); // array for UniCtg of each lengthThreshold of each identity threshold of each species
	var clCountList= new Array();  // array for number of cluster in each species-identityThreshold-lengthThreshold
	var iCLNameNum=0;
	var iBASEFinal = 100000;
	function checkCLName(f){  // function to check validity of Cluster Name
		var speciesSelected = getSelected(f.Species);
		var iSpeciesIndx = getIndx(clSpeciesList,speciesSelected);
		var clIdntLiteralList = clSpeciesIdntList[iSpeciesIndx];
		var identityThresholdSelected = getSelected(f.IdentityThreshold);
		var iIdntIndx = getIndx(clIdntLiteralList, identityThresholdSelected);
		var clLenLiteralList = clSpeciesIdntLenList[iSpeciesIndx][iIdntIndx];
		var lengthThresholdSelected = getSelected(f.LengthThreshold);
		var iLenIndx = getIndx(clLenLiteralList, lengthThresholdSelected);
		var clUniCtgLiteralList=clSpeciesIdntLenUniCtgList[iSpeciesIndx][iIdntIndx][iLenIndx];
		var iCountMC = clCountList[iSpeciesIndx][iIdntIndx][iLenIndx][0];
		var iCountSC = clCountList[iSpeciesIndx][iIdntIndx][iLenIndx][1];
		var iCount = iCountMC;
		if(iCount<iCountSC) iCount = iCountSC;

		// check to make sure Clname = "CL"+speciesSelected+"_"+(1..iCount)
		var sSyntaxMessage = "Please make sure the cluster name is in this format:\n\n"+
												 "\tCL"+speciesSelected+"_<number>\n\n"+
												 "where <number> is either between 1 and "+iCountSC
												 +" or between "+iBASEFinal+" and "+(iBASEFinal+iCountMC)+".\n";
		var sName = f.ClName.value;
		if (sName == 'CL') // unchanged
			return true;
		var iUnderscore = sName.indexOf("_");
		if (iUnderscore < 0)
			return CLNameError(f,sSyntaxMessage);
		var sPrefix = sName.substring(0,2);
		if (sPrefix != 'CL')
			return CLNameError(f,sSyntaxMessage);
		var sSpecies = sName.substring(2,iUnderscore);
		if (sSpecies != speciesSelected)
			return CLNameError(f,sSyntaxMessage);
		if (isNaN(sName.substring(iUnderscore+1)))
			return CLNameError(f,sSyntaxMessage);
		var iNumber = parseInt(sName.substring(iUnderscore+1));
		if (iNumber > (iBASEFinal+iCountMC) || iNumber < 1 || (iNumber>iCountSC && iNumber <= iBASEFinal))
			return CLNameError(f,sSyntaxMessage);
		return true;
	}
	function CLNameError(f,sErrorMsg) {
		alert(sErrorMsg);
		f.ClName.focus();
		return false;
	}
	function validateAndSubmit(f) {
//		if (checkCLName(f)) {
//			f.action = 'clusterBrowse.jsp';
//			f.submit();
//		}
  return checkCLName(f);
	}
	function setClCount(sSpecies, iIdnt, iLen, sUniCtg, iCount,oForm){
		var iSpeciesIndx = getIndx(clSpeciesList, sSpecies);
		var clIdntLiteralList; // array for identity threshold of each species
		var clLenLiteralList; // array for LengthThreshold of each IdentityThreshold
		var clUniCtgLiteralList; // array for Unictg of each lengthThreshold
		if(iSpeciesIndx==-1){
			clSpeciesList[clSpeciesList.length]=sSpecies;
			clIdntLiteralList = new Array();
			clSpeciesIdntList[clSpeciesIdntList.length]=clIdntLiteralList;
			iSpeciesIndx = getIndx(clSpeciesList, sSpecies);
			clSpeciesIdntLenList[iSpeciesIndx] = new Array();
			clSpeciesIdntLenUniCtgList[iSpeciesIndx] = new Array();
			clCountList[iSpeciesIndx] = new Array();
		}
		clIdntLiteralList = clSpeciesIdntList[iSpeciesIndx];
		var iIdntIndx = getIndx(clIdntLiteralList, iIdnt);
		if(iIdntIndx==-1){
			clIdntLiteralList[clIdntLiteralList.length]=iIdnt;
			clSpeciesIdntList[iSpeciesIndx] = clIdntLiteralList;
			clLenLiteralList = new Array();
			iIdntIndx = getIndx(clIdntLiteralList,iIdnt);
			clSpeciesIdntLenList[iSpeciesIndx][iIdntIndx] = new Array();
			clSpeciesIdntLenUniCtgList[iSpeciesIndx][iIdntIndx] = new Array();
			clCountList[iSpeciesIndx][iIdntIndx] = new Array();
		}
		clLenLiteralList = clSpeciesIdntLenList[iSpeciesIndx][iIdntIndx];
		var iLenIndx = getIndx(clLenLiteralList, iLen);
		if(iLenIndx==-1){
			clLenLiteralList[clLenLiteralList.length]=iLen;
			clSpeciesIdntLenList[iSpeciesIndx][iIdntIndx] = clLenLiteralList;
			iLenIndx = getIndx(clLenLiteralList,iLen);
			clSpeciesIdntLenUniCtgList[iSpeciesIndx][iIdntIndx][iLenIndx] = new Array();
			clCountList[iSpeciesIndx][iIdntIndx][iLenIndx] = new Array();
		}
		clUniCtgLiteralList=clSpeciesIdntLenUniCtgList[iSpeciesIndx][iIdntIndx][iLenIndx];
		var iUniCtgIndx = getIndx(clUniCtgLiteralList,sUniCtg);
		if(iUniCtgIndx==-1){
			clUniCtgLiteralList[clUniCtgLiteralList.length]=sUniCtg;
			clSpeciesIdntLenUniCtgList[iSpeciesIndx][iIdntIndx][iLenIndx]=clUniCtgLiteralList;
			iUniCtgIndx = getIndx(clUniCtgLiteralList,sUniCtg);
		}
		clCountList[iSpeciesIndx][iIdntIndx][iLenIndx][iUniCtgIndx]=iCount;
//    setSelection(oForm,0);
	}
	function getIndx(aEntries, sItem){
		var iIndx=-1;
		if(aEntries==null){
			return iIndx;
		}
		for(var i=0;i<aEntries.length; i++){
			if(sItem==aEntries[i]){
				iIndx=i;
				break;
			}
		}
		return iIndx;
	}

//--------------------------//
// Yecheng Huang   06/16    //
// Functions for HTML Event //
//                          //
//--------------------------//
	function addHandlers(f){
		for (var i=0; i<f.elements.length;i++){
			var e = f.elements[i];
			e.onchange = function(){
				var j = getElementInForm(f, this);
				setSelection(f,j);
			}
			e.onclick = function(){
				var j = getElementInForm(f, this);
				setSelection(f,j);
			}
		}
	}

	function getElementInForm(f, e){
		var i = 0;
		for (i=0; i<f.elements.length;i++){
			if (f.elements[i].name == e.name){
				break;
			}
		}
		return i;
	}

	function setSelection(f,i){
		switch (i){
			case 0:
				setIdentitySelection(f);
				break;
			case 1:
				setLengthSelection(f);
				break;
			case 2:
				setUniCtgSelection(f);
				break;
			case 4:
//				validateAndSubmit(f);
				break;
			case 5:
				setUniCtgSelection(f);
				break;
			case 6:
				setCLList(f,0);//'min'
				break;
			case 7:
				setCLList(f,1);//-1000
				break;
			case 9:
				setCLList(f,2);//+1000
				break;
			case 10:
				setCLList(f,3);// 'max'
				break;
			default:
//		 setCLList(f,0);// default, start from 0
				break;
		}
	}
	function setCLList(f,i){
		var baseNum = 0;
		var speciesSelected = getSelected(f.Species);
		var iSpeciesIndx = getIndx(clSpeciesList,speciesSelected);
		var clIdntLiteralList = clSpeciesIdntList[iSpeciesIndx];
		var identityThresholdSelected = getSelected(f.IdentityThreshold);
		var iIdntIndx = getIndx(clIdntLiteralList, identityThresholdSelected);
		var clLenLiteralList = clSpeciesIdntLenList[iSpeciesIndx][iIdntIndx];
		var lengthThresholdSelected = getSelected(f.LengthThreshold);
		var iLenIndx = getIndx(clLenLiteralList, lengthThresholdSelected);
		var clUniCtgLiteralList=clSpeciesIdntLenUniCtgList[iSpeciesIndx][iIdntIndx][iLenIndx];
		var IsUniCtgSelected = getSelected(f.IsUniCtg);
		var iUniCtgIndx = getIndx(clUniCtgLiteralList,IsUniCtgSelected);
		var baseNum=0;
		if (clUniCtgLiteralList[iUniCtgIndx].toUpperCase()== "N"){
			baseNum = iBASEFinal;
		}
		var iCount = clCountList[iSpeciesIndx][iIdntIndx][iLenIndx][iUniCtgIndx];
		var startNum = 0 ;
		switch (i){
			case 0:  // min =0;
				startNum = 0;
				break;
			case 1:
				startNum= (iCLNameNum-1000)>0?(iCLNameNum-1000):0;  // previous-1000 <<
				break;
			case 2:
				startNum= (iCLNameNum+1000)>iCount?iCount:(iCLNameNum+1000);  //previous+1000 >>
				break;
			case 3:
				startNum= iCount; // max
				break;
			default:
				break;
		}
		startNum = (startNum-startNum%1000);
		iCLNameNum = startNum;
		setCLBlock(f,startNum,iCount, baseNum);
	}
	function setCLBlock(f,iStart,iMax,iBase){
		var speciesSelected = getSelected(f.Species);
		var iEnd = (iStart+1000)>iMax?(iMax-iMax%100)+100:(iStart+1000);
		var j=0;
		for(var i=iStart/100; i<iEnd/100;i++){
			var listOption = new Option("CL"+speciesSelected+"_"+(i*100+1+iBase),"CL"+speciesSelected+"_"+(i*100+1+iBase),false,false);
			f.CLBlock.options[j++] = listOption;
		}
		var oldLen = f.CLBlock.length+1;
		for(var i=oldLen; i>=j;i--){
			f.CLBlock.options[i] = null;
		}
		f.ClName.value="CL"+speciesSelected+"_"+(iStart+1+iBase);
	}
	function setSpeciesSelection(f){
		var speciesSelected = getSelected(f.Species);
		var iSpeciesIndx = getIndx(clSpeciesList,speciesSelected);
		var clIdntLiteralList = clSpeciesIdntList[iSpeciesIndx];
		setOptions(f.IdentityThreshold,clIdntLiteralList,clIdntLiteralList);
		setIdentitySelection(f);
	}
	function setIdentitySelection(f){
		var speciesSelected = getSelected(f.Species);
		var iSpeciesIndx = getIndx(clSpeciesList,speciesSelected);
		var clIdntLiteralList = clSpeciesIdntList[iSpeciesIndx];
		var identityThresholdSelected = getSelected(f.IdentityThreshold);
		var iIdntIndx = getIndx(clIdntLiteralList, identityThresholdSelected);
		var clLenLiteralList = clSpeciesIdntLenList[iSpeciesIndx][iIdntIndx];
		setOptions(f.LengthThreshold,clLenLiteralList,clLenLiteralList);
		setLengthSelection(f);
//		f.ClName.value="CL"+speciesSelected+"_";
	}
	function setLengthSelection(f){
		var speciesSelected = getSelected(f.Species);
		var iSpeciesIndx = getIndx(clSpeciesList,speciesSelected);
		var clIdntLiteralList = clSpeciesIdntList[iSpeciesIndx];
		var identityThresholdSelected = getSelected(f.IdentityThreshold);
		var iIdntIndx = getIndx(clIdntLiteralList, identityThresholdSelected);
		var clLenLiteralList = clSpeciesIdntLenList[iSpeciesIndx][iIdntIndx];
		var lengthThresholdSelected = getSelected(f.LengthThreshold);
		var iLenIndx = getIndx(clLenLiteralList, lengthThresholdSelected);
		var clUniCtgLiteralList=clSpeciesIdntLenUniCtgList[iSpeciesIndx][iIdntIndx][iLenIndx];
		var clUniCtgLableList = new Array();
		for(var i=0;i<clUniCtgLiteralList.length;i++){
			if(clUniCtgLiteralList[i].toUpperCase()== "N"){
				clUniCtgLableList[i]= "Mutiple Contigs Cluster, Number > "+iBASEFinal;
			}
			else{
				clUniCtgLableList[i]= "Single Contig Cluster, Number < "+iBASEFinal;
			}
		}
		setOptions(f.IsUniCtg,clUniCtgLiteralList,clUniCtgLableList);
		setUniCtgSelection(f);
	}
	function setUniCtgSelection(f){
		var speciesSelected = getSelected(f.Species);
		var iSpeciesIndx = getIndx(clSpeciesList,speciesSelected);
		var clIdntLiteralList = clSpeciesIdntList[iSpeciesIndx];
		var identityThresholdSelected = getSelected(f.IdentityThreshold);
		var iIdntIndx = getIndx(clIdntLiteralList, identityThresholdSelected);
		var clLenLiteralList = clSpeciesIdntLenList[iSpeciesIndx][iIdntIndx];
		var lengthThresholdSelected = getSelected(f.LengthThreshold);
		var iLenIndx = getIndx(clLenLiteralList, lengthThresholdSelected);
		var clUniCtgLiteralList=clSpeciesIdntLenUniCtgList[iSpeciesIndx][iIdntIndx][iLenIndx];
		var IsUniCtgSelected = getSelected(f.IsUniCtg);
		var iUniCtgIndx = getIndx(clUniCtgLiteralList,IsUniCtgSelected);
		var iCount = clCountList[iSpeciesIndx][iIdntIndx][iLenIndx][iUniCtgIndx];
		var baseNum=1;
		if (clUniCtgLiteralList[iUniCtgIndx].toUpperCase()== "N"){
			baseNum = iBASEFinal;
		}
		f.Min.value = "min "+baseNum;
		f.Max.value = "max "+(iCount+baseNum);
		setCLList(f,0);;
		f.ClName.value="CL"+speciesSelected+"_";
	}
	function getSelected(select){
		var selected = select.options[select.selectedIndex].value;
		return selected;
	}
	function setOptions(select, listValue, listLable){
		var oldLen = select.options.length;
		var listLen = listValue.length;
		for(var i=0; i<listLen;i++){
			var listOption = new Option(listLable[i],listValue[i],false,false);
			select.options[i] = listOption;
		}
		for(var i=listLen; i<oldLen;i++){
			select.options[i]= null;
		}
	}
///////////////////////////////////////
//  functions for cl images         //
///////////////////////////////////////

	function to_CL_detail(sKey,detailF,isChecked){
		detailF.ClusterNameKey.value = sKey;
		if(isChecked){
			detailF.oper.value = "add";
		}
		else {
			detailF.oper.value = "remove";
		}
		detailF.submit();
	}
	function Reset(){
		resetForm.submit();
	}
///////////////////////////////////////
//  functions for cl query           //
//                                   //
//  Yecheng Huang 07/10/03           //
///////////////////////////////////////
	var clCtgMaxList = new Array();
	var clCtgMinList = new Array(); // array for max and min num of Ctgs
																		 // of each lengthThreshold of each identity threshold of each species
	var clIdntLiteralList; // array for identity threshold of each species
	var clLenLiteralList; // array for LengthThreshold of each IdentityThreshold
	var clUniCtgLiteralList; // array for Unictg of each lengthThreshold
	function setClCtgMinMax(sSpecies, iIdnt, iLen, iMaxNumOfCtg, iMinNumOfCtg){
		var iSpeciesIndx = getIndx(clSpeciesList, sSpecies);
		if(iSpeciesIndx==-1){
			clSpeciesList = myPush(sSpecies,clSpeciesList);
			clIdntLiteralList = new Array();
			clSpeciesIdntList= myPush(clIdntLiteralList,clSpeciesIdntList);
			iSpeciesIndx = getIndx(clSpeciesList, sSpecies);
			clSpeciesIdntLenList[iSpeciesIndx] = new Array();
			clCtgMaxList[iSpeciesIndx] = new Array();
			clCtgMinList[iSpeciesIndx] = new Array();
		}
		clIdntLiteralList = clSpeciesIdntList[iSpeciesIndx];
		var iIdntIndx = getIndx(clIdntLiteralList, iIdnt);
		if(iIdntIndx==-1){
			clIdntLiteralList=myPush(iIdnt,clIdntLiteralList);
			clSpeciesIdntList[iSpeciesIndx] = clIdntLiteralList;
			clLenLiteralList = new Array();
			iIdntIndx = getIndx(clIdntLiteralList,iIdnt);
			clSpeciesIdntLenList[iSpeciesIndx][iIdntIndx] = new Array();
			clCtgMaxList[iSpeciesIndx][iIdntIndx]  = new Array();
			clCtgMinList[iSpeciesIndx][iIdntIndx]  = new Array();
		}
		clLenLiteralList = clSpeciesIdntLenList[iSpeciesIndx][iIdntIndx];
		var iLenIndx = getIndx(clLenLiteralList, iLen);
		if(iLenIndx==-1){
			clLenLiteralList = myPush(iLen,clLenLiteralList);
			clSpeciesIdntLenList[iSpeciesIndx][iIdntIndx] = clLenLiteralList;
			iLenIndx = getIndx(clLenLiteralList,iLen);
			clCtgMaxList[iSpeciesIndx][iIdntIndx][iLenIndx]  = iMaxNumOfCtg;
			clCtgMinList[iSpeciesIndx][iIdntIndx][iLenIndx]  = iMinNumOfCtg;
		}
//document.getElementById('SpeciesInfo').innerHTML =
//		"Number of Contigs ("+iMaxNumOfCtg+","+iMinNumOfCtg+") ";
	}
	function setSpanCtgNum(optionsForm){
		var sSpeciesChecked="";
		var iMin=1;
		var iMax=0;
		for (var i = 0; i <optionsForm.Species.length; i++) {
			if(optionsForm.Species[i].checked){
				sSpeciesChecked = optionsForm.Species[i].value;
				for (var j = 0; j <optionsForm.IdentityThreshold.length; j++) {
					if(optionsForm.IdentityThreshold[j].checked){
						var iIdntChecked = optionsForm.IdentityThreshold[j].value;
						for (var k = 0; k <optionsForm.LengthThreshold.length; k++) {
							if(optionsForm.LengthThreshold[k].checked){
								var iLenChecked = optionsForm.LengthThreshold[k].value;
								var iSpeciesIndx = getIndx(clSpeciesList, sSpeciesChecked);
								var iIdntIndx = getIndx(clIdntLiteralList,iIdntChecked);
								var iLenIndx = getIndx(clLenLiteralList,iLenChecked);
								sSpeciesChecked=iSpeciesIndx+","+iIdntIndx+","+iLenIndx+","
								+clCtgMaxList[iSpeciesIndx][iIdntIndx][iLenIndx]
								+","+clCtgMinList[iSpeciesIndx][iIdntIndx][iLenIndx];
								if(clCtgMaxList[iSpeciesIndx][iIdntIndx][iLenIndx]>iMax)
									iMax =clCtgMaxList[iSpeciesIndx][iIdntIndx][iLenIndx];
								if(clCtgMinList[iSpeciesIndx][iIdntIndx][iLenIndx]<iMin)
									iMin = clCtgMinList[iSpeciesIndx][iIdntIndx][iLenIndx];
							}
						}
					}
				}
			}
		}
		document.getElementById('CtgNumLimit').innerHTML =
			"Number of Contigs ("+iMin+","+iMax+") ";
	}
//////////////////////////////
// message for query        //
// YCH 07/25/03             //
//////////////////////////////
	var sInclude = "";
	var sExclude= "";
	var sSpcs = "";
	var iIdentityThreshold =0;
	var iLengthThreshold=0;
	var sQT ="";
	var sLGT = "";
	var iCtgNum = "";
	function addHandlersQ(f){
		for (var i=0; i<f.elements.length;i++){
			var e = f.elements[i];
				e.onchange = function(){
					printMsg(f);
				}
				e.onclick = function(){
					printMsg(f);
//					sMsg = this.name+" "+this.value+" "+this.checked+" "+this.selectedIndex+" "+e.length;
//					document.getElementById('msg').innerHTML ="<font size=2 color = gray>"+sMsg+"</font>";
				}
			}
		}
	function setInExLib(f,e){
		if(e.value=='include' && e.checked){
			sInclude+=e.name+",";
		}
		else if(e.value=='exclude' && e.checked){
			sExclude+=e.name+",";
		}
	}
	function setSpcsLib(f,e){
		if((e.name=='Species')){
				if(e.checked){
					sSpcs +=e.value+",";
				}
				setSpanCtgNum(f);
		}
	}
	function setIdentityThreshold(f,e){
		if(e.name=='IdentityThreshold' && e.checked){
			iIdentityThreshold = e.value;
			setSpanCtgNum(f);
		}
	}
	function setLengthThreshold(f,e){
		if(e.name=='LengthThreshold' && e.checked){
			iLengthThreshold = e.value;
			setSpanCtgNum(f);
		}
	}
	function setQueryType(f,e){
		if(e.name!='queryType') return;
		var i = e.selectedIndex;
		if(e[i].value=='r'){
			sQT = "Query within last result: ";
		}
		else if (e[i].value=='j'){
			sQT = "Query joint with last result: ";
		}
		else if (e[i].value=='f'){
			sQT = "Fresh Query: ";
		}
	}
	function setLGT(f,e){
		if (e.name!='isLessThan') return;
		var i = e.selectedIndex;
		if(e[i].value=='false'){
			sLGT = "at least";
		}
		else {
			sLGT = "at most";
		}
	}
	function printMsg(f){
		sInclude = "";
		sExclude= "";
		sSpcs = "";
		iIdentityThreshold =0;
		iLengthThreshold=0;
		sQT ="";
		sLGT = "";
		iCtgNum = "";
		for (var i=0; i<f.elements.length;i++){
			var e = f.elements[i];
			setInExLib(f,e);
			setSpcsLib(f,e);
			setIdentityThreshold(f,e);
			setLengthThreshold(f,e);
			setQueryType(f,e);
			setLGT(f,e);
		}
		var sMsg = "";
		var sInclude0="";
		var sExclude0="";
		if(sInclude.length>0){
			sInclude0 = "libraries include "+sInclude.substring(0,sInclude.length-1)+"; ";
		}
		if(sExclude.length>0){
			sExclude0 = "exclude "+sExclude.substring(0,sExclude.length-1)+"; ";
		}
		var sEXIN = " ";
		if(sInclude.length>0 || sExclude.length>0)
      sEXIN = " that ";
		iCtgNum = f.ctgNum.value;
		var sCtg = "contigs";
		if(iCtgNum<2)
			sContig = "contig";
		var sDataSet ="dataset"
		if (sSpcs.length>4)
			sDataSet="datasets";
	  sMsg = sQT+"select clusters from "+sDataSet+" "+sSpcs+sEXIN+sInclude0+sExclude0
			+"with identity threshold "+iIdentityThreshold+", length threshold "+iLengthThreshold
			+" and each cluster has "+sLGT+" "+iCtgNum+" "+sCtg;
		if(sSpcs=="")
		  sMsg = "No dataset selected.";
		document.getElementById('msg').innerHTML ="<font size=2 color = gray>"+sMsg+"</font>";
	}

//////////////////////////////
// check for query          //
// YCH 07/25/03             //
//////////////////////////////
	function checkQuery(f){  // function to check validity of query
          for (var i=0; i < f.elements.length; i++) {
            if (f.elements[i].name=="Species" && f.elements[i].checked==true)
              return true;
          }
          alert("Please select at least one species.");
          return false;
	}

	function validateAndSubmitQ(f) {
		if (checkQuery(f)){
			f.submit();
			var oForm = f;
			oForm.target = 'inputFrame';
			oForm.action = 'clusterQuery.jsp';
			oForm.submit();
		}
	}

	function myPush(item, arr){
		arr[arr.length] = item;
		return arr;
	}
/*
eName= Species, e.type=select-one
eName= IdentityThreshold, e.type=select-one
eName= LengthThreshold, e.type=select-one
eName= IsUniCtg, e.type=select-one
eName= Min, e.type=button
eName= less, e.type=button
eName= CLName_Th, e.type=select-one
eName= greater, e.type=button
eName= Max, e.type=button
eName= submitBlock, e.type=submit
eName= ClName, e.type=text
eName= SubmitCLName, e.type=submit
*/
//--------------------------     //
// Yecheng Huang   07/16/2004    //
// Functions for Clusters        //
//                               //
//-------------------------------//
//////////////////////////////////////////////////////
//  functions for lookup data load waiting          //
//////////////////////////////////////////////////////

	function waitLoading(isTrue){
   if (navigator.appName == "Netscape") {
      with (document['waitLoading'].document) {
        open();
        write("Loading...");
        close();
      }
    }
    else{
    if(isTrue){
        document.getElementById('waitLoading').innerHTML
               +=".";
      }
      else{
        document.getElementById('waitLoading').innerHTML ="";
      }
    }
	}
