function makeSelect(ID,enabled,type,size,width,style) { var output = validateFormat(arguments,false,"LONG",1,40,"plain"); for(var index=0; index < output.length; index++) arguments[index] = output[index]; if(typeof(field[ID])=="undefined") outString = ""; else if(arguments[1]) { var outString = ""; } else { var index=0; for(;index"; outString += ""; outString += ""; outString += "
 " + envelopeWin.fieldStrings[ID][index][0] + " 
"; } return outString; } function makeCombobox(ID,enabled,type,size,maxLength,style,useValue) { var output = validateFormat(arguments,false,"STRING",40,null,"plain",false); for(var index=0; index < output.length; index++) arguments[index] = output[index]; var outString = ""; if(typeof(field[ID])=="undefined") outString = ""; else { if(typeof(field[ID]) != "object" || !field[ID].length) field[ID] = new Array(field[ID],-1); field[ID][1] = getComboIndex(ID,field[ID][0],arguments[6]); if(field[ID][1] != -1) field[ID][0] = envelopeWin.fieldStrings[ID][field[ID][1]][0]; outString += ""; outString += "
"; outString += "":" id=\"" + arguments[5] + "\" width=\"100%\"> " + field[ID][0]) + ""; outString += ""; outString += ""; outString += ""; outString += "
"; outString += ""; outString += ""; outString += ""; outString += "
" + (arguments[1]?"0&&arguments[1]?"up.gif":"upgrey.gif") + "\" alt=\"Previous List Element\" vspace=\"1\" border=\"0\">":"") + "
" + (arguments[1]?"\"Next":"") + "
"; } return outString; } function getComboIndex(ID,targetString,useValue) { var matchString = ("" + targetString).toUpperCase(); for(var index=0; index < envelopeWin.fieldStrings[ID].length && envelopeWin.fieldStrings[ID][index][0].toUpperCase() != matchString; index++); if(index==envelopeWin.fieldStrings[ID].length && useValue) for(index=0; index < envelopeWin.fieldStrings[ID].length && envelopeWin.fieldStrings[ID][index][1]!=targetString; index++); if(index==envelopeWin.fieldStrings[ID].length) index = -1; return index; } function comboChange(ID,source,type,useValue) { field[ID][1] = getComboIndex(ID,source.value,useValue); if(field[ID][1] != -1) { source.value = envelopeWin.fieldStrings[ID][field[ID][1]][0]; source.form.elements["FieldID:" + ID + "=" + type].value = envelopeWin.fieldStrings[ID][field[ID][1]][useValue?1:0]; } else source.form.elements["FieldID:" + ID + "=" + type].value = source.value; field[ID][0] = source.value; resetComboListArrows(ID); } function comboListChange(ID,direction,type,useValue) { if(((field[ID][1] + direction) >= 0) && ((srcwin.field[ID][1] + direction) < envelopeWin.fieldStrings[ID].length)) { field[ID][1] += direction; messageForm.elements["Input:" + ID].value = envelopeWin.fieldStrings[ID][field[ID][1]][0]; messageForm.elements["FieldID:" + ID + "=" + type].value = envelopeWin.fieldStrings[ID][field[ID][1]][useValue?1:0]; field[ID][0] = envelopeWin.fieldStrings[ID][field[ID][1]][0]; resetComboListArrows(ID); } } function resetComboListArrows(ID) { if(field[ID][1] < 1 && envelopeWin.document.images["Combo:" + ID + "=UP"].src != "/Images/upgrey.gif") envelopeWin.document.images["Combo:" + ID + "=UP"].src = "/Images/upgrey.gif"; else if(field[ID][1] > 0 && envelopeWin.document.images["Combo:" + ID + "=UP"].src != "/Images/up.gif") envelopeWin.document.images["Combo:" + ID + "=UP"].src = "/Images/up.gif"; if(field[ID][1] >= (envelopeWin.fieldStrings[ID].length-1) && envelopeWin.document.images["Combo:" + ID + "=DOWN"].src != "/Images/downgrey.gif") envelopeWin.document.images["Combo:" + ID + "=DOWN"].src = "/Images/downgrey.gif"; else if(field[ID][1] < (envelopeWin.fieldStrings[ID].length-1) && envelopeWin.document.images["Combo:" + ID + "=DOWN"].src != "/Images/down.gif") envelopeWin.document.images["Combo:" + ID + "=DOWN"].src = "/Images/down.gif"; }