<?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>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<title></title>
	
	<!--MqRelPath--><link rel="stylesheet" title="silver" type="text/css" href="../../theme/css/censusmain.css"/><!--/MqRelPath--><!--MqAbsPath><link rel="stylesheet" title="silver" type="text/css" href="<BASE_VD>/theme/css/censusmain.css"/></MqAbsPath-->
	<!--MqRelPath--><link rel="stylesheet" title="silver" type="text/css" href="../../theme/css/mqwizard.css"/><!--/MqRelPath--><!--MqAbsPath><link rel="stylesheet" title="silver" type="text/css" href="<BASE_VD>/theme/css/mqwizard.css"/></MqAbsPath-->
	<!--MqRelPath--><script type="text/javascript" src="../../js/mqsysutils.js" ></script><!--/MqRelPath--><!--MqAbsPath><script type="text/javascript" src="<BASE_VD>/js/mqsysutils.js" ></script></MqAbsPath-->
	<!--MqRelPath--><script type="text/javascript" src="../../js/cmqsysmsg.js" ></script><!--/MqRelPath--><!--MqAbsPath><script type="text/javascript" src="<BASE_VD>/js/cmqsysmsg.js" ></script></MqAbsPath-->
	<!--MqRelPath--><script type="text/javascript" src="../../js/window.js" ></script><!--/MqRelPath--><!--MqAbsPath><script type="text/javascript" src="<BASE_VD>/js/window.js" ></script></MqAbsPath-->
	
	<!--MqRelPath--><link rel="stylesheet" href="../../js/jquery/jquery.ui.all.css"><!--/MqRelPath--><!--MqAbsPath><link rel="stylesheet" href="<BASE_VD>/js/jquery/jquery.ui.all.css"></MqAbsPath-->
		<!--MqRelPath--><script type="text/javascript" src="../../js/jquery/jquery-1.7.1.js"></script><!--/MqRelPath--><!--MqAbsPath><script type="text/javascript" src="<BASE_VD>/js/jquery/jquery-1.7.1.js"></script></MqAbsPath-->
		<!--MqRelPath--><script type="text/javascript" src="../../js/jquery/jquery.bgiframe-2.1.2.js"></script><!--/MqRelPath--><!--MqAbsPath><script type="text/javascript" src="<BASE_VD>/js/jquery/jquery.bgiframe-2.1.2.js"></MqAbsPath-->
		<!--MqRelPath--><script type="text/javascript" src="../../js/jquery/jquery.ui.core.js"></script><!--/MqRelPath--><!--MqAbsPath><script type="text/javascript" src="<BASE_VD>/js/jquery/jquery.ui.core.js"></MqAbsPath-->
		<!--MqRelPath--><script type="text/javascript" src="../../js/jquery/jquery.ui.widget.js"></script><!--/MqRelPath--><!--MqAbsPath><script type="text/javascript" src="<BASE_VD>/js/jquery/jquery.ui.widget.js"></script></MqAbsPath-->
		<!--MqRelPath--><script type="text/javascript" src="../../js/jquery/jquery.ui.mouse.js"></script><!--/MqRelPath--><!--MqAbsPath><script type="text/javascript" src="<BASE_VD>/js/jquery/jquery.ui.mouse.js"></script></MqAbsPath-->
		<!--MqRelPath--><script type="text/javascript" src="../../js/jquery/jquery.ui.draggable.js"></script><!--/MqRelPath--><!--MqAbsPath><script type="text/javascript" src="<BASE_VD>/js/jquery/jquery.ui.draggable.js"></script></MqAbsPath-->
		<!--MqRelPath--><script type="text/javascript" src="../../js/jquery/jquery.ui.position.js"></script><!--/MqRelPath--><!--MqAbsPath><script type="text/javascript" src="<BASE_VD>/js/jquery/jquery.ui.position.js"></script></MqAbsPath-->
		<!--MqRelPath--><script type="text/javascript" src="../../js/jquery/jquery.ui.resizable.js"></script><!--/MqRelPath--><!--MqAbsPath><script type="text/javascript" src="<BASE_VD>/js/jquery/jquery.ui.resizable.js"></script></MqAbsPath-->
		<!--MqRelPath--><script type="text/javascript" src="../../js/jquery/jquery.ui.dialog.js"></script><!--/MqRelPath--><!--MqAbsPath><script type="text/javascript" src="<BASE_VD>/js/jquery/jquery.ui.dialog.js"></script></MqAbsPath-->
		

	<script type="text/javascript">
		// always define this object for the system messages
		var objSysMsg = new CMqSysMsg();
		var m_objMqButton = new MqButton();
		
		var m_objRef;
		
		if(opener){
			if(opener.parent){
				m_objRef=opener.parent;
			}
		}else{
			if(parent){
				m_objRef=parent;
			}
		}
		
		var m_strMsgTitle="";
		var m_strMsgContent="";
		
		function OnLoad(){
			
			var objAbbrev=document.getElementById("txtUserAbbrev");
			
			if(objAbbrev){
				objAbbrev.focus();
			}
			return true;
		}

		function cmdOK_OnClick()
		{
			if(m_objRef){
				var strFields="";
				var strTests="";
				var strRetains="";
				var strVals="";
				
				var arrFieldNames=new Array("txtFirstName", "txtLastName")
				var arrFieldIDs=new Array("11", "11")
				for(var x=0; x<arrFieldNames.length; x++){
					var strVal=GetSearchValue(arrFieldNames[x]);
					
					if(strVal!=""){
						strFields+=arrFieldIDs[x] + ";"
						strTests+="9;";
						strRetains+="And;";
						strVals+=strVal+";";
					}
				}
				if(strFields!=""){
					var objSQE=m_objRef.objFrames.GetFrameWindow(m_objRef.SQE_FRAME_ID);
					if (objSQE){		
						objSQE.FLD_IDS=g_MqRef.MqStr.StripTrailing(strFields, ";"); 
						objSQE.TEST_IDS=g_MqRef.MqStr.StripTrailing(strTests, ";"); 
						objSQE.RETAIN_IDS=g_MqRef.MqStr.StripTrailing(strRetains, ";"); 
						objSQE.VAL_VALS=g_MqRef.MqStr.StripTrailing(strVals, ";"); 
						
						m_objRef.m_objSLMgr.ApplySearchToSL(false, false, m_objRef.m_objSLInput);
						
						CloseWindow();
					}
				}
			}
		}

		function GetSearchValue(strFieldHTMLName)
		{
			var objCtrl=document.getElementById(strFieldHTMLName);
			
			if(objCtrl){
				return objCtrl.value;
			}else{
				return "";
			}
		}
	</script>
</head>

<body id="frmMain" name="frmMain" class="MainBackgroundPopup" 
style="margin:0;" leftmargin="0" rightmargin="0" 
onload="OnLoad();" bottommargin="0" scroll="no">

	<div class="TopToolBarPopup">
		<table width="98%" class="TopToolBarWizard">
			<tr>
				<td>
					<img src="../../theme/images/images/telcom.png" width="48" height="48" />
				</td>
		        <td valign="top" style="padding-top:15px; padding-left:10px" width="100%">
		            <div class="WizardTitle"><script type="text/javascript">document.write(g_MqRef.RESX["SEARCH_EMPS_TITLE"]);</script></div>
		            <div class="WizardDescription"><script type="text/javascript">document.write(g_MqRef.RESX["SEARCH_EMPS_DESC"]);</script></div>
		        </td>
		    </tr>
		</table>
	</div>

	<table id="tblMain" marginwidth="0" cellspacing="0" cellpadding="0" border="0" style="padding-left:30px;width: 98%;" >
		<tr >
			<td align="left" style="padding-top: 15px;pad-ding-bottom: 15px;" class="MainBackgroundPopup">
				<script type="text/javascript">document.write(g_MqRef.RESX["SEARCH.USER_ABBREV"]);</script>
			</td>
		</tr>
		<tr>
			<td>
				<input type="text" name='txtUserAbbrev' id='txtUserAbbrev' class='TextBoxWidth' style="width:98%"></input>
			</td>			
		</tr>
		<tr >
			<td align="left" style="padding-top: 15px;pad-ding-bottom: 15px;" class="MainBackgroundPopup">
				<script type="text/javascript">document.write(g_MqRef.RESX["SEARCH.FIRST_NAME"]);</script>
			</td>
		</tr>
		<tr>
			<td>
				<input type="text" name='txtFirstName' id='txtFirstName' class='TextBoxWidth' style="width:98%"></input>
			</td>			
		</tr>
		<tr >
			<td align="left" style="padding-top: 15px;pad-ding-bottom: 15px;" class="MainBackgroundPopup">
				<script type="text/javascript">document.write(g_MqRef.RESX["SEARCH.LAST_NAME"]);</script>
			</td>
		</tr>
		<tr>
			<td>
				<input type="text" name='txtLastName' id='txtLastName' class='TextBoxWidth' style="width:98%"></input>
			</td>			
		</tr>
		<tr >
			<td align="left" style="padding-top: 15px;pad-ding-bottom: 15px;" class="MainBackgroundPopup">
				<script type="text/javascript">document.write(g_MqRef.RESX["SEARCH.BARCODE"]);</script>
			</td>
		</tr>
		<tr>
			<td>
				<input type="text" name='txtBarcode' id='txtBarcode' class='TextBoxWidth' style="width:98%"></input>
			</td>			
		</tr>
	</table>
	<table align="right" style="padding-right:10px;padding-top:40px">
		<tr>
			<td align=right>
				<script type="text/javascript">m_objMqButton.WriteTextButtonHTML("Next", g_MqRef.RESX["BUTTON_SEARCH"], 'cmdOK_OnClick()', "", 32, "", g_MqRef.RESX["BUTTON_SEARCH"], 90);</script>
			</td>
			<td align=right>
				<script type="text/javascript">m_objMqButton.WriteTextButtonHTML("Close", g_MqRef.RESX["BUTTON_CLOSE"], 'CloseWindow()', "", 32, "", g_MqRef.RESX["BUTTON_CLOSE"], 90);</script>
			</td>
		</tr>
		</tbody> 
	</table>
	
</body>
</html>