| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142 | 
							- /*
 
-  *+------------------------------------------------------------------------+
 
-  *| Licensed Materials - Property of IBM
 
-  *| BI and PM: prmt
 
-  *| (C) Copyright IBM Corp. 2002, 2016
 
-  *|
 
-  *| US Government Users Restricted Rights - Use, duplication or
 
-  *| disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
 
-  *|
 
-  *+------------------------------------------------------------------------+
 
- */
 
- ////////////////////////////////////////////////////////////////////
 
- // SelectValue HTML generation functions
 
- ////////////////////////////////////////////////////////////////////
 
- // Function to create a select prompt control
 
- //	sPromptId: The id of the prompt control (String)
 
- //	sFormName: Name of form control to submit selections to the server (String)
 
- //	sParameterName: Name of control element to be submitted to report server (String)
 
- //	sSubmitType: 'default' will submit as a standard form (String)
 
- //				'XML' will convert the submission to XML and submit
 
- //	sAutoSubmitType: specify whether the autosubmit should stay on the same page (reprompt)
 
- //					or move to the next prompt page (prompt)
 
- //					['prompt'|'reprompt'] (String)
 
- //	sSelectUI: UI of control ['listbox'|'checkboxGroup'|'radioGroup'|'dropdown']
 
- //	sColumnName: Column name which control is a prompt of (String)
 
- //	iInitialState: Range controls only. Controls whether to check radio buttons (Integer)
 
- //					RANGE_NO_VALUE will select lowest to highest
 
- //					RANGE_START_VALUE will select from a particular value to highest
 
- //					RANGE_END_VALUE will select from lowest to a particular value
 
- //					RANGE_BOUND_VALUE will select a range
 
- //					RANGE_EQUAL_VALUE will select a single value
 
- //	bDisabled: If control is disabled from user input (Boolean)
 
- //	bRequired: If the control is a required field. (Boolean)
 
- //	bAutoSubmit: If the control is submitted as soon as user selects a value (Boolean)
 
- //	bHideAdornments: Hide icons (e.g. star icon for required controls) (Boolean)
 
- //	bSuppressExtraPromptNames: Force report server to handle multiple prompt controls as a single entity (Boolean)
 
- //								e.g. treat datetime control as a single date time, as opposed to treating date and time independntly
 
- //	bMulti: If control can accomodate more than one value. (Boolean)
 
- //	bRange: If control is a range. (Boolean)
 
- //	sStyle: Style of prompt control. (String)
 
- //	bShowParentDetails: ?
 
- //	iNumSelectOptions: The number of selectOptions known of ahead of time
 
- function genSelectValueHTML(sPromptId, sFormName, sParameterName, sSubmitType, sAutoSubmitType, sSelectUI, sColumnName, iInitialState, bDisabled, bRequired, bAutoSubmit, bHideAdornments, bSuppressExtraPromptNames, bMulti, bRange, sStyle, bShowParentDetails, iNumSelectOptions, bShowGroupingBox)
 
- {
 
- 	var oProperties = sPromptId;
 
- 	if (arguments.length > 1 || typeof oProperties != K_PRMT_sOBJECT)
 
- 	{
 
- 		oProperties = {
 
- 			id: sPromptId,
 
- 			formName: sFormName,
 
- 			parameterName: sParameterName,
 
- 			submitType: sSubmitType,
 
- 			autoSubmitType: sAutoSubmitType,
 
- 			selectUI: sSelectUI,
 
- 			columnName: sColumnName,
 
- 			initialState: iInitialState,
 
- 			disabled: bDisabled,
 
- 			required: bRequired,
 
- 			autoSubmit: bAutoSubmit,
 
- 			hideAdornments: bHideAdornments,
 
- 			supressExtraPromptNames: bSuppressExtraPromptNames,
 
- 			multi: bMulti,
 
- 			range: bRange,
 
- 			style: sStyle,
 
- 			showParentDetails: bShowParentDetails,
 
- 			numSelectOptions: iNumSelectOptions,
 
- 			alwaysShowGroupingBox: bShowGroupingBox };
 
- 	}
 
- 	if (oProperties.multi && oProperties.range)
 
- 	{
 
- 		genSelectValueRangeMultipleHTML(oProperties);
 
- 	}
 
- 	else
 
- 	{
 
- 		if (oProperties.range)
 
- 		{
 
- 			genSelectValueRangeHTML(oProperties);
 
- 		}
 
- 		else
 
- 		{
 
- 			genSelectValueSMHTML(oProperties);
 
- 		}
 
- 	}
 
- }
 
- function cancelScroll()
 
- {
 
- 	window.event.cancelBubble = true;
 
- 	window.event.returnValue = false;
 
- }
 
- function genSelectValueSMHTML(s_PromptId, s_FormName, s_ParameterName, s_SubmitType, s_AutoSubmitType, s_SelectUI, s_ColumnName, b_Disabled, b_Required, b_AutoSubmit, b_MultiSelect, b_HideAdornments, b_SuppressExtraPromptNames, s_Style, b_ShowParentDetails, i_NumSelectOptions, b_alwaysShowGroupingBox)
 
- {
 
- 	var oProperties = s_PromptId;
 
- 	if (arguments.length > 1 || typeof oProperties != K_PRMT_sOBJECT)
 
- 	{
 
- 		oProperties = {
 
- 			id: s_PromptId,
 
- 			formName: s_FormName,
 
- 			parameterName: s_ParameterName,
 
- 			submitType: s_SubmitType,
 
- 			autoSubmitType: s_AutoSubmitType,
 
- 			selectUI: s_SelectUI,
 
- 			columnName: s_ColumnName,
 
- 			disabled: b_Disabled,
 
- 			required: b_Required,
 
- 			autoSubmit: b_AutoSubmit,
 
- 			multi: b_MultiSelect,
 
- 			hideAdornments: b_HideAdornments,
 
- 			supressExtraPromptNames: b_SuppressExtraPromptNames,
 
- 			style: s_Style,
 
- 			showParentDetails: b_ShowParentDetails,
 
- 			numSelectOptions: i_NumSelectOptions,
 
- 			alwaysShowGroupingBox: b_alwaysShowGroupingBox};
 
- 	}
 
- 	var sPromptId = oProperties.id;
 
- 	var sParamName = "_" + oProperties.parameterName;
 
- 	if (!oProperties.supressExtraPromptNames)
 
- 	{
 
- 		sParamName = "p" + sParamName;
 
- 	}
 
- 	if (!verifyPromptId(sPromptId) || !verifyPromptId(sParamName)) {
 
- 		return;
 
- 	}
 
- 	//skin folder
 
- 	var sSkin = (typeof getPromptSkin != K_PRMT_sUNDEFINED ? getPromptSkin() : K_PRMT_sDEFAULTSKIN);
 
- 	var sFormName = oProperties.formName;
 
- 	if (!sFormName) {
 
- 		sFormName = "forms[0]";
 
- 	}
 
- 	var sErrorImg = null;
 
- 	if (!oProperties.hideAdornments)
 
- 	{
 
- 		sErrorImg = "document." + sFormName + ".imgTest" + sPromptId;
 
- 	}
 
- 	var sFormElementName = sParamName;
 
- 	var sStyle = oProperties.style;
 
- 	if (typeof sStyle != K_PRMT_sSTRING)
 
- 	{
 
- 		sStyle = K_PRMT_sEMPTY;
 
- 	}
 
- 	if (oProperties.submitType == K_PRMT_sXML)
 
- 	{
 
- 		sFormElementName = "_oLstChoices" + sPromptId;
 
- 	}
 
- 	sFormElementName = jsEncodeStr(sFormElementName);
 
- 	var sAutoSubmitBehavior = "setTimeout('listBox" + sPromptId + ".checkData()', 100);";
 
- 	if (oProperties.autoSubmit)
 
- 	{
 
- 		sAutoSubmitBehavior = "setTimeout('listBox" + sPromptId + ".autoSubmit()', 100);";
 
- 	}
 
- 	var sWidth = cssParser( oProperties.style, "width" );
 
- 	if( sWidth != K_PRMT_sEMPTY && sWidth.match( /\s*width\s*:\s*\d+%/gi ) )
 
- 	{
 
- 		sWidth = "width:100%;";
 
- 	}
 
- 	else
 
- 	{
 
- 		sWidth = K_PRMT_sEMPTY;
 
- 	}
 
- 	var HTMLOut = K_PRMT_sEMPTY, JSOut = K_PRMT_sEMPTY;
 
- 	if (oProperties.submitType == K_PRMT_sXML)
 
- 	{
 
- 		HTMLOut += genHiddenInputHTML(sFormName, jsEncodeStr(sParamName), K_PRMT_sEMPTY);
 
- 	}
 
- 	HTMLOut += "<fieldset class='clsFieldSet' style='" + sWidth + cssParser(oProperties.style, "background,border,margin,vertical-align,padding,overflow,visibility,float,display,align" + ((oProperties.multi==true||oProperties.range==true)?",width":K_PRMT_sEMPTY)) + "'><table cellpadding='0' cellspacing='0' border='0' style='"+sWidth+"'>" +
 
- 					"<tr>";
 
- 	if (!oProperties.hideAdornments)
 
- 	{
 
- 		if(!sWidth)
 
- 		{
 
- 			HTMLOut += "<td valign='top' width='10px'><table cellpadding='0' cellspacing='0' border='0' width='10' height='20'>";
 
- 			if (oProperties.required)
 
- 			{
 
- 				HTMLOut += "<tr>" +
 
- 					"<td valign='top'><img src='" + sSkin + "/prompting/images/icon_required.gif' class='clsErrorRequired' align='top' height='10' width='10' border='0'/></td>" +
 
- 				"</tr>";
 
- 			}
 
- 			HTMLOut += "<tr>" +
 
- 					"<td valign='middle'><img id='imgTest" + sPromptId + "' name='imgTest" + sPromptId + "' class='clsErrorRequired' src='" + sSkin + "/prompting/images/error_timed_small_off.gif' align='bottom' height='10' width='10' border='0'/></td>" +
 
- 				"</tr></table></td>";
 
- 		}
 
- 	}
 
- 	HTMLOut += "<td style='"+ sWidth + "'>";
 
- 	var sCVObj = getCVInstance(oProperties);
 
- 	if (oProperties.multi)
 
- 	{
 
- 		//// multiselect = true -- selectUI = listBox
 
- 		if (oProperties.selectUI == "listBox")
 
- 		{
 
- 			HTMLOut += "<table cellpadding='0' cellspacing='0' border='0' style='" + sWidth +"'>" +
 
- 						"<tr>" +
 
- 							"<td>" +
 
- 								"<select id='selectList" + sPromptId + "' name=" + '"' + sFormElementName + '"' + " size='11' multiple='multiple' class='clsListControl pv' onchange=\"setTimeout('listBox" + sPromptId + ".checkData()', 100)\" style=\"" + cssParser(sStyle,'color,font,text,height' + ((oProperties.multi==false && oProperties.range==false)?",width":K_PRMT_sEMPTY)) + sWidth + "\"";
 
- 			if (oProperties.disabled)
 
- 			{
 
- 				HTMLOut += " disabled='disabled'";
 
- 			}
 
- 			HTMLOut += "></select></td>" +
 
- 						"</tr>" +
 
- 						"<tr>" +
 
- 							"<td><div id='feedback" + sPromptId + "' class='clsFeedbackWidget' style=\"min-width:200px; width:100%;\"><img class='clsFeedbackSpacer' name='sizer" + sPromptId + "' src='" + sSkin + "/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>" +
 
- 						"</tr>" +
 
- 						"<tr id='selectListBottomRow" + sPromptId + "'";
 
- 			if (oProperties.numSelectOptions == 1 && !oProperties.alwaysShowGroupingBox)
 
- 			{
 
- 				HTMLOut += " style='display:none'";
 
- 			}
 
- 			HTMLOut += ">" +
 
- 							"<td align='right' style=\"width:100%\" >" +
 
- 								"<a href='javascript:listBox" + sPromptId + ".selectAll()' class='clsLink pl'><nobr style=\"text-align:right;vertical-align:super\">" + PMT_UIM_SELECTALL + "</nobr></a>" +
 
- 								" " +
 
- 								"<a href='javascript:listBox" + sPromptId + ".deSelectAll()' class='clsLink pl'><nobr style=\"text-align:right;vertical-align:super\">" + PMT_UIM_DESELECTALL + "</nobr></a>" +
 
- 							"</td>" +
 
- 						"</tr>" +
 
- 						"</table>";
 
- 			JSOut = "this.listBox" + sPromptId + " = new CSelectValueSelectList(document.forms['" + sFormName + "'].elements[" + '"' + sFormElementName + '"' + "], document.forms['" + sFormName + "'].elements[" + '"' + jsEncodeStr(sParamName) + '"' + "], " +
 
- 				sErrorImg + ", " + oProperties.required + ", '" + oProperties.submitType + "', document.getElementById('feedback" + sPromptId + "'),  document.sizer" + sPromptId + ", " +
 
- 				oProperties.disabled + ", '" + oProperties.autoSubmitType + "', '" + sPromptId + "', " + '"' + jsEncodeStr(oProperties.parameterName) + '", "' + getCVId(oProperties) + '");' +
 
- 				sCVObj + "preProcessControlArray = " + sCVObj + "preProcessControlArray.concat('listBox" + sPromptId + "');";
 
- 		}
 
- 		//// multiselect = true -- selectUI = checkboxGroup
 
- 		else if (oProperties.selectUI == "checkboxGroup" || oProperties.selectUI == "radioGroup")
 
- 		{
 
- 			if (sStyle.match(/\bheight\s*:/gi)) {
 
- 				// Height was set for the control, reset max-height for Mozilla-based browsers.
 
- 				sStyle += ";max-height:inherit;";
 
- 			}
 
- 			else
 
- 			{
 
- 				// Height has not been set, set the minimum height for Mozilla-based browsers
 
- 				sStyle += ";min-height:20px;";
 
- 			}
 
- 			HTMLOut +=	"<table cellpadding='0' cellspacing='0' border='0' style='"+sWidth+"'>" +
 
- 						"<tr>" +
 
- 							"<td><div style='" + sWidth + cssParser(oProperties.style,"font,text,color,max-height,min-height,height" + ((oProperties.range==false)?",width":K_PRMT_sEMPTY)) + "' id='selectList" + sPromptId + "'";
 
- 			if (oProperties.numSelectOptions != 1 || oProperties.selectUI != "checkboxGroup" || oProperties.alwaysShowGroupingBox)
 
- 			{
 
- 				HTMLOut += " class='clsCheckBoxList pv'";
 
- 			}
 
- 			HTMLOut += " oldclass='clsCheckBoxList pv'></div></td>" +
 
- 						"</tr>" +
 
- 						"<tr>" +
 
- 							"<td><div id='feedback" + sPromptId + "' class='clsFeedbackWidget' style=\"min-width:200px;\"><img class='clsFeedbackSpacer' name='sizer" + sPromptId + "' src='" + sSkin + "/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>" +
 
- 						"</tr>" +
 
- 						"<tr id='selectListBottomRow" + sPromptId + "'";
 
- 			if (oProperties.numSelectOptions == 1)
 
- 			{
 
- 				HTMLOut += " style='display:none'";
 
- 			}
 
- 			HTMLOut +=	">" +
 
- 							"<td align='right' style=\"width:100%;white-space:nowrap;\">";
 
- 			if (oProperties.showParentDetails) {
 
- 				HTMLOut +=	"<a id='showParentLink" + sPromptId + "' href='javascript:checkBoxList" + sPromptId + ".showParentDetails(true)' class='clsLink pl'><nobr style=\"text-align:left;vertical-align:super\">" + PMT_UIM_SHOWPARENTDETAILS + "</nobr></a>" +
 
- 							" ";
 
- 			}
 
- 			HTMLOut +=		"<a href='javascript:checkBoxList" + sPromptId + ".selectAll()' class='clsLink pl'><nobr style=\"text-align:right;vertical-align:super;\">" + PMT_UIM_SELECTALL + "</nobr></a>" +
 
- 							" " +
 
- 							"<a href='javascript:checkBoxList" + sPromptId + ".deSelectAll()' class='clsLink pl'><nobr style=\"text-align:right;vertical-align:super\">" + PMT_UIM_DESELECTALL + "</nobr></a>" +
 
- 							"</td>" +
 
- 						"</tr>" +
 
- 					"</table>";
 
- 			JSOut = "this.checkBoxList" + sPromptId + " = new CSelectValueInputList('" + sFormName + "', " + '"' + sFormElementName + '"' +
 
- 				", document.forms['" + sFormName + "'].elements[" + '"' + jsEncodeStr(sParamName) + '"' + "], " +
 
- 				sErrorImg + ", " + oProperties.required + ", '" + oProperties.submitType + "',  document.getElementById('feedback" + sPromptId + "'), 0, 0, " +
 
- 				oProperties.disabled + ", '" + oProperties.autoSubmitType + "', '" + sPromptId + "', " + oProperties.autoSubmit + ", 'checkbox', 'checkBoxList" + sPromptId + "', " +
 
- 				'"' + jsEncodeStr(oProperties.parameterName) + '", "' + getCVId(oProperties) + '");' +
 
- 				sCVObj + "preProcessControlArray = " + sCVObj + "preProcessControlArray.concat('checkBoxList" + sPromptId + "');";
 
- 		}
 
- 		//// multiselect = true -- selectUI = dropdown
 
- 		else if (oProperties.selectUI == "dropdown")
 
- 		{
 
- 			HTMLOut +=	"<table cellpadding='0' cellspacing='0' border='0' style='" + sWidth +"'>" +
 
- 						"<tr>" +
 
- 							"<td style='"+ sWidth + "'>" +
 
- 								"<select id='selectList" + sPromptId + "' name=" + '"' + sFormElementName + '"' + " class='clsSelectControl  pv' size='1' style='" + cssParser(sStyle,"color,font,text" + ((oProperties.multi==false && oProperties.range==false)?",width":K_PRMT_sEMPTY)) + sWidth +  "'";
 
- 			if (oProperties.disabled)
 
- 			{
 
- 				HTMLOut += " disabled='disabled'";
 
- 			}
 
- 			if (oProperties.autoSubmit)
 
- 			{
 
- 				HTMLOut += " onChange=\"setTimeout('listBox" + sPromptId + ".autoSubmit()', 100)\"";
 
- 			}
 
- 			else
 
- 			{
 
- 				HTMLOut += " onChange=\"setTimeout('listBox" + sPromptId + ".checkData()', 100)\"";
 
- 			}
 
- 			HTMLOut += ">";
 
- 			if (typeof oProperties.columnName == K_PRMT_sSTRING && oProperties.columnName !== K_PRMT_sEMPTY)
 
- 			{
 
- 				HTMLOut +=	"<option value='' selected='selected'>" + oProperties.columnName + "</option>" +
 
- 							"<option value='' >--------------------------------------------</option>";
 
- 			}
 
- 			HTMLOut +=	"</select></td>" +
 
- 						"</tr>" +
 
- 						"<tr>" +
 
- 							"<td><div id='feedback" + sPromptId + "' class='clsFeedbackWidget' style=\"min-width:200px; width:100%;\"><img class='clsFeedbackSpacer' name='sizer" + sPromptId + "' src='" + sSkin + "/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>" +
 
- 						"</tr></table>";
 
- 			JSOut = "this.listBox" + sPromptId + " = new CSelectValueSelectList(document.forms['" + sFormName + "'].elements[" + '"' + sFormElementName + '"' +
 
- 				"], document.forms['" + sFormName + "'].elements[" + '"' + jsEncodeStr(sParamName) + '"' + "], " + sErrorImg + ", " +
 
- 				oProperties.required + ", '" + oProperties.submitType + "', document.getElementById('feedback" + sPromptId + "'), document.sizer" + sPromptId + ", " +
 
- 				oProperties.disabled + ", '" + oProperties.autoSubmitType + "', '" + sPromptId + "', " + '"' + jsEncodeStr(oProperties.parameterName) + '", "' + getCVId(oProperties) + '");' +
 
- 				sCVObj + "preProcessControlArray = " + sCVObj + "preProcessControlArray.concat('listBox" + sPromptId + "');";
 
- 		}
 
- 	}
 
- 	else
 
- 	{
 
- 		//// multiselect = false -- selectUI = dropdown
 
- 		if (oProperties.selectUI == "dropdown")
 
- 		{
 
- 			HTMLOut +=	"<table cellpadding='0' cellspacing='0' border='0' style='"+sWidth+"'>" +
 
- 						"<tr>" +
 
- 							"<td>" +
 
- 								"<select id='selectList" + sPromptId + "' name=" + '"' + sFormElementName + '"' + " class='clsSelectControl  pv' size='1' style='" + sWidth + cssParser(sStyle, "color,font,text,width,height" + ((oProperties.multi==false && oProperties.range==false)?",width":K_PRMT_sEMPTY)) + "'";
 
- 			if (oProperties.disabled)
 
- 			{
 
- 				HTMLOut += " disabled='disabled'";
 
- 			}
 
- 			if (oProperties.autoSubmit)
 
- 			{
 
- 				HTMLOut += " onChange=\"setTimeout('listBox" + sPromptId + ".autoSubmit()', 100)\"";
 
- 				HTMLOut += " onmousewheel=\"cancelScroll()\"";
 
- 			}
 
- 			else
 
- 			{
 
- 				HTMLOut += " onChange=\"setTimeout('listBox" + sPromptId + ".checkData()', 100)\"";
 
- 			}
 
- 			HTMLOut += ">";
 
- 			if (typeof oProperties.columnName == K_PRMT_sSTRING && oProperties.columnName !== K_PRMT_sEMPTY)
 
- 			{
 
- 				HTMLOut +=	"<option value='' selected='selected'>" + oProperties.columnName + "</option>" +
 
- 							"<option value=''>--------------------------------------------</option>";
 
- 			}
 
- 			HTMLOut +=	"</select></td>" +
 
- 						"</tr>" +
 
- 						"<tr>" +
 
- 							"<td><div id='feedback" + sPromptId + "' class='clsFeedbackWidget' style=\"min-width:200px; width:100%\"><img class='clsFeedbackSpacer' name='sizer" + sPromptId + "' src='" + sSkin + "/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>" +
 
- 						"</tr></table>";
 
- 			JSOut = "this.listBox" + sPromptId + " = new CSelectValueSelectList(document.forms['" + sFormName + "'].elements[" + '"' + sFormElementName + '"' +
 
- 				"], document.forms['" + sFormName + "'].elements[" + '"' + jsEncodeStr(sParamName) + '"' + "], " + sErrorImg + ", " +
 
- 				oProperties.required + ", '" + oProperties.submitType + "', document.getElementById('feedback" + sPromptId + "'), document.sizer" + sPromptId + ", " +
 
- 				oProperties.disabled + ", '" + oProperties.autoSubmitType +"', '" + sPromptId + "', " + '"' + jsEncodeStr(oProperties.parameterName) + '", "' + getCVId(oProperties) + '");' +
 
- 				sCVObj + "preProcessControlArray = " + sCVObj + "preProcessControlArray.concat('listBox" + sPromptId + "');";
 
- 		}
 
- 		//// multiselect = false -- selectUI = listBox
 
- 		else if (oProperties.selectUI == 'listBox')
 
- 		{
 
- 			HTMLOut +=	"<table cellpadding='0' cellspacing='0' border='0' style='"+sWidth+"'>" +
 
- 						"<tr>" +
 
- 							"<td style='" + sWidth + "'>" +
 
- 								"<select id='selectList" + sPromptId + "' name=" + '"' + sFormElementName + '"' + " size='11' class='clsListControl  pv' onChange=\"" + sAutoSubmitBehavior + "\" style='"  + sWidth + cssParser(oProperties.style, "color,font,text,height" + ((oProperties.multi==false && oProperties.range==false)?",width":K_PRMT_sEMPTY)) + "'";
 
- 			if (oProperties.disabled)
 
- 			{
 
- 				HTMLOut += " disabled='disabled'";
 
- 			}
 
- 			HTMLOut += ">";
 
- 			if (!oProperties.required && typeof oProperties.columnName == K_PRMT_sSTRING && oProperties.columnName !== K_PRMT_sEMPTY)
 
- 			{
 
- 				HTMLOut +=	"<option value='' selected='selected'>" + oProperties.columnName + "</option>" +
 
- 							"<option value=''>--------------------------------------------</option>";
 
- 			}
 
- 			HTMLOut +=	"</select></td>" +
 
- 						"</tr>" +
 
- 						"<tr>" +
 
- 							"<td><div id='feedback" + sPromptId + "' class='clsFeedbackWidget' style=\"min-width:200px; width:100%;\"><img class='clsFeedbackSpacer' name='sizer" + sPromptId + "' src='" + sSkin + "/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>" +
 
- 						"</tr></table>";
 
- 			JSOut = "this.listBox" + sPromptId + " = new CSelectValueSelectList(document.forms['" + sFormName + "'].elements[" + '"' + sFormElementName + '"' +
 
- 				"], document.forms['" + sFormName + "'].elements[" + '"' + jsEncodeStr(sParamName) + '"' + "], " + sErrorImg + ", " +
 
- 				oProperties.required + ", '" + oProperties.submitType + "',  document.getElementById('feedback" + sPromptId + "'), document.sizer" + sPromptId + ", " +
 
- 				oProperties.disabled + ", '" + oProperties.autoSubmitType +"', '" + sPromptId + "', " + '"' + jsEncodeStr(oProperties.parameterName) + '", "' + getCVId(oProperties) + '");' +
 
- 				sCVObj + "preProcessControlArray = " + sCVObj + "preProcessControlArray.concat('listBox" + sPromptId + "');";
 
- 		}
 
- 		//// multiselect = false -- selectUI = radioGroup
 
- 		else if (oProperties.selectUI == "radioGroup" || oProperties.selectUI == "checkboxGroup")
 
- 		{
 
- 			if (sStyle.match(/\bheight\s*:/gi)) {
 
- 				// Height was set for the control, reset max-height for Mozilla-based browsers.
 
- 				sStyle += ";max-height:inherit;";
 
- 			}
 
- 			HTMLOut +=	"<table cellpadding='0' cellspacing='0' border='0' style='"+sWidth+"'>" +
 
- 						"<tr>" +
 
- 							"<td><div id='selectList" + sPromptId + "' class='clsRadioGroupList pv' oldclass='clsRadioGroupList pv' style='" + cssParser(sStyle, "color,font,text,max-height,height" + ((oProperties.multi==false && oProperties.range==false)?",width":K_PRMT_sEMPTY)) + "'></div></td>" +
 
- 						"</tr>" +
 
- 						"<tr>" +
 
- 							"<td><div id='feedback" + sPromptId + "' class='clsFeedbackWidget' style=\"min-width:200px; width:100%\"><img class='clsFeedbackSpacer' name='sizer" + sPromptId + "' src='" + sSkin + "/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>" +
 
- 						"</tr>";
 
- 			if (!oProperties.required)
 
- 			{
 
- 				HTMLOut +=	"<tr id='selectListBottomRow" + sPromptId + "'";
 
- 				if (oProperties.numSelectOptions == 1)
 
- 				{
 
- 					HTMLOut += " style='display:none'";
 
- 				}
 
- 				HTMLOut +=	">" +
 
- 							"<td align='right' style=\"width:100%\"><a href='javascript:radioList" + sPromptId + ".deSelectAll()' class='clsLink pl'><span style=\"text-align:right;vertical-align:super\"><nobr>" + PMT_UIM_DESELECT + "</nobr></span></a></td>" +
 
- 							"</tr>";
 
- 			}
 
- 			HTMLOut += "</table>";
 
- 			JSOut = "this.radioList" + sPromptId + " = new CSelectValueInputList('" + sFormName + "', " + '"' + sFormElementName + '"' +
 
- 				", document.forms['" + sFormName + "'].elements[" + '"' + jsEncodeStr(sParamName) + '"' + "], " + sErrorImg + ", " +
 
- 				oProperties.required + ", '" + oProperties.submitType + "',  document.getElementById('feedback" + sPromptId + "'), 0, 0, " +
 
- 				oProperties.disabled + ", '" + oProperties.autoSubmitType + "', '" + sPromptId + "', " + oProperties.autoSubmit + ", 'radio', 'radioList" + sPromptId + "', " + '"' +
 
- 				jsEncodeStr(oProperties.parameterName) + '", "' + getCVId(oProperties) + '");' +
 
- 				sCVObj + "preProcessControlArray = " + sCVObj + "preProcessControlArray.concat('radioList" + sPromptId + "');";
 
- 		}
 
- 	}
 
- 	HTMLOut += "</td></tr></table></fieldset>";
 
- 	renderPromptControlHTML("selectValue" + sPromptId, HTMLOut);
 
- 	executePromptControlJS(JSOut);
 
- }
 
- function genSelectValueRangeHTML(s_PromptId, s_FormName, s_ParameterName, s_SubmitType, s_AutoSubmitType, s_SelectUI, s_ColumnName, i_InitialState, b_Disabled, b_Required, b_AutoSubmit, b_MultiSelect, b_HideAdornments, b_SuppressExtraPromptNames, s_Style)
 
- {
 
- 	var oProperties = s_PromptId;
 
- 	if (arguments.length > 1 || typeof oProperties != K_PRMT_sOBJECT)
 
- 	{
 
- 		oProperties = {
 
- 			id: s_PromptId,
 
- 			formName: s_FormName,
 
- 			parameterName: s_ParameterName,
 
- 			submitType: s_SubmitType,
 
- 			autoSubmitType: s_AutoSubmitType,
 
- 			selectUI: s_SelectUI,
 
- 			columnName: s_ColumnName,
 
- 			initialState: i_InitialState,
 
- 			disabled: b_Disabled,
 
- 			required: b_Required,
 
- 			autoSubmit: b_AutoSubmit,
 
- 			multi: b_MultiSelect,
 
- 			hideAdornments: b_HideAdornments,
 
- 			supressExtraPromptNames: b_SuppressExtraPromptNames,
 
- 			style: s_Style };
 
- 	}
 
- 	var sPromptId = oProperties.id;
 
- 	if (!verifyPromptId(sPromptId)) {
 
- 		return;
 
- 	}
 
- 	//skin folder
 
- 	var sSkin = (typeof getPromptSkin != K_PRMT_sUNDEFINED ? getPromptSkin() : K_PRMT_sDEFAULTSKIN);
 
- 	var sFormName = oProperties.formName;
 
- 	if (!sFormName) {
 
- 		sFormName = "forms[0]";
 
- 	}
 
- 	var sParamName = "_" + oProperties.parameterName;
 
- 	if (!oProperties.supressExtraPromptNames)
 
- 	{
 
- 		sParamName = "p" + sParamName;
 
- 	}
 
- 	if (!verifyPromptId(sParamName)) {
 
- 		return;
 
- 	}
 
- 	var sWidth = K_PRMT_sEMPTY;
 
- 	if( cssParser( oProperties.style, 'width' ) != K_PRMT_sEMPTY )
 
- 	{
 
- 		sWidth = 'width:100%;';
 
- 	}
 
- 	var HTMLOut = K_PRMT_sEMPTY;
 
- 	if (oProperties.submitType == K_PRMT_sXML) {
 
- 		HTMLOut += genHiddenInputHTML(sFormName, jsEncodeStr(sParamName), K_PRMT_sEMPTY);
 
- 	}
 
- 	HTMLOut +=
 
- "<fieldset class='clsFieldSet' style='" + cssParser(oProperties.style, gsCSS_DEFAULT_STYLE + ',height') + "'>" +
 
- 	"<table border='0' cellspacing='0' cellpadding='0' style='"+sWidth+"'>" +
 
- 		"<tr>" +
 
- 			"<td class='clsControlLabel pc' colspan='2' nowrap='nowrap'>" + PMT_RNG_FROM + "</td>" +
 
- 		"</tr>" +
 
- 		"<tr>" +
 
- 			"<td nowrap='nowrap'> </td>" +
 
- 			"<td style='"+sWidth+"' nowrap='nowrap' id='tdRangeFrom" + sPromptId + "'>" +
 
- 				"<table cellpadding='0' cellspacing='0' border='0'>" +
 
- 					"<tr>" +
 
- 						"<td valign='top'>";
 
- 	if (!oProperties.required)
 
- 	{
 
- 		HTMLOut +=
 
- 							"<input name='fromValue" + sPromptId + "' type='radio' onclick='range" + sPromptId + ".rangeNotify()'/></td>" +
 
- 						"</td>" +
 
- 						"<td style='padding-left:10px;'" +
 
- 							" onClick='range" + sPromptId + ".fromGotFocus();'" +
 
- 							" onkeyup='range" + sPromptId + ".fromCheckRadioState();'" +
 
- 							" onkeypress='if(event)range" + sPromptId + ".fromKeyPress(event.keyCode);'>";
 
- 	}
 
- 	// selectValue prompt control for start range
 
- 	HTMLOut +=
 
- 							"<div id='selectValuerange_from" + sPromptId + "' style='"+sWidth+"'></div>" +
 
- 						"</td>" +
 
- 					"</tr>";
 
- 	if (!oProperties.required)
 
- 	{
 
- 		HTMLOut +=
 
- 					"<tr>" +
 
- 						"<td nowrap='nowrap' valign='top'>" +
 
- 							"<input value='lowest' name='fromValue" + sPromptId + "' type='radio' checked='true' onclick='range" + sPromptId + ".rangeNotify()'/>" +
 
- 						"</td>" +
 
- 						"<td class='clsReadOnlyText pe' style='padding-left:10px;' onclick=\"document.forms['" + sFormName + "'].elements['fromValue" + sPromptId + "'][1].checked=true;range" + sPromptId + ".rangeNotify()\">" +
 
- 							PMT_RNG_LOWEST_VALUE +
 
- 						"</td>" +
 
- 					"</tr>";
 
- 	}
 
- 	HTMLOut +=
 
- 				"</table>" +
 
- 			"</td>" +
 
- 		"</tr>" +
 
- 		"<tr>" +
 
- 			"<td nowrap='nowrap' colspan='2'> </td>" +
 
- 		"</tr>" +
 
- 		"<tr>" +
 
- 			"<td class='clsControlLabel pc' colspan='2' nowrap='nowrap'>" + PMT_RNG_TO + "</td>" +
 
- 		"</tr>" +
 
- 		"<tr>" +
 
- 			"<td  nowrap='nowrap'> </td>" +
 
- 			"<td style='"+sWidth+"' nowrap='nowrap' id='tdRangeTo" + sPromptId + "'>" +
 
- 				"<table cellpadding='0' cellspacing='0' border='0'>" +
 
- 					"<tr>" +
 
- 						"<td valign='top'>";
 
- 	if (!oProperties.required)
 
- 	{
 
- 		HTMLOut +=
 
- 							"<input name='toValue" + sPromptId + "' type='radio' onclick='range" + sPromptId + ".rangeNotify()'/>" +
 
- 						"</td>" +
 
- 						"<td style='padding-left:10px;'" +
 
- 							" onClick='range" + sPromptId + ".toGotFocus();'" +
 
- 							" onkeyup='range" + sPromptId + ".toCheckRadioState();'" +
 
- 							" onkeypress='range" + sPromptId + ".toKeyPress(event.keyCode);'>";
 
- 	}
 
- 	// selectValue prompt control for end range
 
- 	HTMLOut +=
 
- 							"<div id='selectValuerange_to" + sPromptId + "' style='"+sWidth+"'></div>" +
 
- 						"</td>" +
 
- 					"</tr>";
 
- 	if (!oProperties.required)
 
- 	{
 
- 		HTMLOut +=
 
- 					"<tr>" +
 
- 						"<td nowrap='nowrap'>" +
 
- 							"<input value='highest' name='toValue" + sPromptId + "' type='radio' checked='true' onclick='range" + sPromptId + ".rangeNotify()'/>" +
 
- 						"</td>" +
 
- 						"<td class='clsReadOnlyText pe' style='padding-left:10px;' onclick=\"document.forms['" + sFormName + "'].elements['toValue" + sPromptId + "'][1].checked=true;range" + sPromptId + ".rangeNotify()\">" +
 
- 							PMT_RNG_HIGHEST_VALUE +
 
- 						"</td>" +
 
- 					"</tr>";
 
- 	}
 
- 			HTMLOut +=
 
- 				"</table>" +
 
- 			"</td>" +
 
- 		"</tr>" +
 
- 	"</table>" +
 
- "</fieldset>";
 
- 	renderPromptControlHTML("selectValue" + sPromptId, HTMLOut);
 
- 	var JSOut = "genSelectValueSMHTML(" + generatePromptProperties(oProperties, {
 
- 				id: "range_from" + sPromptId,
 
- 				formName: sFormName,
 
- 				parameterName: "range_from" + oProperties.parameterName,
 
- 				hideAdornments: (oProperties.required==true)?false:true,
 
- 				autoSubmitType: K_PRMT_sEMPTY,
 
- 				selectUI: 'dropdown',
 
- 				autoSubmit: false,
 
- 				style: cssParser(oProperties.style, 'background-color,color,font,text') + sWidth,
 
- 				suppressExtraPromptNames: true}) + ");" +
 
- 			"genSelectValueSMHTML(" + generatePromptProperties(oProperties, {
 
- 				id: "range_to" + sPromptId,
 
- 				formName: sFormName,
 
- 				parameterName: "range_to" + oProperties.parameterName,
 
- 				autoSubmitType: K_PRMT_sEMPTY,
 
- 				hideAdornments: (oProperties.required==true)?false:true,
 
- 				selectUI: 'dropdown',
 
- 				autoSubmit: false,
 
- 				style: cssParser(oProperties.style, 'background-color,color,font,text') + sWidth,
 
- 				suppressExtraPromptNames: true}) + ");";
 
- 	if (oProperties.required)
 
- 	{
 
- 		JSOut += "this.range" + sPromptId + " = new CRange(document.forms['" + sFormName + "'].elements[" + '"' + jsEncodeStr(sParamName) + '"' +
 
- 			"], null, listBoxrange_from" + sPromptId + ", null, null, listBoxrange_to" + sPromptId + ", null, null, true, '" + oProperties.submitType + "', null, '" + getCVId(oProperties) + "');";
 
- 	}
 
- 	else
 
- 	{
 
- 		JSOut += "this.range" + sPromptId + " = new CRange(document.forms['" + sFormName + "'].elements[" + '"' + jsEncodeStr(sParamName) + '"' +
 
- 			"], document.forms['" + sFormName + "'].elements['fromValue" + sPromptId + "'][0], listBoxrange_from" + sPromptId +
 
- 			", null, document.forms['" + sFormName + "'].elements['toValue" + sPromptId + "'][0], listBoxrange_to" + sPromptId +
 
- 			", null, null, false, '" + oProperties.submitType + "', " + oProperties.initialState + ", '" + getCVId(oProperties) + "');";
 
- 	}
 
- 	var sCVObj = getCVInstance(oProperties);
 
- 	JSOut += sCVObj + "preProcessControlArray = " + sCVObj + "preProcessControlArray.concat('range" + sPromptId + "');" +
 
- 			sCVObj + "rangeObserverArray = " + sCVObj + "rangeObserverArray.concat('range" + sPromptId + "');";
 
- 	executePromptControlJS(JSOut);
 
- }
 
- function genSelectValueRangeMultipleHTML(s_PromptId, s_FormName, s_ParameterName, s_SubmitType, s_AutoSubmitType, s_SelectUI, s_ColumnName, i_InitialState, b_Disabled, b_Required, b_AutoSubmit, b_MultiSelect, b_HideAdornments, b_SuppressExtraPromptNames, s_Style, i_NumSelectOptions, b_alwayShowGroupingBox)
 
- {
 
- 	var oProperties = s_PromptId;
 
- 	if (arguments.length > 1 || typeof oProperties != K_PRMT_sOBJECT)
 
- 	{
 
- 		oProperties = {
 
- 			id: s_PromptId,
 
- 			formName: s_FormName,
 
- 			parameterName: s_ParameterName,
 
- 			submitType: s_SubmitType,
 
- 			autoSubmitType: s_AutoSubmitType,
 
- 			selectUI: s_SelectUI,
 
- 			columnName: s_ColumnName,
 
- 			initialState: i_InitialState,
 
- 			disabled: b_Disabled,
 
- 			required: b_Required,
 
- 			autoSubmit: b_AutoSubmit,
 
- 			hideAdornments: b_HideAdornments,
 
- 			supressExtraPromptNames: b_SuppressExtraPromptNames,
 
- 			multi: b_MultiSelect,
 
- 			style: s_Style,
 
- 			numSelectOptions: i_NumSelectOptions,
 
- 			alwayShowGroupingBox: b_ShowGroupingBox};
 
- 	}
 
- 	var sPromptId = oProperties.id;
 
- 	if (!verifyPromptId(sPromptId)) {
 
- 		return;
 
- 	}
 
- 	//skin folder
 
- 	var sSkin = (typeof getPromptSkin != K_PRMT_sUNDEFINED ? getPromptSkin() : K_PRMT_sDEFAULTSKIN);
 
- 	var sFormName = oProperties.formName;
 
- 	if (!sFormName) {
 
- 		sFormName = "forms[0]";
 
- 	}
 
- 	var sParamName = "_" + oProperties.parameterName;
 
- 	if (!oProperties.supressExtraPromptNames)
 
- 	{
 
- 		sParamName = "p" + sParamName;
 
- 	}
 
- 	if (!verifyPromptId(sParamName)) {
 
- 		return;
 
- 	}
 
- 	var sWidth = K_PRMT_sEMPTY;
 
- 	if( cssParser( oProperties.style, 'width' ) != K_PRMT_sEMPTY )
 
- 	{
 
- 		sWidth = 'width:100%;';
 
- 	}
 
- 	var sHTMLOut = K_PRMT_sEMPTY;
 
- 	if (oProperties.submitType == K_PRMT_sXML)
 
- 	{
 
- 		sHTMLOut += genHiddenInputHTML(sFormName, jsEncodeStr(sParamName), K_PRMT_sEMPTY);
 
- 	}
 
- 	sHTMLOut += "<fieldset class='clsFieldSet' style='" + cssParser(oProperties.style, gsCSS_DEFAULT_STYLE)+"'><table cellpadding='0' cellspacing='0' border='0'>" +
 
- 					"<tr>" +
 
- 						// Range prompt control
 
- 						"<td valign='top' id='selectValuer_" + sPromptId + "' style='"+sWidth+"'></td>" +
 
- 						"<td valign='top' class='clsButtonLeftRightPadding'>" +
 
- 							"<table border='0' cellpadding='0' cellspacing='0'>" +
 
- 								"<tr>" +
 
- 									"<td><img src='" + sSkin + "/prompting/images/spacer.gif' alt='' width='1' height='16'/></td>" +
 
- 								"</tr>" +
 
- 							"</table>" +
 
- 							"<table border='0' cellpadding='2' cellspacing='0'>" +
 
- 								"<tr>" +
 
- 									"<td id='getInsertButton" + sPromptId + "'></td>" +
 
- 								"</tr>" +
 
- 								"<tr>" +
 
- 									"<td id='getRemoveButton" + sPromptId + "'></td>" +
 
- 								"</tr>" +
 
- 								"<tr>" +
 
- 									"<td><img src='" + sSkin + "/prompting/images/spacer.gif' alt='' width='90' height='1'/></td>" +
 
- 								"</tr>" +
 
- 							"</table>" +
 
- 						"</td>" +
 
- 						"<td valign='top'>" +
 
- 							"<table border='0' cellspacing='0' cellpadding='0' width='100%' style='height:100%;'>" +
 
- 								"<tr>" +
 
- 									"<td class='clsControlLabel pc'>";
 
- 	if (oProperties.required) {
 
- 		sHTMLOut += "<img src='" + sSkin + "/prompting/images/icon_required.gif' class='clsErrorRequired' align='top' height='10' width='10' border='0'/>";
 
- 	}
 
- 	sHTMLOut += PMT_UIM_CHOICES + "</td>" +
 
- 								"</tr>" +
 
- 								"<tr>" +
 
- 									"<td style='height:100%;' valign='top'>" +
 
- 										"<select name='_oLstChoices" + sPromptId + "'  style='width:100%;" + cssParser(oProperties.style, "color,font,text,height")  + "' class='clsChoicesListbox  pv' multiple='multiple' size='7'  onmouseup=\"setTimeout('multipleRange" + sPromptId + ".checkInsertRemove()', 100);\"  onkeyup='multipleRange" + sPromptId + ".catchDeleteKey(event.keyCode)'></select>" +
 
- 									"</td>" +
 
- 								"</tr>" +
 
- 								"<tr>" +
 
- 									"<td>" +
 
- 										"<div id='multipleRangeFeedback" + sPromptId + "' class='clsFeedbackWidget'>" +
 
- 											"<img name='sizer" + sPromptId + "' src='" + sSkin + "/prompting/images/spacer.gif' alt='' width='100%' height='3'/>" +
 
- 										"</div>" +
 
- 									"</td>" +
 
- 								"</tr>" +
 
- 								"<tr id='selectListBottomRow" + sPromptId + "'";
 
- 	if (oProperties.numSelectOptions == 1 && !oProperties.alwaysShowGroupingBox)
 
- 	{
 
- 		sHTMLOut += " style='display:none'";
 
- 	}
 
- 	sHTMLOut +=					">" +
 
- 									"<td align='right' >" +
 
- 										"<a class='clsLink pl' href='javascript:multipleRange" + sPromptId + ".selectAll()'><nobr>" + PMT_UIM_SELECTALL + "</nobr></a>" +
 
- 										" " +
 
- 										"<a class='clsLink pl' href='javascript:multipleRange" + sPromptId + ".deSelectAll()'><nobr>" + PMT_UIM_DESELECTALL + "</nobr></a>" +
 
- 									"</td>" +
 
- 								"</tr>" +
 
- 							"</table>" +
 
- 						"</td>" +
 
- 					"</tr>" +
 
- 				"</table></fieldset>";
 
- 	renderPromptControlHTML("selectValue" + sPromptId, sHTMLOut);
 
- 	var sCVObj = getCVInstance(oProperties);
 
- 	var JSOut = "genSelectValueRangeHTML(" + generatePromptProperties(oProperties, {
 
- 				id: "r_" + sPromptId,
 
- 				formName: sFormName,
 
- 				parameterName: "r_" + oProperties.parameterName,
 
- 				autoSubmitType: K_PRMT_sEMPTY,
 
- 				selectUI: 'dropdown',
 
- 				required: false,
 
- 				style: cssParser(oProperties.style, 'background,color,font,text') + sWidth,
 
- 				suppressExtraPromptNames: true}) + ");" +
 
- 			"genInsertButtonHTML('" + sPromptId + "', 'multipleRange" + sPromptId + ".insertChoiceList()', 'insertButton" + sPromptId + "');" +
 
- 			"genRemoveButtonHTML('" + sPromptId + "', 'multipleRange" + sPromptId + ".removeChoiceList()', 'removeButton" + sPromptId + "');" +
 
- 			"this.multipleRange" + sPromptId + " = new CMultipleRange(ranger_" + sPromptId + ", document.forms['" + sFormName + "'].elements['_oLstChoices" + sPromptId +
 
- 				"'], document.forms['" + sFormName + "'].elements[" + '"' + jsEncodeStr(sParamName) + '"' + "], " +
 
- 				oProperties.required + ", '" + oProperties.submitType + "', document.getElementById('multipleRangeFeedback" + sPromptId + "'), document.sizer" + sPromptId + ", '" +
 
- 				sPromptId + "', document.getElementById('insertButton" + sPromptId + "'), document.getElementById('removeButton" + sPromptId + "'), '" + getCVId(oProperties) + "');" +
 
- 			sCVObj + "preProcessControlArray = " + sCVObj + "preProcessControlArray.concat('multipleRange" + sPromptId + "');" +
 
- 			sCVObj + "multipleObserverArray = " + sCVObj + "multipleObserverArray.concat('multipleRange" + sPromptId + "');" +
 
- 			"multipleRange" + sPromptId + ".initChoiceList();";
 
- 	executePromptControlJS(JSOut);
 
- }
 
- ////////////////////////////////////////////////////////////////////
 
- // SelectWithSearch HTML generation functions
 
- ////////////////////////////////////////////////////////////////////
 
- // Function to create a select with search prompt control
 
- //
 
- //	s_PromptId: The id of the prompt control (String)
 
- //	s_FormName: Name of form control to submit selections to the server (String)
 
- //	s_ParamName: (String)
 
- //	s_SubmitType: 'default' will submit as a standard form (String)
 
- //				'XML' will convert the submission to XML and submit
 
- //	s_SearchValue: String to search for (String)
 
- //	s_MatchAnywhere: Match string anywhere ['true'] (String)
 
- //	s_MatchAll: Match all of string ['true'] (String)
 
- //	b_MultiSelect: If control can accomodate more than one value. (Boolean)
 
- //	b_Required: If the control is a required field. (Boolean)
 
- //	b_ShowOptions: Show search options (radio buttons) (Boolean)
 
- //	b_NoResultsFound: If no results found (Boolean)
 
- //	b_HideAdornments: Hide icons (e.g. star icon for required controls) (Boolean)
 
- //	s_Style: Style of prompt control (String)
 
- //	s_EditBoxStyle: Style of control edit box (String)
 
- //	s_SearchButtonStyle: Style of control button (String)
 
- //	s_OptionsStyle: Style of control search options (radio buttons) (String)
 
- //	s_ResultsHeaderStyle: Style of search results header (String)
 
- //	s_ResultsListboxStyle: Style of search results list box (String)
 
- //	s_ChoicesHeaderStyle: Style of choices header (String)
 
- //	s_ChoicesListboxStyle: Style of choices list box (String)
 
- //	s_SearchFunction: Allow overriding of default search functionality (String)
 
- //	b_Disabled: Disable controls (Boolean)
 
- //	b_CaseInsensitive: Set search case insensitive or not (Boolean)
 
- //	b_ShowCondition: If the condition drop down is to be shown in the UI (Boolean)
 
- function genSelectSearchHTML (s_PromptId, s_FormName, s_ParameterName, s_SubmitType, s_SearchValue, s_MatchAnywhere, s_MatchAll, b_MultiSelect, b_Required, b_ShowOptions, b_NoResultsFound, b_HideAdornments, s_Style, s_EditBoxStyle, s_SearchButtonStyle, s_OptionsStyle, s_ResultsHeaderStyle, s_ResultsListboxStyle, s_ChoicesHeaderStyle, s_ChoicesListboxStyle, s_SearchFunction, b_Disabled, b_CaseInsensitive, b_UsePromptIdForName, b_ShowCondition)
 
- {
 
- 	var oProperties = s_PromptId;
 
- 	if (arguments.length > 1 || typeof oProperties != K_PRMT_sOBJECT)
 
- 	{
 
- 		oProperties = {
 
- 			id: s_PromptId,
 
- 			formName: s_FormName,
 
- 			parameterName: s_ParameterName,
 
- 			submitType: s_SubmitType,
 
- 			multi: b_MultiSelect,
 
- 			required: b_Required,
 
- 			showOptions: b_ShowOptions,
 
- 			disabled: b_Disabled,
 
- 			hideAdornments: b_HideAdornments,
 
- 			usePromptIdForName: b_UsePromptIdForName,
 
- 			search_caseInsensitive: b_CaseInsensitive,
 
- 			search_criteria: s_SearchValue,
 
- 			search_function: s_SearchFunction,
 
- 			search_matchAnywhere: s_MatchAnywhere,
 
- 			search_matchAll: s_MatchAll,
 
- 			search_showCondition: b_ShowCondition,
 
- 			search_showNoResultFoundString: b_NoResultsFound,
 
- 			style: s_Style,
 
- 			style_choicesHeader: s_ChoicesHeaderStyle,
 
- 			style_choicesListBox: s_ChoicesListboxStyle,
 
- 			style_editBox: s_EditBoxStyle,
 
- 			style_options: s_OptionsStyle,
 
- 			style_resultsHeader: s_ResultsHeaderStyle,
 
- 			style_resultsListBox: s_ResultsListboxStyle,
 
- 			style_searchButton: s_SearchButtonStyle };
 
- 	}
 
- 	var sPromptId = oProperties.id;
 
- 	var sParamName = oProperties.parameterName;
 
- 	if (!verifyPromptId(sPromptId) || !verifyPromptId(sParamName)) {
 
- 		return;
 
- 	}
 
- 	var sPromptVariablePrefix = "_sws_" + jsEncodeStr(oProperties.usePromptIdForName ? sPromptId : sParamName);
 
- 	//skin folder
 
- 	var sSkin = (typeof getPromptSkin != K_PRMT_sUNDEFINED ? getPromptSkin() : K_PRMT_sDEFAULTSKIN);
 
- 	var sFormName = oProperties.formName;
 
- 	if (!sFormName) {
 
- 		sFormName = "forms[0]";
 
- 	}
 
- 	var sFormElementName = "p_" + sParamName;
 
- 	if (oProperties.submitType == K_PRMT_sXML)
 
- 	{
 
- 		sFormElementName = "_sws_" + sParamName + "_selectChoices" + sPromptId;
 
- 	}
 
- 	sFormElementName = jsEncodeStr(sFormElementName);
 
- 	var sStyleShowOptions = "display:none;";
 
- 	if (oProperties.showOptions) {
 
- 		sStyleShowOptions = "display:inline;";
 
- 	}
 
- 	var submitElementName = jsEncodeStr("p_" + sParamName);
 
- 	var sSearchValue = sDecodeU003( oProperties.search_criteria );
 
- 	var HTMLOut = "<fieldset class='clsFieldSet' style='" + cssParser(oProperties.style, gsCSS_DEFAULT_STYLE) + "'>";
 
- 	if (oProperties.submitType == K_PRMT_sXML) {
 
- 		HTMLOut += genHiddenInputHTML(sFormName, submitElementName, K_PRMT_sEMPTY);
 
- 	}
 
- 	if (oProperties.usePromptIdForName) {
 
- 		HTMLOut += genHiddenInputHTML(sFormName, "_promptIdBasedNames", "true");
 
- 	}
 
- 	HTMLOut += "<input type='hidden' name='" + sPromptVariablePrefix + "_submit' value='false'/>" +
 
- 				"<input type='hidden' name='" + sPromptVariablePrefix + "_selectOptions' value=''/>" +
 
- 				"<input type='hidden' name='" + sPromptVariablePrefix + "_showOptions' value='" + oProperties.showOptions + "'/>" +
 
- 				"<input type='hidden' name='" + sPromptVariablePrefix + "_matchAnywhere' value='" + oProperties.search_matchAnywhere + "'/>" +
 
- 				"<input type='hidden' name='" + sPromptVariablePrefix + "_matchAll' value='" + oProperties.search_matchAll + "'/>" +
 
- 				"<input type='hidden' name='" + sPromptVariablePrefix + "_caseInsensitive' value='" + (oProperties.search_caseInsensitive ? "true" : "false") + "'/>" +
 
- 		"<table border='0' cellspacing='0' cellpadding='0' " + (oProperties.disabled ? " disabled='true'" : K_PRMT_sEMPTY) + ">" +
 
- 			"<tr>" +
 
- 				"<td class='clsControlLabel pc'>" + PMT_SSM_KEYWORDSLABEL + "</td>" +
 
- 				"<td/>" +
 
- 			"</tr>" +
 
- 			"<tr>" +
 
- 				"<td class='clsDialogIntroduction pi' nowrap='nowrap' colspan='2'>" + PMT_SSM_KEYWORDTIP + "</td>" +
 
- 				"<td/>" +
 
- 			"</tr>" +
 
- 			"<tr>" +
 
- 				"<td><table border='0' cellspacing='0' cellpadding='0'>" +
 
- 						"<tr>" +
 
- 							"<td><input type='text' name='" + sPromptVariablePrefix + "_searchValue' class='clsSwsEditBox' style=\"" + oProperties.style_editBox + "\" " + (oProperties.disabled ? " disabled='true'" : "value='" + sSearchValue + "' onkeyup='search" + sPromptId + ".checkSearchButtonState();preventSubmitEvent(event)' onkeypress='return search" + sPromptId + ".catchSearch(event);' onblur=\"SetSubmitSetting('prompt')\" onfocus=\"SetSubmitSetting('search')\" onpaste='search" + sPromptId + ".enableSearchButton();preventSubmitEvent();'") + "/></td>" +
 
- 							"<td style=\"white-space: nowrap\">" +
 
- 								"<button type='button' name='searchButton" + sPromptId + "' id='searchButton" + sPromptId + "' class='clsPromptButton' style=\"" + oProperties.style_searchButton + "\"" + (oProperties.disabled ? " disabled='true'" : "onclick='search" + sPromptId + ".startSearch(); return false;' onmouseover=\"this.className='clsPromptButtonOver'\" onmouseout=\"this.className='clsPromptButton'\" onkeydown=\"if (event.keyCode == 13) {search" + sPromptId + ".startSearch(); if (window.ie) {event.cancelBubble = true; event.returnValue = false;} else {event.preventDefault(); event.stopPropagation();} return false;}\" onkeyup=\"if (window.ie) {event.cancelBubble = true; event.returnValue = false;} else {event.preventDefault(); event.stopPropagation();} return false;\" onkeypress=\"if (window.ie) {event.cancelBubble = true; event.returnValue = false;} else {event.preventDefault(); event.stopPropagation();} return false;\"") + ">" + PMT_SSM_SEARCH +
 
- 								"<img src='" + sSkin + "/prompting/images/prompt_search_ani.gif' name='imgBusy" + sPromptId + "' id='imgBusy" + sPromptId + "' alt='' border='0' height='16' width='15' align='top' /></button>" +
 
- 							"</td>" +
 
- 						"</tr>" +
 
- 					"</table></td>" +
 
- 				"<td/>" +
 
- 			"</tr>" +
 
- 			"<tr>" +
 
- 				"<td valign='top' class='clsOptions pe'><table cellpadding='3' cellspacing='0' border='0'>" +
 
- 					"<tr>" +
 
- 						"<td valign='top'><a " + (oProperties.disabled ? "href='#' disabled='true' onclick='return false;'" : "href=\"javascript:search" + sPromptId + ".toggleAdvanced('idAdvancedOptions" + sPromptId + "', 'imgAdvancedArrow" + sPromptId + "')\"") + " class='clsLink pl'>" + PMT_SSM_OPTIONS + "</a></td>" +
 
- 						"<td valign='top'><a " + (oProperties.disabled ? "href='#' disabled='true' onclick='return false;'" : "href=\"javascript:search" + sPromptId + ".toggleAdvanced('idAdvancedOptions" + sPromptId + "', 'imgAdvancedArrow" + sPromptId + "')\"") + "><img id='imgAdvancedArrow" + sPromptId + "' src='" + sSkin + "/prompting/images/prompt_option_expand.gif' width='10' height='10' border='0' alt='' align='top'/></a></td>" +
 
- 					"</tr>" +
 
- 					"</table></td>" +
 
- 				"<td/>" +
 
- 			"</tr>" +
 
- 			"<tr>" +
 
- 				"<td class='clsSwsOptions pe'><table border='0' id='idAdvancedOptions" + sPromptId + "' style=\"" + sStyleShowOptions + "\">" +
 
- 					"<tr>" +
 
- 						"<td class='clsSwsOptions pe' style=\"" + oProperties.style_options + "\" valign='top'>";
 
- 						var v_sChecked = ( (oProperties.search_matchAnywhere != "true" && oProperties.search_matchAll != "true") || (!oProperties.search_matchAnywhere || !oProperties.search_matchAll) ? "checked='checked' " : "" );
 
- 						HTMLOut += "<input type='radio' name='swsOption" + sPromptId + "' id='swsStartAny" + sPromptId + "' " + v_sChecked + (oProperties.disabled ? " disabled='true'" : "onclick=\"search" + sPromptId + ".setOptions('false', 'false')\"") + "/>" + 
 
- 							"</td>" +
 
- 							"<td class='clsSwsOptions pe' style=\"" + oProperties.style_options + "\" valign='top'><label for='swsStartAny" + sPromptId + "'>" + PMT_SSM_STARTANY + "</label></td>" +
 
- 						"</tr>" +
 
- 						"<tr>" +
 
- 							"<td class='clsSwsOptions pe' style=\"" + oProperties.style_options + "\" valign='top'>";
 
- 						v_sChecked = ( oProperties.search_matchAnywhere != "true" && oProperties.search_matchAll == "true" ? "checked='checked' " : "" );
 
- 						HTMLOut += "<input type='radio' name='swsOption" + sPromptId + "' id='swsStartAll" + sPromptId + "' " + v_sChecked + (oProperties.disabled ? " disabled='true'" : "onclick=\"search" + sPromptId + ".setOptions('false', 'true')\"") + "/>" + 
 
- 							"</td>" +
 
- 							"<td class='clsSwsOptions pe' style=\"" + oProperties.style_options + "\" valign='top'><label for='swsStartAll" + sPromptId + "'>" + PMT_SSM_STARTALL + "</label></td>" +
 
- 						"</tr>" +
 
- 						"<tr>" +
 
- 							"<td class='clsSwsOptions pe' style=\"" + oProperties.style_options + "\" valign='top'>";
 
- 						v_sChecked = ( oProperties.search_matchAnywhere == "true" && oProperties.search_matchAll != "true" ? "checked='checked' " : "" );
 
- 						HTMLOut += "<input type='radio' name='swsOption" + sPromptId + "' id='swsMatchAny" + sPromptId + "' " + v_sChecked + (oProperties.disabled ? " disabled='true'" : "onclick=\"search" + sPromptId + ".setOptions('true', 'false')\"") + "/>" + 
 
- 							"</td>" +
 
- 							"<td class='clsSwsOptions pe' style=\"" + oProperties.style_options + "\" valign='top'><label for='swsMatchAny" + sPromptId + "'>" + PMT_SSM_CONTAINANY + "</label></td>" +
 
- 						"</tr>" +
 
- 						"<tr>" +
 
- 							"<td class='clsSwsOptions pe' style=\"" + oProperties.style_options + "\" valign='top'>";
 
- 						v_sChecked = ( oProperties.search_matchAnywhere == "true" && oProperties.search_matchAll == "true" ? "checked='checked' " : "" );
 
- 						HTMLOut += "<input type='radio' name='swsOption" + sPromptId + "' id='swsMatchAll" + sPromptId + "' " + v_sChecked + (oProperties.disabled ? " disabled='true'" : "onclick=\"search" + sPromptId + ".setOptions('true', 'true')\"") + "/>" + 
 
- 							"</td>" +
 
- 							"<td class='clsSwsOptions pe' style=\"" + oProperties.style_options + "\" valign='top'><label for='swsMatchAll" + sPromptId + "'>" + PMT_SSM_CONTAINALL + "</label></td>" +
 
- 						"</tr>" +
 
- 						"<tr>" +
 
- 							"<td class='clsSwsOptions pe' style=\"padding-top:10px;" + oProperties.style_options + "\" valign='top'>";
 
- 							HTMLOut += "<input type='checkbox' name='swsCaseInsensitive" + sPromptId + "' id='swsCaseInsensitive" + sPromptId + "' onclick=\"document.forms['" + sFormName + "'].elements['" + sPromptVariablePrefix + "_caseInsensitive'].value=(document.getElementById('swsCaseInsensitive" + sPromptId + "').checked?'true':'false')\"";
 
- 							if (oProperties.search_caseInsensitive) {
 
- 								HTMLOut += " checked='checked'";
 
- 							}
 
- 							if (oProperties.disabled) {
 
- 								HTMLOut += " disabled='true'";
 
- 							}
 
- 						HTMLOut += "/></td>" +
 
- 							"<td class='clsSwsOptions pe' style=\"padding-top:10px;" + oProperties.style_options + "\" valign='top'><label for='swsCaseInsensitive" + sPromptId + "'>" + PMT_SSM_CASEINSENSITIVE + "</label></td>" +
 
- 					"</tr>" +
 
- 				"</table></td>" +
 
- 				"<td/>" +
 
- 			"</tr>" +
 
- 		"</table>";
 
- 		if (oProperties.search_showNoResultFoundString) {
 
- 			HTMLOut += "<div style=\"margin: 3px\">" + PMT_SSM_NORESULTSFOUND + "</div>";
 
- 		}
 
- 		HTMLOut += "<table border='0' cellpadding='0' cellspacing='0'>" +
 
- 				"<tr>" +
 
- 					"<td><table border='0' cellpadding='2' cellspacing='1' width='100%'>" +
 
- 						"<tr>" +
 
- 							"<td valign='top' width='50%'>";
 
- 		if (oProperties.multi)
 
- 		{
 
- 			HTMLOut += "<table border='0' cellspacing='0' cellpadding='0' width='100%'>" +
 
- 				"<tr>" +
 
- 					"<td class='clsControlLabel pc' style=\"" + oProperties.style_resultsHeader;
 
- 			if (oProperties.search_showCondition)
 
- 			{
 
- 				HTMLOut += ";padding-top:27px";
 
- 			}
 
- 			HTMLOut += "\">" + PMT_SSM_SEARCHRESULTS + "</td>" +
 
- 				"</tr>" +
 
- 				"<tr>" +
 
- 					"<td>" +
 
- 						"<select name='_searchResults" + sPromptId + "' size='9' class='clsSelectControl  pv' style=\"" + oProperties.style_resultsListBox + cssParser(oProperties.style,"height")+ "\" multiple='multiple' onmouseup=\"setTimeout('search" + sPromptId + ".checkInsertRemove()', 100);\" onDblClick='search" + sPromptId + ".insert(search" + sPromptId + ".m_oLstResults, search" + sPromptId + ".m_oLstChoices);'" + (oProperties.disabled ? " disabled='true'" : K_PRMT_sEMPTY) + "></select>" +
 
- 					"</td>" +
 
- 				"</tr>" +
 
- 				"<tr>" +
 
- 					"<td><div style=\"min-width:200px; width:100%\"><img class='clsFeedbackSpacer' name='sizerResults" + sPromptId + "' src='" + sSkin + "/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>" +
 
- 				"</tr>" +
 
- 				"<tr>" +
 
- 					"<td align='right'>" +
 
- 						"<a " + (oProperties.disabled ? "href='#' disabled='true' onclick='return false;'" : "href='javascript:search" + sPromptId + ".selectAll(search" + sPromptId + ".m_oLstResults)'") + " class='clsLink pl'><nobr>" + PMT_UIM_SELECTALL + "</nobr></a>" +
 
- 						" " +
 
- 						"<a " + (oProperties.disabled ? "href='#' disabled='true' onclick='return false;'" : "href='javascript:search" + sPromptId + ".deSelectAll(search" + sPromptId + ".m_oLstResults)'") + " class='clsLink pl'><nobr>" + PMT_UIM_DESELECTALL + "</nobr></a>" +
 
- 					"</td>" +
 
- 				"</tr>" +
 
- 			"</table></td>" +
 
- 			"<td class='clsButtonLeftRightPadding'><table border='0' cellpadding='2' cellspacing='0'>" +
 
- 					"<tr>" +
 
- 						"<td id='getInsertButton" + sPromptId + "'></td>" +
 
- 					"</tr>" +
 
- 					"<tr>" +
 
- 						"<td id='getRemoveButton" + sPromptId + "'></td>" +
 
- 					"</tr>" +
 
- 					"<tr>" +
 
- 						"<td><img src='" + sSkin + "/prompting/images/spacer.gif' alt='' width='90' height='1'/></td>" +
 
- 					"</tr>" +
 
- 				"</table></td>" +
 
- 				"<td align='right' valign='top' width='50%'><table border='0' cellspacing='0' cellpadding='0' width='100%'>" +
 
- 					"<tr>" +
 
- 						"<td class='clsControlLabel pc' style=\"" + oProperties.style_choicesHeader;
 
- 				if (oProperties.search_showCondition)
 
- 				{
 
- 					HTMLOut += ";padding-bottom:5px";
 
- 				}
 
- 				HTMLOut += "\">";
 
- 				if (!oProperties.hideAdornments && oProperties.required) {
 
- 					HTMLOut += "<img src='" + sSkin + "/prompting/images/icon_required.gif' class='clsErrorRequired' align='bottom' height='10' width='10' border='0'/>";
 
- 				}
 
- 				if (oProperties.search_showCondition)
 
- 				{
 
- 					HTMLOut += PMT_UIM_CONDITION + "<br/>" +
 
- 								"<select name='oExcludeSelectedValues'>" +
 
- 									"<option value='false'>" + PMT_UIM_SHOWONLY + "</option>" +
 
- 									"<option value='true'>" + PMT_UIM_DONOTSHOW + "</option>" +
 
- 								"</select>";
 
- 				}
 
- 				else
 
- 				{
 
- 					HTMLOut += PMT_UIM_CHOICES;
 
- 				}
 
- 				HTMLOut += "</td>" +
 
- 					"</tr>" +
 
- 					"<tr>" +
 
- 						"<td>" +
 
- 							"<select name=" + '"' + sFormElementName + '"' + " class='clsSelectControl  pv' style=\"" + oProperties.style_choicesListBox + cssParser(oProperties.style,"height") +"\" size='9' multiple='multiple' onmouseup=\"setTimeout('search" + sPromptId + ".checkInsertRemove()', 100);\" onDblClick='search" + sPromptId + ".remove(search" + sPromptId + ".m_oLstChoices)' onkeyup='search" + sPromptId + ".catchDeleteKey(event.keyCode)'" + (oProperties.disabled ? " disabled='true'" : K_PRMT_sEMPTY) + "></select>" +
 
- 							"</td>" +
 
- 					"</tr>" +
 
- 					"<tr>" +
 
- 						"<td><div id='feedback" + sPromptId + "' class='clsFeedbackWidget' style=\"min-width:200px; width:100%\"><img class='clsFeedbackSpacer' name='sizerChoices" + sPromptId + "' src='" + sSkin + "/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>" +
 
- 					"</tr>" +
 
- 					"<tr>" +
 
- 						"<td align='right'><a " + (oProperties.disabled ? "href='#' disabled='true' onclick='return false;'" : "href='javascript:search" + sPromptId + ".selectAll(search" + sPromptId + ".m_oLstChoices)'") + " class='clsLink pl'><nobr>" + PMT_UIM_SELECTALL + "</nobr></a>" +
 
- 							" " +
 
- 							"<a " + (oProperties.disabled ? "href='#' disabled='true' onclick='return false;'" : "href='javascript:search" + sPromptId + ".deSelectAll(search" + sPromptId + ".m_oLstChoices)'") + " class='clsLink pl'><nobr>" + PMT_UIM_DESELECTALL + "</nobr></a>" +
 
- 						"</td>" +
 
- 					"</tr>" +
 
- 				"</table>";
 
- 		}
 
- 		else
 
- 		{
 
- 			HTMLOut += "<table border='0' cellspacing='0' cellpadding='0' width='100%'>" +
 
- 				"<tr>" +
 
- 					"<td class='clsControlLabel pc' style=\"" + oProperties.style_resultsHeader + "\">";
 
- 						if (!oProperties.hideAdornments && oProperties.required) {
 
- 							HTMLOut += "<img src='" + sSkin + "/prompting/images/icon_required.gif' class='clsErrorRequired' align='top' height='10' width='10' border='0'/>";
 
- 						}
 
- 						HTMLOut += PMT_UIM_CHOICE +
 
- 					"</td>" +
 
- 				"</tr>" +
 
- 				"<tr>" +
 
- 					"<td>" +
 
- 						"<select name=" + '"' + sFormElementName + '" id="' + sFormElementName + '"' + " size='11' class='clsSelectControl  pv' style=\"" + oProperties.style_resultsListBox + "\" onchange='search" + sPromptId + ".checkData()'" + (oProperties.disabled ? " disabled='true'" : K_PRMT_sEMPTY) + "></select>" +
 
- 					"</td>" +
 
- 				"</tr>" +
 
- 				"<tr>" +
 
- 					"<td><div id='feedback" + sPromptId + "' class='clsFeedbackWidget' style=\"min-width:200px; width:100%\"><img class='clsFeedbackSpacer' name='sizerResults" + sPromptId + "' src='" + sSkin + "/prompting/images/spacer.gif' alt='' width='100%' height='3'/></div></td>" +
 
- 				"</tr>" +
 
- 			"</table>";
 
- 		}
 
- 		HTMLOut += "</td></tr></table></td></tr></table></fieldset>";
 
- 	renderPromptControlHTML("selectSearch" + sPromptId, HTMLOut);
 
- 	var JSOut = K_PRMT_sEMPTY;
 
- 	if (oProperties.multi) {
 
- 		JSOut += "genInsertButtonHTML('" + sPromptId + "', 'search" + sPromptId + ".insert(search" + sPromptId + ".m_oLstResults, search" + sPromptId + ".m_oLstChoices)', 'insertButton" + sPromptId + "');";
 
- 		JSOut += "genRemoveButtonHTML('" + sPromptId + "', 'search" + sPromptId + ".remove(search" + sPromptId + ".m_oLstChoices)', 'removeButton" + sPromptId + "');";
 
- 	}
 
- 	JSOut += "this.search" + sPromptId + " = new CSearch(document.forms['" + sFormName + "'].elements[" + '"' + submitElementName + '"' + "],";
 
- 	if (oProperties.multi) {
 
- 		JSOut += " document.forms['" + sFormName + "'].elements['_searchResults" + sPromptId + "'],";
 
- 	}
 
- 	else {
 
- 		JSOut += " document.forms['" + sFormName + "'].elements[" + '"' + sFormElementName + '"' + "],";
 
- 	}
 
- 	JSOut += " document.forms['" + sFormName + "'].elements[" + '"' + sFormElementName + '"' + "]," +
 
- 		" document.forms['" + sFormName + "']," +
 
- 		" document.forms['" + sFormName + "'].elements['" + sPromptVariablePrefix + "_searchValue']," +
 
- 		" document.images['imgBusy" + sPromptId + "']," +
 
- 		" '" + sPromptId + "'," +
 
- 		" document.forms['" + sFormName + "'].elements['" + sPromptVariablePrefix + "_showOptions']," +
 
- 		" document.forms['" + sFormName + "'].elements['" + sPromptVariablePrefix + "_matchAnywhere']," +
 
- 		" document.forms['" + sFormName + "'].elements['" + sPromptVariablePrefix + "_matchAll']," +
 
- 		" " + oProperties.required + "," +
 
- 		" '" + oProperties.submitType + "'," +
 
- 		" document.getElementById('feedback" + sPromptId + "')," +
 
- 		( oProperties.multi ? "true" : "false" ) + "," +
 
- 		" document.forms['" + sFormName + "'].elements['" + sPromptVariablePrefix + "_submit']," +
 
- 		" document.forms['" + sFormName + "'].elements['" + sPromptVariablePrefix + "_selectOptions']," +
 
- 		" document.sizerResults" + sPromptId + "," +
 
- 		( oProperties.multi ? " document.sizerChoices" + sPromptId : "null" ) + "," +
 
- 		" document.getElementById('searchButton" + sPromptId + "')," +
 
- 		( oProperties.multi ? " document.getElementById('insertButton" + sPromptId + "')" : "''" ) + "," +
 
- 		( oProperties.multi ? " document.getElementById('removeButton" + sPromptId + "')" : "''" ) + "," +
 
- 		" '" + oProperties.search_function + "', '" + jsEncodeStr(sParamName) +"', '" + getCVId(oProperties) + "');";
 
- 	var sCVObj = getCVInstance(oProperties);
 
- 	JSOut += sCVObj + "preProcessControlArray = " + sCVObj + "preProcessControlArray.concat('search" + sPromptId + "');";
 
- 	executePromptControlJS(JSOut);
 
- }
 
 
  |