<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<title></title>
	<script type="text/javascript">
		//caller of this window must initialize the LookupItem object
		var m_MainWin=parent;
		if (m_MainWin==self){
			m_MainWin=opener;
		}
		
		var m_objRef = m_MainWin.Record;
		if(!m_objRef){
			m_objRef=m_MainWin;
		}
		if (!m_objRef.m_objLookupItemInfoColl) {
			m_objRef=parent;
		}

		var m_objLookupItemInfo;
		
		if(m_objRef){
			var lngFieldID=m_objRef.g_MqRef.MqStr.GetQueryStringValue(location.search,"FID",false);
			if(isNaN(lngFieldID) == false){
				if(lngFieldID > 0){
					if(m_objRef.m_objLookupItemInfoColl){
						m_objLookupItemInfo=m_objRef.m_objLookupItemInfoColl[lngFieldID];
					}
				}
			}
		}
		
		if(m_objLookupItemInfo){
			var mstrPathPrefix=m_objLookupItemInfo.GlobalObjectRefPathPrefix;
		
			var strRefs='<link rel="stylesheet" href="' + mstrPathPrefix + 'theme/css/censusmain.css" type="text/css">' +
						'<script src="' + mstrPathPrefix + 'js/mqsysutils.js" type="text/javascript"><\/script>' +
						'<script src="' + mstrPathPrefix + 'js/window.js" type="text/javascript"><\/script>' +
						'<script src="' + mstrPathPrefix + 'js/mqlist.js" type="text/javascript"><\/script>' +
						'<script src="' + mstrPathPrefix + 'js/mqformelements.js" type="text/javascript"><\/script>' + 
						'<script src="' + mstrPathPrefix + 'js/tmpllookupitem.js" type="text/javascript"><\/script>' +
						'<script src="' + mstrPathPrefix + 'js/cmqlookupitemint.js" type="text/javascript"><\/script>' +
						'<script src="' + mstrPathPrefix + 'js/cmqsysmsg.js" type="text/javascript"><\/script>' ;	

			document.write(strRefs);
		}		
		
		
	</script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
	
	<script type="text/javascript">
	<!--
		var m_objMqButton=new MqButton();
		var m_MqList=new MqList();
		
		var m_objFormElement=new CMqFormElement();
		
		var m_strCursor;
		
		var m_lngCurrentPage=0;
		var m_lngPageCount=0;
		var m_lngTotalRecord=0;
		
		var m_arrSelectedIDs;
		var m_arrSelectedValues;
		var m_arrSelectedValuesInternal;
		
		var BTN_DISABLE_ITEMS="DisableItems";
		var BTN_ENABLE_ITEMS="EnableItems";
		
		var m_arrCurrentSelectedIDs_FullList=new Array();
		var m_arrCurrentSelectedNames_FullList=new Array();

		var m_arrCurrentSelectedIDs_SelList=new Array();
		var m_arrCurrentSelectedNames_SelList=new Array();
	
		var m_strTableName=g_MqRef.MqStr.GetQueryStringValue(location.search,"TBL",false);
		
		var TBL_USER="tblUser";
		var TBL_DTS="tblDts";
		var FIELD_ID_EMP_RESOURCES=78;
		var FIELD_ID_ROLE_RESOURCES=800;
		var blnAutoComplete = false;
		
		InitAutoComplete(blnAutoComplete);

		//window.resizeTo(800,550);		//-->
	</script>
</head>
				
<body id="SelectItems" class="MainBackgroundWizard" style="overflow:auto; padding:0px;margin:0px;" onload="Form_OnLoad(true);SetListSize(true);" 
onunload="OnBeforeNavigate()" onkeydown="Form_OnKeyPress(event);" onkeypress="Form_OnKeyPress(event);" onresize="SetListSize(true);">

<div style="padding-left:10px; padding-bottom: 5px;margin-left: 10px;margin-top: 10px;" class="NormalText" id="InstructionText"></div>

<div id="divLoading" class="LoadingMessageGrid">
		<p align="center" class="LoadingMessageGridText">Loading, please wait...</p>
</div>

<table id="tblMain" cellpadding="0" cellspacing="0" style="width:100%;height:88%;table-layout:fixed;">
<tbody>
<tr>
	<td style="width:60%;">
	<div style="text-align:left;top:35px;width:100%;height:100%" id="ListContainer">
		<table cellpadding="0" cellspacing="0" border="0" style="width:100%" id="tblListContainer">
									
			<!--Box Top Border -->
			<tr height="19" >
				<td width="14" class="BoxTLeft"></td>
				<td class="BoxTCenter">&#160;</td>
				<td width="14" class="BoxTRight"></td>
			</tr>
			<!--End of Box Top Border -->	
			<tr>
				<td width="14" class="BoxMLeft">&#160;</td>
				<td class="BoxMCenter" valign="top" >
					<table cellpadding="0" cellspacing="0" border="0" style="width:100%;">
					<!-- Contents -->
					<tr>
						<td colspan="3" class="NormalText" style="text-align:left; padding-left:5px; color:#000000">
							Filter values where the
							<a id="SearchField" onclick="MqActuator_OnClick(this);" mqlist="SearchField_List"
                            class="actuator" href="#" mqvalue="0">
                            <script type="text/javascript">
								var strHTML="";
								if(m_strTableName==TBL_USER){
									strHTML='Name';
								}else{
									strHTML='Value';
								}
								document.write(strHTML);
							</script>
							</a>
                            
                        <a id="SearchType" onclick="MqActuator_OnClick(this);" mqlist="SearchType_List"
                            class="actuator" href="#" mqvalue="0">
                            Starts with...
                        </a>
                        
						</td>
					</tr>
					<tr>
						<td align="left" style="padding-left:5px; width:70%">
							<input type="text" name="txtFind" id="txtFind" class="AdminTextBoxWidth" style="width:98%" onmouseover="this.className='AdminTextBoxWidthHover';" onmouseout="this.className='AdminTextBoxWidth';" onkeydown="OnChangeFind(event)" />
						</td>
						<td style="padding-right:15px;padding-left:15px">
							<script type="text/javascript">
								<!--
								m_objMqButton.WriteButtonHTML("Refresh","DoSearch();","Refresh",false,m_objMqButton.STATE_1,"Refresh");
								//-->
							</script>
						</td>
						<td>
							<script type="text/javascript">
								<!--
								//m_objMqButton.WriteButtonHTML("ShowAll","ShowAll();","ShowAll",false,m_objMqButton.STATE_1,"Show All");
								//-->
							</script>
						</td>
					</tr>
					<tr>
						<td colspan="3" style="padding-top:5px; padding-bottom:5px; padding-right:5px; padding-left:5px;width:100%" valign="top">
							<iframe src="blank.htm" name="fraDisplayItems" id="fraDisplayItems" frameborder="0" width="100%" height="100%" style="border: #BDBECE 1px solid; overflow:hidden;" tabIndex="1"></iframe>
						</td>
					</tr>
					<tr>
						<td colspan="3">
							<table cellpadding='0' cellspacing='0' border='0' align="center">
								
								<tr>
									<td align='center' width="30">
										<script type="text/javascript">m_objMqButton.WriteButtonHTML("FirstPage","MoveFirst();","MoveFirst",false,m_objMqButton.STATE_EN,g_MqRef.RESX['BUTTON_FIRST_PAGE'],"","","<i class=\"fa fa-angle-double-left fa-2x\"><\/i>");</script>
									</td>
									<td align='center' width="30">
										<script type="text/javascript">m_objMqButton.WriteButtonHTML("PreviousPage","MovePrev();","PageDown",false,m_objMqButton.STATE_EN,g_MqRef.RESX['BUTTON_PREVIOUS_PAGE'],"","","<i class=\"fa fa-angle-left fa-2x\"><\/i>");</script>
									</td>
									<td>
										<div class='PageNavigation' id='PageCaption' style="padding-left:10px; padding-right:10px; color:#666666 !important"></div>
									</td>
									<td align='center' width="30">
										<script type="text/javascript">m_objMqButton.WriteButtonHTML("NextPage","MoveNext();","PageUp",false,m_objMqButton.STATE_EN,g_MqRef.RESX['BUTTON_NEXT_PAGE'],"","","<i class=\"fa fa-angle-right fa-2x\"><\/i>");</script>
									</td>
									<td align='center' width="30">
										<script type="text/javascript">m_objMqButton.WriteButtonHTML("LastPage","MoveLast();","MoveLast",false,m_objMqButton.STATE_EN,g_MqRef.RESX['BUTTON_LAST_PAGE'],"","","<i class=\"fa fa-angle-double-right fa-2x\"><\/i>");</script>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<script type="text/javascript">
						<!--
						if(m_strTableName==TBL_USER){
							//document.write("<tr><td colspan='2'>&#160;</td><td id='tdAddNewBtn'>");
							//m_objMqButton.WriteButtonHTML("AddNew","AddNewUser();","Add",false,m_objMqButton.STATE_1,"Add New");
							//document.write("</td></tr>");
						}
						//-->
					</script>
					</table>
					
				</td>
				<td width="14" class="BoxMRight">&#160;</td>
			</tr>
			<!--End of Box Middle w/table-->

			<!--Box Bottom Border -->
			<tr height="19" >
				<td width="14" class="BoxBLeft"></td>
				<td class="BoxBCenter">&#160;</td>
				<td width="14" class="BoxBRight"></td>
			</tr>
			<!--End of Box Bottom Border -->						                    
		</table>
	</div>
	</td>
	<td style="width: 10%;" align="center">
		<div align="center" id="ArrowButtons">
		<script type="text/javascript">
		<!--
			m_objMqButton.WriteButtonHTML(BTN_ENABLE_ITEMS,"AddMultiSelectItemsFromList();","MoveRight",false,m_objMqButton.STATE_1,"Add to list");
			document.write("<br />");
			m_objMqButton.WriteButtonHTML(BTN_DISABLE_ITEMS,"RemoveMultiSelectItemsFromList();","MoveLeft",false,m_objMqButton.STATE_1,"Remove from list");
			
		//-->
		</script>
	</div>
	</td>
<td style="width: 30%;text-align: center">
<div style="text-align:center; left:65%; top:35px; width:100%" id="DisplaySelectedAdvanced">
		<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
									
			<!--Box Top Border -->
			<tr height="20" >
				<td width="14" class="BoxTLeft"></td>
				<td class="BoxTCenter">&#160;</td>
				<td width="14" class="BoxTRight"></td>
			</tr>
			<!--End of Box Top Border -->	
			<tr >
				<td width="14" class="BoxMLeft">&#160;</td>
				<td height="100%" class="BoxMCenter">
					<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
					<!-- Contents -->
					<tr>
						<td style="padding-left:5px;height:40px">
							<div class="DialogLabel" id="SelectedItemsTextAdvanced"></div>
						</td>
					</tr>
					<tr>
						<td style="padding-top:5px; padding-bottom:5px; padding-right:5px; padding-left:5px;width:100%">
							<iframe src="blank.htm" name="fraDisplaySelItemsAdv" id="fraDisplaySelItemsAdv" width="100%" frameborder="0" style="border: #BDBECE 1px solid; height:100%; overflow:hidden"></iframe>
						</td>
					</tr>
					<tr>
						<td class="PageNavigation" height="28" style="text-align:right; padding-right:5px; padding-bottom:10px; padding-top:5px">
							&#160;
						</td>
					</tr>
					<script type="text/javascript">
						<!--
						if(m_strTableName==TBL_USER){
							document.write("<tr><td class='PageNavigation' height='28'>&#160;</td></tr>");
						}
						//-->
					</script>
					</table>
					
				</td>
				<td width="14" class="BoxMRight">&#160;</td>
			</tr>
			<!--End of Box Middle w/table-->

			<!--Box Bottom Border -->
			<tr height="20" >
				<td width="14" class="BoxBLeft"></td>
				<td class="BoxBCenter">&#160;</td>
				<td width="14" class="BoxBRight"></td>
			</tr>
			<!--End of Box Bottom Border -->						                    
		</table>
	</div>
</td></tr>
<tr><td colspan="3" >

	<div style="top:73%; height:65px" id="BottomContents">
		<table cellpadding="0" width="100%" height="65" cellspacing="0" border="0" id="DisplaySelectedSimple" style="display: none">
									
			<!--Box Top Border -->
			<tr height="20" >
				<td width="14" ><div class="BoxTLeft"></div></td>
				<td class="BoxTCenter">&#160;</td>
				<td width="14" ><div class="BoxTRight"></div></td>
			</tr>
			<!--End of Box Top Border -->	
			<tr >
				<td width="14" class="BoxMLeft">&#160;</td>
				<td class="BoxMCenter">
					<table class="BoxMCenter" cellpadding="0" cellspacing="0" border="0" >
					<!-- Contents -->
					<tr>
						<td style="padding-left:5px; padding-right:5px; padding-bottom:10px;">	
							<div class="DialogLabel" id="SelectedItemsTextSimple"></div>
							<textarea wrap="physical" class="LookupItemResults" rows="2" cols="51" name="memSelectedItems" id="memSelectedItems"></textarea>
						</td>
					</tr>
					</table>	
				</td>
				<td width="14" class="BoxMRight">&#160;</td>
			</tr>
			<!--End of Box Middle w/table-->

			<!--Box Bottom Border -->
			<tr height="20" >
				<td width="14" ><div class="BoxBLeft"></div></td>
				<td class="BoxBCenter">&#160;</td>
				<td width="14" ><div class="BoxBRight"></div></td>
			</tr>
			<!--End of Box Bottom Border -->						                    
		</table>

		<table align="right" width="100">
		<tr>
			<td align="right">
				<script type="text/javascript">
					<!--
					m_objMqButton.WriteTextButtonHTML("OK", g_MqRef.RESX["BUTTON_OK"], 'SetListToCaller()', "", 32, "", g_MqRef.RESX["BUTTON_OK"], 90);
					//-->
				</script>				
			</td>

			<td align="right">
				<script type="text/javascript">
					<!--
					m_objMqButton.WriteTextButtonHTML("Cancel", g_MqRef.RESX["BUTTON_CANCEL"], 'CloseWindow()', "", 32, "", g_MqRef.RESX["BUTTON_CANCEL"], 90);
					//-->
				</script>				
			</td>
		</tr>
	</table>
	</div>
	</td></tr></tbody></table>
	

	
	<select id="SearchField_List" class="mqselect" size="5"  
        onmouseover="m_blnOverMenu=true;" onmouseout="m_blnOverMenu=false;"
        onclick="m_MqList.OnClick(this)" onkeypress="m_MqList.OnKeyPress(event,this)" 
        onblur="m_MqList.OnBlur()" onchange="UpdateSearchSettings(this);">
        <script type="text/javascript">
			var strHTML="";
			if(m_strTableName==TBL_USER){
				strHTML='<option value="0">Name</option><option value="1">E-mail</option>';
			}else{
				strHTML='<option value="0">Value</option>';
			}
			document.write(strHTML);
		</script>
    </select>

	<select id="SearchType_List" class="mqselect" size="5"  
        onmouseover="m_blnOverMenu=true;" onmouseout="m_blnOverMenu=false;"
        onclick="m_MqList.OnClick(this)" onkeypress="m_MqList.OnKeyPress(event,this)" 
        onblur="m_MqList.OnBlur()" onchange="UpdateSearchSettings(this);">
            <option value="0">Starts with...</option>
			<option value="1">Contains...</option>
    </select>
    <form name="frmLookupItemContents" id="frmLookupItemContents" method="post" target="fraDisplayItems" class="HiddenObject">
		<input type="hidden" name="WFVals" id="WFVals" />
		<input type="hidden" name="PossVals" id="PossVals" />
	</form>
</body>
</html>
