<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html style="overflow:hidden">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<title></title>

	<link rel="stylesheet" href="../../js/jquery/jquery.ui.all.css">
	<script src="../../js/jquery/jquery-1.7.1.js"></script>
	<script src="../../js/jquery/jquery.bgiframe-2.1.2.js"></script>
	<script src="../../js/jquery/jquery.ui.core.js"></script>
	<script src="../../js/jquery/jquery.ui.widget.js"></script>
	<script src="../../js/jquery/jquery.ui.mouse.js"></script>
	<script src="../../js/jquery/jquery.ui.draggable.js"></script>
	<script src="../../js/jquery/jquery.ui.position.js"></script>
	<script src="../../js/jquery/jquery.ui.resizable.js"></script>
	<script src="../../js/jquery/jquery.ui.dialog.js"></script>

	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
	
	<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 = parent.Record;
		var m_objLookupItemInfo;
		var mobjHTTPrequest;
		var mstrCurrentLocation;
		var m_lngFieldID;
		if(m_objRef){
			if(!m_objRef.m_objLookupItemInfoColl){
				m_objRef=parent;
			}
		}else{
			m_objRef=parent;
		}
		if(m_objRef){
			if (!m_objRef.m_objLookupItemInfoColl) {
				m_objRef=opener;
			}
		}else{
			m_objRef=opener;
		}
		if(m_objRef){
			if(m_objRef.m_objLookupItemInfoColl){
				var lngFieldID=m_objRef.g_MqRef.MqStr.GetQueryStringValue(location.search,"FID",false);
				if(isNaN(lngFieldID) == false){
					if(lngFieldID > 0){

						m_objLookupItemInfo=m_objRef.m_objLookupItemInfoColl[lngFieldID];
						m_lngFieldID=lngFieldID;
					}
				}
				mobjHTTPrequest=m_objRef.parent.objRequest;
				if(!mobjHTTPrequest){
					mobjHTTPrequest=m_objRef.objRequest;
				}
				mstrCurrentLocation=m_objRef.parent.mstrCurrentLocation;
			}
		}
		
		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>

	<script type="text/javascript">
	<!--
		var objSysMsg = new CMqSysMsg;	
		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 m_blnOnlyCloseButton=false;
		if(m_strTableName=="AssetTypeAdv" && (m_lngFieldID==78 || m_lngFieldID==800 || m_lngFieldID==838)){
			m_blnOnlyCloseButton=true;
		}

		var strFuncFile="<WC@FUNC_FILE></WC@FUNC_FILE>";
		if(strFuncFile!=""){
			var blnAddFunc=g_MqRef.MqStr.GetQueryStringValue(location.search, "AddFunc");
			if(blnAddFunc!="0"){
				document.write('<script src="' + mstrPathPrefix + 'lv/'+strFuncFile+'" type="text/javascript"><\/script>');
			}
		}
		
	//-->
	</script>
</head>

<body id="SelectItems" class="MainBackgroundWizard" style="overflow:auto; padding:0px;margin:0px;" onload="Form_OnLoad();SetListSize(false);SetDefaultSearchMode('<WC@DEFAULT_SEARCH></WC@DEFAULT_SEARCH>');SetDefaultSearchField('<WC@DEFAULT_FILTER_FIELD_ID></WC@DEFAULT_FILTER_FIELD_ID>');" 
onunload="OnBeforeNavigate()" onkeypress="Form_OnKeyPress(event);" onresize="SetListSize(false);">
<div style="padding-left:10px; padding-bottom: 5px;margin-left: 10px;margin-top: 10px;color:#08386b" 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" border="0" style="width:100%;height:88%;table-layout:fixed;">
<tbody>
<tr >
	<td colspan="2" >
		<div style="text-align:left;width:100%;height:100%" id="ListContainer">
		
		<div class="RoundedBox">
			<table cellpadding="0" cellspacing="0" border="0" style="width:100%;">
			<!-- Contents -->
			<tr>
				<td colspan="3" class="NormalText" style="text-align:left; padding-left:5px;font-size: 13px;color:#000000 !important">
					Filter values where the
					<a id="SearchField" onclick="MqActuator_OnClick(this);" mqlist="SearchField_List"
					class="actuator" style="color:#3498db !important" href="#" mqvalue="0">
					<WC@DEFAULT_FILTER_FIELD_CAPTION></WC@DEFAULT_FILTER_FIELD_CAPTION>
					
					</a>
					
				<a id="SearchType" onclick="MqActuator_OnClick(this);" mqlist="SearchType_List"
					class="actuator" style="color:#3498db !important" href="#">
				</a>
				
				</td>
				<td rowspan="2" id="tdAddNewBtn" align="right">
					<script type="text/javascript">
						<!--	
						var strAddNewArg="<WC@ADD_NEW_ARG></WC@ADD_NEW_ARG>";
						if(typeof(LV_Add)!="undefined"){
							var strAddHTML="<div class='ButtonTextWrapper'>" + g_MqRef.RESX['ADD_BTN_HELPER'];
							if(strAddNewArg!=""){
								strAddNewArg="'" + strAddNewArg + "'";
							}
							strAddHTML+=m_objMqButton.GetTextButtonHTML("AddNew", "Add New", "LV_Add(" + strAddNewArg + ");", "", 32, "padding-left:25px;padding-top:5px;", "Add New", 90);
							strAddHTML+="</div>";
							document.write(strAddHTML);
						}else{
							document.write("&#160;");
						}

					//-->
					</script>
				</td>
			</tr>
			<tr>
				<td align="left" style="padding-left:5px; width:80%">
					<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;" width="10%">
					<a href="#" onclick="DoSearch()" title="Refresh"><i style='font-size:22px; color:#666666;' class='fa fa-refresh'></i></a>
				</td>
				<td id="tdShowAllBtn">
					<script type="text/javascript">
						<!--
						//m_objMqButton.WriteButtonHTML("ShowAll","ShowAll();","ShowAll",false,m_objMqButton.STATE_1,"Show All");
						document.write("&#160;");
						//-->
					</script>
				</td>
				
			</tr>
			<tr>
				<td colspan="4" style="width:100%;padding-top:5px; padding-bottom:5px; padding-right:5px; padding-left:5px;" 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="4">
					<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>
			<tr>
				<td colspan="4" style="text-align:right">
					<script type="text/javascript">
						//if(m_strTableName==TBL_DTS && (lngFieldID==FIELD_ID_EMP_RESOURCES || lngFieldID==FIELD_ID_ROLE_RESOURCES)){
						//	document.write('<span class="PageNavigation" style="color:#666666 !important; height:20px;"><a href="#" onclick="window.frames[\'fraDisplayItems\'].ToggleGrid(true)" class="PageNavigation" style="color:#666666 !important"><img src="../../Js/codebasegrid/IMGS/plus.gif" border="0" /> Expand All</a> / <a href="#" onclick="window.frames[\'fraDisplayItems\'].ToggleGrid(false)" class="PageNavigation" style="color:#666666 !important"><img src="../../Js/codebasegrid/IMGS/minus.gif" border="0" /> Collapse All</a></span>');
						//}
					</script>
				</td>
			</tr>
			<tr id="selectedItemInfo" name="selectedItemInfo">
				<td colspan="4" style="padding-left:5px; padding-right:5px; padding-bottom:5px;padding-top:5px;" width="100%">
					<hr class="LineSep">	
					<table border="0" width="70%" style="margin-top:5px;">
						<tr>
							<td width="25%">
								<span class="DialogLabel" id="SelectedItemsTextSimple"></span>
							</td>
							<td width="75%">
								<textarea wrap="physical" class="LookupItemResults" style="padding-top: 0px;" rows="1" cols="51" name="memSelectedItems" id="memSelectedItems"></textarea>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			</table>
		</div>
	</div>
</td></tr>
</table>
	
	<table align="right" width="100">
		<tr>
			<td align="right">
				<script type="text/javascript">
					<!--
					if(!m_blnOnlyCloseButton){
						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">
					<!--
					if(!m_blnOnlyCloseButton){
						m_objMqButton.WriteTextButtonHTML("Cancel", g_MqRef.RESX["BUTTON_CANCEL"], 'ClosePopup()', "", 32, "", g_MqRef.RESX["BUTTON_CANCEL"], 90);
					}else{
						m_objMqButton.WriteTextButtonHTML("Cancel", g_MqRef.RESX["BUTTON_CLOSE"], 'ClosePopup()', "", 32, "", g_MqRef.RESX["BUTTON_CLOSE"], 90);
					}
					//-->
				</script>				
			</td>
		</tr>
	</table>
	
	<select id="SearchField_List" class="mqselect" style="font-size: 13px;" 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);">
        <WC@SEARCH_FIELD_OPTIONS></WC@SEARCH_FIELD_OPTIONS>
    </select>

	<select id="SearchType_List" class="mqselect" style="font-size: 13px;" 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>

	<div class="demo" style="display:none">
		<div id="dialog-modal" style="width:100%;height:100%;padding:0px;margin:0px;overflow:hidden">
			<iframe id="dialog-modal-url" width="100%" height="100%" marginWidth="0" marginHeight="0" frameBorder="0" scrolling="no"></iframe>
		</div>
		<div id="dialog-modal-orig-width" name="dialog-modal-orig-width" style="display:none"></div>
		<div id="dialog-modal-orig-height" name="dialog-modal-orig-height" style="display:none"></div>
	</div>
</body>
</html>
