<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<title></title>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
   
	<!--MqRelPath--><link rel="stylesheet" type="text/css" href="../../theme/css/censusmain.css"/><!--/MqRelPath--><!--MqAbsPath><link rel="stylesheet" type="text/css" href="<BASE_VD>/theme/css/censusmain.css"/></MqAbsPath-->
	<!--MqRelPath--><link rel="stylesheet" type="text/css" href="../../theme/css/mqwizard.css"/><!--/MqRelPath--><!--MqAbsPath><link rel="stylesheet" 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/window.js" ></script><!--/MqRelPath--><!--MqAbsPath><script type="text/javascript" src="<BASE_VD>/js/window.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/mqloaddata.js" ></script><!--/MqRelPath--><!--MqAbsPath><script type="text/javascript" src="<BASE_VD>/js/mqloaddata.js" ></script></MqAbsPath-->
	<!--MqRelPath--><script type="text/javascript" src="../../js/mqrecordset.js" ></script><!--/MqRelPath--><!--MqAbsPath><script type="text/javascript" src="<BASE_VD>/js/mqrecordset.js" ></script></MqAbsPath-->
	<!--MqRelPath--><script type="text/javascript" src="../../js/xml.js" ></script><!--/MqRelPath--><!--MqAbsPath><script type="text/javascript" src="<BASE_VD>/js/xml.js" ></script></MqAbsPath-->
	<!--MqRelPath--><script type="text/javascript" src="../../js/mqformelements.js" ></script><!--/MqRelPath--><!--MqAbsPath><script type="text/javascript" src="<BASE_VD>/js/mqformelements.js" ></script></MqAbsPath-->
	<!--MqRelPath--><script type="text/javascript" src="../../js/mqlist.js"></script><!--/MqRelPath--><!--MqAbsPath><script type="text/javascript" src="<BASE_VD>/js/mqlist.js"></script></MqAbsPath-->

	<script type="text/javascript">
		var m_objMqButton=new MqButton();
		var m_objFormElement=new CMqFormElement();
		var m_objMainRef;
				
		if(parent){
			m_objMainRef=parent;
				if (g_MqRef.RESX){
					// Load the localization file within the view
					var strVDName="";
					var strViewFolder="";
					
					if(m_objMainRef.mstrCurrentVDName){
						strVDName=m_objMainRef.mstrCurrentVDName;
					}
					
					if(m_objMainRef.mstrCurrentViewFolder){
						strViewFolder=m_objMainRef.mstrCurrentViewFolder;
					}
				
					if(strVDName!="" && strViewFolder!=""){
						g_MqRef.ResMgr.LoadViewRes("/" +strVDName + "/" + strViewFolder );
					}
				}
			}
		
		function OnLoadForm(){

			
			var strXMLFieldValues="<WC@LOADDATA><Mq:Popup_Flds></WC@LOADDATA>";

			if(m_objMainRef){
				var oFieldValuesRs;	
			
				if (strXMLFieldValues.length>0){
					var oViewFields=m_objMainRef.m_objViewFields;
					if (oViewFields){
						oFieldValuesRs=new CMqRecordset(strXMLFieldValues,oViewFields.GetFieldIDName());	
					}
				
					var objLoadDataMgr=new CMqLoadDataMgr(oViewFields,"document");
				
					var lngMode=0 // disable all
					objLoadDataMgr.Load(oFieldValuesRs,lngMode,m_objMainRef.m_objDisplayElements,null);
				}
			}
		}
			
	
	</script>
</head>
<body topmargin="0" leftmargin="0" marginwidth ="0"  onload="OnLoadForm()" style="background-color:#ffffff">


<div style="    
	border: 2px solid rgb(72,93,129);
	border: 2px solid rgba(72,93,129,.95);
	-moz-border-radius: 5px;
	border-radius: 5px;
	-webkit-border-radius: 5px;  
	-moz-box-shadow: 3px 3px 4px #999999;  
	-webkit-box-shadow: 3px 4px 4px #999999;
	box-shadow: 3px 3px 4px #999999;  
    background-color:#ffffff;
	margin : 5px; 
	padding : 5px;
	behavior:url(../theme/css/border-radius.htc);
	width:95%;height:80%;position:absolute;
	font-family: 'Lato Light', tahoma, sans-serif;">


			<table width="100%" class="RecordTab" cellspacing="0" border="0">
				<tr>
					
					<td valign="top">
						<table style="margin-left:7px;width:100%">
							<Mq:Popup_GenFlds>
						</table>
					</td>
					
				</tr>
			</table>
			
			
	</div>

	<div style="position:absolute;bottom:5px;right:5px" >
		<script text="text/javascript">m_objMqButton.WriteButtonHTML("OK","CloseWindow();","OK",false,m_objMqButton.STATE_1,g_MqRef.RESX["BUTTON_OK"]);</script>
	</div>


</body>
</html>