	// ===============================================================
	// Global Var
	// ===============================================================
	
	// Edit Handler
	// _______________________________________________________________________
	var EDIT_HANDLER = function(){};	
	EDIT_HANDLER.REF_IS_MODIFIED = false;
	EDIT_HANDLER.HAS_NEWLY_SAVED_DATA = false;
	var PROPERTY_PARENT_ID = 0;
	var PROPERTY_PARENT_DESCRIPTION = "";
	
	
	// Cache
	// _______________________________________________________________________
	var PROPERTY_REC_PSACTUAL_ID = -1;
	var PROPERTY_EDIT_MODE = false;
	var PROPERTY_EDIT_ROW_INDEX = -1;
	var INPUT_INSTANCE = null;
	
	
	// Buttons [Optional]
	// _______________________________________________________________________
	var ADD_BBI = null;
	var SAVE_BBI = null;
	var DELETE_BBI = null;
	var CANCEL_BBI = null;
	var NAVIGATION_BACK_BBI = null;
	
	var LOAD_MORE_BBI = null;
	var LOAD_PREV_BBI = null;
	var LOAD_NEXT_BBI = null;
	var LOAD_PAGING_CMB = null;
	var LOAD_PAGING_IGNORE_NEXT_REQUEST = false;
	
	var SEARCH_CMD = null;
	var PRINT_BBI = null;
	var EXPORT_BBI = null;
	
	
	// Dialog Controls [Optional]
	// _______________________________________________________________________
	var REC_PSACTUAL_ACC_GROUP_ID_CMB = null;
	var REC_PSACTUAL_CAT_PRODUCT_ID_CMB = null;
	var REC_PSACTUAL_QTY_D01_TXT = null;
	var REC_PSACTUAL_QTY_D02_TXT = null;
	var REC_PSACTUAL_QTY_D03_TXT = null;
	var REC_PSACTUAL_QTY_D04_TXT = null;
	var REC_PSACTUAL_QTY_D05_TXT = null;
	var REC_PSACTUAL_QTY_D06_TXT = null;
	var REC_PSACTUAL_QTY_D07_TXT = null;
	var REC_PSACTUAL_QTY_D08_TXT = null;
	var REC_PSACTUAL_QTY_D09_TXT = null;
	var REC_PSACTUAL_QTY_D10_TXT = null;
	var REC_PSACTUAL_QTY_D11_TXT = null;
	var REC_PSACTUAL_QTY_D12_TXT = null;
	var REC_PSACTUAL_QTY_D13_TXT = null;
	var REC_PSACTUAL_QTY_D14_TXT = null;
	var REC_PSACTUAL_QTY_D15_TXT = null;
	var REC_PSACTUAL_QTY_D16_TXT = null;
	var REC_PSACTUAL_QTY_D17_TXT = null;
	var REC_PSACTUAL_QTY_D18_TXT = null;
	var REC_PSACTUAL_QTY_D19_TXT = null;
	var REC_PSACTUAL_QTY_D20_TXT = null;
	var REC_PSACTUAL_QTY_D21_TXT = null;
	var REC_PSACTUAL_QTY_D22_TXT = null;
	var REC_PSACTUAL_QTY_D23_TXT = null;
	var REC_PSACTUAL_QTY_D24_TXT = null;
	var REC_PSACTUAL_QTY_D25_TXT = null;
	var REC_PSACTUAL_QTY_D26_TXT = null;
	var REC_PSACTUAL_QTY_D27_TXT = null;
	var REC_PSACTUAL_QTY_D28_TXT = null;
	var REC_PSACTUAL_QTY_D29_TXT = null;
	var REC_PSACTUAL_QTY_D30_TXT = null;
	var REC_PSACTUAL_QTY_D31_TXT = null;
	var REC_PSACTUAL_QTY_TOTAL_TXT = null;
	var REC_PSACTUAL_DATE_DTP = null;
	var REC_PSACTUAL_REMARKS_TXT = null;
	var REC_PSACTUAL_STATUS_CMB = null;
	
	var SEARCH_REC_PSACTUAL_DATE_CMB = null;
	
	var PARAM_REC_PSACTUAL_ID_FILE_FP = null;
	
	
	// DGV Controls
	// _______________________________________________________________________
	var PSACTUAL_DGV = null;
	var PSACTUAL_LAST_GET_MAP_ARRAY = null;


	// ===============================================================
	// Initialize Controls
	// ===============================================================     
	function FORM_INITIALIZE()
	{
		// Load Cache Parent Data [Add Redirects if this is a required data.]
		// ...........................................
		if(JSVC_COOKIE.VAR_ISSET("PROPERTY_PARENT_ID_PSACTUAL"))
		{
			PROPERTY_PARENT_ID = JSVC_COOKIE.VAR_READ("PROPERTY_PARENT_ID_PSACTUAL");
		}	
		else
		{
			//window.location = JSCUS_CACHE.AUTH_REDIRECT_URL[JSCUS_CACHE.LOGIN_CLASS];
			//window.close();
		}
		if(JSVC_COOKIE.VAR_ISSET("PROPERTY_PARENT_DESCRIPTION_PSACTUAL"))
		{
			PROPERTY_PARENT_DESCRIPTION = JSVC_COOKIE.VAR_READ("PROPERTY_PARENT_DESCRIPTION_PSACTUAL");
			if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("PAGE_PARENT_DESCRIPTION_TXT") == true)
			{
				JSOC_ELEMENT.VAR_VALUE("PAGE_PARENT_DESCRIPTION_TXT", PROPERTY_PARENT_DESCRIPTION);			
			}
			if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("PAGE_PARENT_DESCRIPTION_LBL") == true)
			{
				JSOC_ELEMENT.VAR_VALUE("PAGE_PARENT_DESCRIPTION_LBL", PROPERTY_PARENT_DESCRIPTION);			
			}
			if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("PAGE_TITLE_LBL") == true)
			{
				JSOC_ELEMENT.VAR_VALUE("PAGE_TITLE_LBL", JSOC_ELEMENT.VAR_VALUE("PAGE_TITLE_LBL") + " : " + PROPERTY_PARENT_DESCRIPTION);	
			}
		}	
		else
		{
			//window.location = JSCUS_CACHE.AUTH_REDIRECT_URL[JSCUS_CACHE.LOGIN_CLASS];	
		}
	
		// Restore Cache on reload
		// ...........................................	
		if
		(
			JSVC_COOKIE.VAR_ISSET("PROPERTY_PARENT_ID_PSACTUAL") || 
			JSVC_COOKIE.VAR_ISSET("PROPERTY_PARENT_DESCRIPTION_PSACTUAL")
		)
		{
			  window.onbeforeunload = function(event)
			  {
					// Get Current Root path
					var CURRENT_ROOT_PATH = JSCUS_CACHE.ROOT_PATH + JSVC_STR.VAR_MID(JSVC_STR.VAR_DLEFT(JSCUS_CACHE.AUTH_REDIRECT_URL[JSCUS_CACHE.LOGIN_CLASS], JSCUS_CACHE.SERVER_URL.length), 1, 1);
				
					// Cache Primary Key
					JSVC_COOKIE.VAR_ADD
					(
						'PROPERTY_PARENT_ID_PSACTUAL', 
						PROPERTY_PARENT_ID, 
						5, 
						CURRENT_ROOT_PATH
					);
					
					// Cache Description
					JSVC_COOKIE.VAR_ADD
					(
						'PROPERTY_PARENT_DESCRIPTION_PSACTUAL', 
						PROPERTY_PARENT_DESCRIPTION, 
						5, 
						CURRENT_ROOT_PATH
					);
			  };
		}
		
		// Assign Fixed Parent (Must remove auto-populate at ch.js and HTTP_PARENT_LOAD at eh.js)
		// ...........................................
		/*
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("PARENT_SELECT_CMB"))
		{
			JSOC_CMB.VAR_ADD
			(
				"PARENT_SELECT_CMB", 
				PROPERTY_PARENT_ID,
				PROPERTY_PARENT_DESCRIPTION
			);
		}
		*/
		
		
 		// Cache Class Properties
		// ...........................................
		if(JSVC_COOKIE.VAR_ISSET("PROPERTY_REC_PSACTUAL_ID"))
		{
			PROPERTY_REC_PSACTUAL_ID = JSVC_COOKIE.VAR_READ("PROPERTY_REC_PSACTUAL_ID");
		}	
		if(JSVC_COOKIE.VAR_ISSET("PROPERTY_EDIT_MODE"))
		{
			PROPERTY_EDIT_MODE = JSVC_COOKIE.VAR_READ("PROPERTY_REC_PSACTUAL_ID");
		}
	
		// Initialize: Modals
		// ...........................................
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("PSACTUAL_MODAL") == true)
		{
			// Display Modal
			JSOC_DIALOG.VAR_MODAL("PSACTUAL_MODAL", false);
		}
				
		// Initialize: Ribbon Buttons [Add Item]
		// ...........................................
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("ADD_BBI"))
		{
    		ADD_BBI = JSOC_ELEMENT.VAR_GET("ADD_BBI");     	
			
			// Add OnClick event [Show Modal]
			if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("PSACTUAL_MODAL"))
			{
				ADD_BBI.onclick = 
					function()
					{		
						// Display Modal
						PROPERTY_REC_PSACTUAL_ID = FLAG_BIGINT_NULL;
						PROPERTY_EDIT_ROW_INDEX = -1;
						
						if(JSVC_VAR.VAR_ISSET(INPUT_INSTANCE))
						{
							JSOC_WINDOW.VAR_INPUT_INSTANCE_RESTORE(INPUT_INSTANCE);
						}
						EDIT_HANDLER.REF_IS_MODIFIED = true;
						JSOC_DIALOG.VAR_MODAL("PSACTUAL_MODAL", true);
					};					
			}
			// Add OnClick event [Show Add/Edit Page]
			else
			{
				
			}
		}	
		
		// Initialize: Ribbon Buttons [Save Changes]
		// ...........................................
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("SAVE_BBI"))
		{
    		SAVE_BBI = JSOC_ELEMENT.VAR_GET("SAVE_BBI");     
			if(JSVC_VAR.VAR_ISSET(HTTP_SAVE))
			{
				// Prepare Save callback
				var CALLBACK_HANDLER = 
					function(IS_SUCCESS)
					{
						// Abort on failure
						if(IS_SUCCESS == false)
						{
							return;
						}
					
						// Show record saved messageBox
						JSVC_INFO.VAR_RECORD_SAVED('');
					};
				
				// Add OnClick event
				SAVE_BBI.onclick = 
					function()
					{
						HTTP_SAVE(CALLBACK_HANDLER);
					};
			}
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("CANCEL_BBI"))
		{
    		CANCEL_BBI = JSOC_ELEMENT.VAR_GET("CANCEL_BBI");      		
		}
		
		// Initialize: Ribbon Buttons [Add Back Link (to parent page)]
		// ...........................................
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("NAVIGATION_BACK_BBI"))
		{
    		NAVIGATION_BACK_BBI = JSOC_ELEMENT.VAR_GET("NAVIGATION_BACK_BBI");  
			
			// Add OnClick event
			NAVIGATION_BACK_BBI.onclick = 
				function()
				{
				};
		}
		
		// Initialize: Ribbon Buttons [Add Forward Link (to child page)]
		// ...........................................
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("NAVIGATION_BACK_BBI"))
		{
    		NAVIGATION_BACK_BBI = JSOC_ELEMENT.VAR_GET("NAVIGATION_BACK_BBI");  
			
			// Add OnClick event
			NAVIGATION_BACK_BBI.onclick = 
				function()
				{
				};	
		}
		
		// Initialize: Load more items to the list
		// ...........................................
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("LOAD_MORE_BBI"))
		{
    		LOAD_MORE_BBI = JSOC_ELEMENT.VAR_GET("LOAD_MORE_BBI");  
			LOAD_MORE_BBI.onclick = 
				function()
				{
					HTTP_SEARCH_LOAD_MORE();
				};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("LOAD_PREV_BBI"))
		{
    		LOAD_PREV_BBI = JSOC_ELEMENT.VAR_GET("LOAD_PREV_BBI");  
			LOAD_PREV_BBI.onclick = 
				function()
				{
					var CURRENT_INDEX = JSOC_CMB.VAR_SELECTED_INDEX(LOAD_PAGING_CMB);
					if(CURRENT_INDEX > 0)
					{
						JSOC_CMB.VAR_SELECTED_INDEX(LOAD_PAGING_CMB, CURRENT_INDEX - 1);
						LOAD_PAGING_CMB.onchange();
					}
				};
		}		
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("LOAD_NEXT_BBI"))
		{
    		LOAD_NEXT_BBI = JSOC_ELEMENT.VAR_GET("LOAD_NEXT_BBI");  
			LOAD_NEXT_BBI.onclick = 
				function()
				{
					var CURRENT_INDEX = JSOC_CMB.VAR_SELECTED_INDEX(LOAD_PAGING_CMB);
					if(CURRENT_INDEX + 1 < JSOC_CMB.VAR_COUNT(LOAD_PAGING_CMB))
					{
						JSOC_CMB.VAR_SELECTED_INDEX(LOAD_PAGING_CMB, CURRENT_INDEX + 1);
						LOAD_PAGING_CMB.onchange();
					}
				};
		}		
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("LOAD_PAGING_CMB"))
		{
    		LOAD_PAGING_CMB = JSOC_ELEMENT.VAR_GET("LOAD_PAGING_CMB");  
			LOAD_PAGING_CMB.onchange = 
				function()
				{
					HTTP_SEARCH_LOAD_PAGE();
				};
		}

		// Initialize: Ribbon Buttons [Add Search]
		// ...........................................
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("SEARCH_CMD"))
		{
			SEARCH_CMD = JSOC_ELEMENT.VAR_GET("SEARCH_CMD");
			SEARCH_CMD.onclick = function(){HTTP_SEARCH();};
		}		

		// Initialize: Ribbon Buttons [Add Print]
		// ...........................................
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("PRINT_BBI"))
		{
			PRINT_BBI = JSOC_ELEMENT.VAR_GET("PRINT_BBI");
			PRINT_BBI.onclick = function()
			{
				window.print();
			};
		}		
		
		// Initialize: Ribbon Buttons [Add Search]
		// ...........................................
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("EXPORT_BBI"))
		{
			EXPORT_BBI = JSOC_ELEMENT.VAR_GET("EXPORT_BBI");
			EXPORT_BBI.onclick = function()
			{
				JSOC_DIALOG.VAR_LOADING_SPINNER(true);
				JSRC_THREAD.REF_POST_DELAYED			
				(
					async function()
					{
						await JSRC_EXCEL.REF_EXPORT('PSACTUAL_DGV');
						CUS_SEND_DIALOG_TRY_DISMISS();
					},
					100
				);
			};
		}		

		
		// Prepare onChange event
		// ...........................................
		var ON_CHANGE_EVENT = '';
		
		
		// Initialize: Input Controls
		// ...........................................
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_ID_TXT"))
		{
			REC_PSACTUAL_ID_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_ID_TXT");      
			REC_PSACTUAL_ID_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_ID_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_ID_TXT.onkeypress = function(){REC_PSACTUAL_ID_TXT.onchange();};
			REC_PSACTUAL_ID_TXT.onpaste = function(){REC_PSACTUAL_ID_TXT.onchange();};
			//REC_PSACTUAL_ID_TXT.oninput = function(){REC_PSACTUAL_ID_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_ACC_GROUP_ID_CMB"))
		{
			REC_PSACTUAL_ACC_GROUP_ID_CMB = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_ACC_GROUP_ID_CMB");      	
			REC_PSACTUAL_ACC_GROUP_ID_CMB.onchange = 
				function()
				{
					if(REC_PSACTUAL_ACC_GROUP_ID_CMB.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_ACC_GROUP_ID_CMB.onkeypress = function(){REC_PSACTUAL_ACC_GROUP_ID_CMB.onchange();};
			REC_PSACTUAL_ACC_GROUP_ID_CMB.onpaste = function(){REC_PSACTUAL_ACC_GROUP_ID_CMB.onchange();};
			//REC_PSACTUAL_ACC_GROUP_ID_CMB.oninput = function(){REC_PSACTUAL_ACC_GROUP_ID_CMB.onchange();};							
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_CAT_PRODUCT_ID_CMB"))
		{
			REC_PSACTUAL_CAT_PRODUCT_ID_CMB = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_CAT_PRODUCT_ID_CMB");      	
			REC_PSACTUAL_CAT_PRODUCT_ID_CMB.onchange = 
				function()
				{
					if(REC_PSACTUAL_CAT_PRODUCT_ID_CMB.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_CAT_PRODUCT_ID_CMB.onkeypress = function(){REC_PSACTUAL_CAT_PRODUCT_ID_CMB.onchange();};
			REC_PSACTUAL_CAT_PRODUCT_ID_CMB.onpaste = function(){REC_PSACTUAL_CAT_PRODUCT_ID_CMB.onchange();};
			//REC_PSACTUAL_CAT_PRODUCT_ID_CMB.oninput = function(){REC_PSACTUAL_CAT_PRODUCT_ID_CMB.onchange();};							
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D01_TXT"))
		{
			REC_PSACTUAL_QTY_D01_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D01_TXT");      
			REC_PSACTUAL_QTY_D01_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D01_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D01_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D01_TXT.onchange();};
			REC_PSACTUAL_QTY_D01_TXT.onpaste = function(){REC_PSACTUAL_QTY_D01_TXT.onchange();};
			//REC_PSACTUAL_QTY_D01_TXT.oninput = function(){REC_PSACTUAL_QTY_D01_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D02_TXT"))
		{
			REC_PSACTUAL_QTY_D02_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D02_TXT");      
			REC_PSACTUAL_QTY_D02_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D02_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D02_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D02_TXT.onchange();};
			REC_PSACTUAL_QTY_D02_TXT.onpaste = function(){REC_PSACTUAL_QTY_D02_TXT.onchange();};
			//REC_PSACTUAL_QTY_D02_TXT.oninput = function(){REC_PSACTUAL_QTY_D02_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D03_TXT"))
		{
			REC_PSACTUAL_QTY_D03_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D03_TXT");      
			REC_PSACTUAL_QTY_D03_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D03_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D03_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D03_TXT.onchange();};
			REC_PSACTUAL_QTY_D03_TXT.onpaste = function(){REC_PSACTUAL_QTY_D03_TXT.onchange();};
			//REC_PSACTUAL_QTY_D03_TXT.oninput = function(){REC_PSACTUAL_QTY_D03_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D04_TXT"))
		{
			REC_PSACTUAL_QTY_D04_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D04_TXT");      
			REC_PSACTUAL_QTY_D04_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D04_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D04_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D04_TXT.onchange();};
			REC_PSACTUAL_QTY_D04_TXT.onpaste = function(){REC_PSACTUAL_QTY_D04_TXT.onchange();};
			//REC_PSACTUAL_QTY_D04_TXT.oninput = function(){REC_PSACTUAL_QTY_D04_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D05_TXT"))
		{
			REC_PSACTUAL_QTY_D05_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D05_TXT");      
			REC_PSACTUAL_QTY_D05_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D05_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D05_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D05_TXT.onchange();};
			REC_PSACTUAL_QTY_D05_TXT.onpaste = function(){REC_PSACTUAL_QTY_D05_TXT.onchange();};
			//REC_PSACTUAL_QTY_D05_TXT.oninput = function(){REC_PSACTUAL_QTY_D05_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D06_TXT"))
		{
			REC_PSACTUAL_QTY_D06_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D06_TXT");      
			REC_PSACTUAL_QTY_D06_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D06_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D06_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D06_TXT.onchange();};
			REC_PSACTUAL_QTY_D06_TXT.onpaste = function(){REC_PSACTUAL_QTY_D06_TXT.onchange();};
			//REC_PSACTUAL_QTY_D06_TXT.oninput = function(){REC_PSACTUAL_QTY_D06_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D07_TXT"))
		{
			REC_PSACTUAL_QTY_D07_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D07_TXT");      
			REC_PSACTUAL_QTY_D07_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D07_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D07_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D07_TXT.onchange();};
			REC_PSACTUAL_QTY_D07_TXT.onpaste = function(){REC_PSACTUAL_QTY_D07_TXT.onchange();};
			//REC_PSACTUAL_QTY_D07_TXT.oninput = function(){REC_PSACTUAL_QTY_D07_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D08_TXT"))
		{
			REC_PSACTUAL_QTY_D08_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D08_TXT");      
			REC_PSACTUAL_QTY_D08_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D08_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D08_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D08_TXT.onchange();};
			REC_PSACTUAL_QTY_D08_TXT.onpaste = function(){REC_PSACTUAL_QTY_D08_TXT.onchange();};
			//REC_PSACTUAL_QTY_D08_TXT.oninput = function(){REC_PSACTUAL_QTY_D08_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D09_TXT"))
		{
			REC_PSACTUAL_QTY_D09_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D09_TXT");      
			REC_PSACTUAL_QTY_D09_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D09_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D09_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D09_TXT.onchange();};
			REC_PSACTUAL_QTY_D09_TXT.onpaste = function(){REC_PSACTUAL_QTY_D09_TXT.onchange();};
			//REC_PSACTUAL_QTY_D09_TXT.oninput = function(){REC_PSACTUAL_QTY_D09_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D10_TXT"))
		{
			REC_PSACTUAL_QTY_D10_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D10_TXT");      
			REC_PSACTUAL_QTY_D10_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D10_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D10_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D10_TXT.onchange();};
			REC_PSACTUAL_QTY_D10_TXT.onpaste = function(){REC_PSACTUAL_QTY_D10_TXT.onchange();};
			//REC_PSACTUAL_QTY_D10_TXT.oninput = function(){REC_PSACTUAL_QTY_D10_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D11_TXT"))
		{
			REC_PSACTUAL_QTY_D11_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D11_TXT");      
			REC_PSACTUAL_QTY_D11_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D11_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D11_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D11_TXT.onchange();};
			REC_PSACTUAL_QTY_D11_TXT.onpaste = function(){REC_PSACTUAL_QTY_D11_TXT.onchange();};
			//REC_PSACTUAL_QTY_D11_TXT.oninput = function(){REC_PSACTUAL_QTY_D11_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D12_TXT"))
		{
			REC_PSACTUAL_QTY_D12_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D12_TXT");      
			REC_PSACTUAL_QTY_D12_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D12_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D12_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D12_TXT.onchange();};
			REC_PSACTUAL_QTY_D12_TXT.onpaste = function(){REC_PSACTUAL_QTY_D12_TXT.onchange();};
			//REC_PSACTUAL_QTY_D12_TXT.oninput = function(){REC_PSACTUAL_QTY_D12_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D13_TXT"))
		{
			REC_PSACTUAL_QTY_D13_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D13_TXT");      
			REC_PSACTUAL_QTY_D13_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D13_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D13_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D13_TXT.onchange();};
			REC_PSACTUAL_QTY_D13_TXT.onpaste = function(){REC_PSACTUAL_QTY_D13_TXT.onchange();};
			//REC_PSACTUAL_QTY_D13_TXT.oninput = function(){REC_PSACTUAL_QTY_D13_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D14_TXT"))
		{
			REC_PSACTUAL_QTY_D14_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D14_TXT");      
			REC_PSACTUAL_QTY_D14_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D14_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D14_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D14_TXT.onchange();};
			REC_PSACTUAL_QTY_D14_TXT.onpaste = function(){REC_PSACTUAL_QTY_D14_TXT.onchange();};
			//REC_PSACTUAL_QTY_D14_TXT.oninput = function(){REC_PSACTUAL_QTY_D14_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D15_TXT"))
		{
			REC_PSACTUAL_QTY_D15_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D15_TXT");      
			REC_PSACTUAL_QTY_D15_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D15_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D15_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D15_TXT.onchange();};
			REC_PSACTUAL_QTY_D15_TXT.onpaste = function(){REC_PSACTUAL_QTY_D15_TXT.onchange();};
			//REC_PSACTUAL_QTY_D15_TXT.oninput = function(){REC_PSACTUAL_QTY_D15_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D16_TXT"))
		{
			REC_PSACTUAL_QTY_D16_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D16_TXT");      
			REC_PSACTUAL_QTY_D16_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D16_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D16_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D16_TXT.onchange();};
			REC_PSACTUAL_QTY_D16_TXT.onpaste = function(){REC_PSACTUAL_QTY_D16_TXT.onchange();};
			//REC_PSACTUAL_QTY_D16_TXT.oninput = function(){REC_PSACTUAL_QTY_D16_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D17_TXT"))
		{
			REC_PSACTUAL_QTY_D17_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D17_TXT");      
			REC_PSACTUAL_QTY_D17_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D17_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D17_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D17_TXT.onchange();};
			REC_PSACTUAL_QTY_D17_TXT.onpaste = function(){REC_PSACTUAL_QTY_D17_TXT.onchange();};
			//REC_PSACTUAL_QTY_D17_TXT.oninput = function(){REC_PSACTUAL_QTY_D17_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D18_TXT"))
		{
			REC_PSACTUAL_QTY_D18_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D18_TXT");      
			REC_PSACTUAL_QTY_D18_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D18_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D18_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D18_TXT.onchange();};
			REC_PSACTUAL_QTY_D18_TXT.onpaste = function(){REC_PSACTUAL_QTY_D18_TXT.onchange();};
			//REC_PSACTUAL_QTY_D18_TXT.oninput = function(){REC_PSACTUAL_QTY_D18_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D19_TXT"))
		{
			REC_PSACTUAL_QTY_D19_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D19_TXT");      
			REC_PSACTUAL_QTY_D19_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D19_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D19_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D19_TXT.onchange();};
			REC_PSACTUAL_QTY_D19_TXT.onpaste = function(){REC_PSACTUAL_QTY_D19_TXT.onchange();};
			//REC_PSACTUAL_QTY_D19_TXT.oninput = function(){REC_PSACTUAL_QTY_D19_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D20_TXT"))
		{
			REC_PSACTUAL_QTY_D20_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D20_TXT");      
			REC_PSACTUAL_QTY_D20_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D20_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D20_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D20_TXT.onchange();};
			REC_PSACTUAL_QTY_D20_TXT.onpaste = function(){REC_PSACTUAL_QTY_D20_TXT.onchange();};
			//REC_PSACTUAL_QTY_D20_TXT.oninput = function(){REC_PSACTUAL_QTY_D20_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D21_TXT"))
		{
			REC_PSACTUAL_QTY_D21_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D21_TXT");      
			REC_PSACTUAL_QTY_D21_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D21_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D21_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D21_TXT.onchange();};
			REC_PSACTUAL_QTY_D21_TXT.onpaste = function(){REC_PSACTUAL_QTY_D21_TXT.onchange();};
			//REC_PSACTUAL_QTY_D21_TXT.oninput = function(){REC_PSACTUAL_QTY_D21_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D22_TXT"))
		{
			REC_PSACTUAL_QTY_D22_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D22_TXT");      
			REC_PSACTUAL_QTY_D22_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D22_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D22_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D22_TXT.onchange();};
			REC_PSACTUAL_QTY_D22_TXT.onpaste = function(){REC_PSACTUAL_QTY_D22_TXT.onchange();};
			//REC_PSACTUAL_QTY_D22_TXT.oninput = function(){REC_PSACTUAL_QTY_D22_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D23_TXT"))
		{
			REC_PSACTUAL_QTY_D23_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D23_TXT");      
			REC_PSACTUAL_QTY_D23_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D23_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D23_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D23_TXT.onchange();};
			REC_PSACTUAL_QTY_D23_TXT.onpaste = function(){REC_PSACTUAL_QTY_D23_TXT.onchange();};
			//REC_PSACTUAL_QTY_D23_TXT.oninput = function(){REC_PSACTUAL_QTY_D23_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D24_TXT"))
		{
			REC_PSACTUAL_QTY_D24_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D24_TXT");      
			REC_PSACTUAL_QTY_D24_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D24_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D24_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D24_TXT.onchange();};
			REC_PSACTUAL_QTY_D24_TXT.onpaste = function(){REC_PSACTUAL_QTY_D24_TXT.onchange();};
			//REC_PSACTUAL_QTY_D24_TXT.oninput = function(){REC_PSACTUAL_QTY_D24_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D25_TXT"))
		{
			REC_PSACTUAL_QTY_D25_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D25_TXT");      
			REC_PSACTUAL_QTY_D25_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D25_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D25_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D25_TXT.onchange();};
			REC_PSACTUAL_QTY_D25_TXT.onpaste = function(){REC_PSACTUAL_QTY_D25_TXT.onchange();};
			//REC_PSACTUAL_QTY_D25_TXT.oninput = function(){REC_PSACTUAL_QTY_D25_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D26_TXT"))
		{
			REC_PSACTUAL_QTY_D26_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D26_TXT");      
			REC_PSACTUAL_QTY_D26_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D26_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D26_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D26_TXT.onchange();};
			REC_PSACTUAL_QTY_D26_TXT.onpaste = function(){REC_PSACTUAL_QTY_D26_TXT.onchange();};
			//REC_PSACTUAL_QTY_D26_TXT.oninput = function(){REC_PSACTUAL_QTY_D26_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D27_TXT"))
		{
			REC_PSACTUAL_QTY_D27_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D27_TXT");      
			REC_PSACTUAL_QTY_D27_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D27_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D27_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D27_TXT.onchange();};
			REC_PSACTUAL_QTY_D27_TXT.onpaste = function(){REC_PSACTUAL_QTY_D27_TXT.onchange();};
			//REC_PSACTUAL_QTY_D27_TXT.oninput = function(){REC_PSACTUAL_QTY_D27_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D28_TXT"))
		{
			REC_PSACTUAL_QTY_D28_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D28_TXT");      
			REC_PSACTUAL_QTY_D28_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D28_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D28_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D28_TXT.onchange();};
			REC_PSACTUAL_QTY_D28_TXT.onpaste = function(){REC_PSACTUAL_QTY_D28_TXT.onchange();};
			//REC_PSACTUAL_QTY_D28_TXT.oninput = function(){REC_PSACTUAL_QTY_D28_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D29_TXT"))
		{
			REC_PSACTUAL_QTY_D29_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D29_TXT");      
			REC_PSACTUAL_QTY_D29_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D29_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D29_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D29_TXT.onchange();};
			REC_PSACTUAL_QTY_D29_TXT.onpaste = function(){REC_PSACTUAL_QTY_D29_TXT.onchange();};
			//REC_PSACTUAL_QTY_D29_TXT.oninput = function(){REC_PSACTUAL_QTY_D29_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D30_TXT"))
		{
			REC_PSACTUAL_QTY_D30_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D30_TXT");      
			REC_PSACTUAL_QTY_D30_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D30_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D30_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D30_TXT.onchange();};
			REC_PSACTUAL_QTY_D30_TXT.onpaste = function(){REC_PSACTUAL_QTY_D30_TXT.onchange();};
			//REC_PSACTUAL_QTY_D30_TXT.oninput = function(){REC_PSACTUAL_QTY_D30_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_D31_TXT"))
		{
			REC_PSACTUAL_QTY_D31_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_D31_TXT");      
			REC_PSACTUAL_QTY_D31_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_D31_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_D31_TXT.onkeypress = function(){REC_PSACTUAL_QTY_D31_TXT.onchange();};
			REC_PSACTUAL_QTY_D31_TXT.onpaste = function(){REC_PSACTUAL_QTY_D31_TXT.onchange();};
			//REC_PSACTUAL_QTY_D31_TXT.oninput = function(){REC_PSACTUAL_QTY_D31_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_QTY_TOTAL_TXT"))
		{
			REC_PSACTUAL_QTY_TOTAL_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_QTY_TOTAL_TXT");      
			REC_PSACTUAL_QTY_TOTAL_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_QTY_TOTAL_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_QTY_TOTAL_TXT.onkeypress = function(){REC_PSACTUAL_QTY_TOTAL_TXT.onchange();};
			REC_PSACTUAL_QTY_TOTAL_TXT.onpaste = function(){REC_PSACTUAL_QTY_TOTAL_TXT.onchange();};
			//REC_PSACTUAL_QTY_TOTAL_TXT.oninput = function(){REC_PSACTUAL_QTY_TOTAL_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_DATE_DTP"))
		{
			REC_PSACTUAL_DATE_DTP = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_DATE_DTP");   
			JSOC_ELEMENT.VAR_VALUE(REC_PSACTUAL_DATE_DTP, JSVC_DATE.VAR_FORMAT(JSVC_DATE.VAR_NOW(), "YYYY-MM-DD" + "T00:00"));
			REC_PSACTUAL_DATE_DTP.onchange = 
				function()
				{
					if(REC_PSACTUAL_DATE_DTP.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_DATE_DTP.onkeypress = function(){REC_PSACTUAL_DATE_DTP.onchange();};
			REC_PSACTUAL_DATE_DTP.onpaste = function(){REC_PSACTUAL_DATE_DTP.onchange();};
			REC_PSACTUAL_DATE_DTP.oninput = function(){REC_PSACTUAL_DATE_DTP.onchange();};					
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("SEARCH_REC_PSACTUAL_DATE_DTP"))
		{
			JSOC_ELEMENT.VAR_VALUE("SEARCH_REC_PSACTUAL_DATE_DTP", JSVC_DATE.VAR_FORMAT(JSVC_DATE.VAR_NOW(), "YYYY-MM-DD") + "T00:00");
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("SEARCH_REC_PSACTUAL_DATE_FROM_DTP"))
		{
			var SEARCH_REC_PSACTUAL_DATE_FROM_DTP = JSOC_ELEMENT.VAR_GET("SEARCH_REC_PSACTUAL_DATE_FROM_DTP");
			if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS('SEARCH_REC_PSACTUAL_DATE_CMB'))
			{
				SEARCH_REC_PSACTUAL_DATE_FROM_DTP.onchange = function()
				{
					if(SEARCH_REC_PSACTUAL_DATE_FROM_DTP.disabled == false)
					{
						JSOC_CMB.VAR_SELECTED_VALUE('SEARCH_REC_PSACTUAL_DATE_CMB', JSOC_DTP.FLAG_CUSTOM.toString());
					}
				};
			}
			else
			{
				JSOC_ELEMENT.VAR_VALUE(SEARCH_REC_PSACTUAL_DATE_FROM_DTP, JSVC_DATE.VAR_FORMAT(JSVC_DATE.VAR_ADD('DAY', -7, JSVC_DATE.VAR_NOW()), "YYYY-MM-DD") + "T00:00");
			}
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("SEARCH_REC_PSACTUAL_DATE_TO_DTP"))
		{
			var SEARCH_REC_PSACTUAL_DATE_TO_DTP = JSOC_ELEMENT.VAR_GET("SEARCH_REC_PSACTUAL_DATE_TO_DTP");
			if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS('SEARCH_REC_PSACTUAL_DATE_CMB'))
			{
				SEARCH_REC_PSACTUAL_DATE_TO_DTP.onchange = function()
				{
					if(SEARCH_REC_PSACTUAL_DATE_TO_DTP.disabled == false)
					{
						JSOC_CMB.VAR_SELECTED_VALUE('SEARCH_REC_PSACTUAL_DATE_CMB', JSOC_DTP.FLAG_CUSTOM.toString());
					}
				};
			}
			else
			{
				JSOC_ELEMENT.VAR_VALUE(SEARCH_REC_PSACTUAL_DATE_TO_DTP, JSVC_DATE.VAR_FORMAT(JSVC_DATE.VAR_ADD('DAY', -7, JSVC_DATE.VAR_NOW()), "YYYY-MM-DD") + "T00:00");
			}					
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS('SEARCH_REC_PSACTUAL_DATE_CMB'))
		{
			// Initialize
			var SEARCH_REC_PSACTUAL_DATE_CMB = JSOC_ELEMENT.VAR_GET("SEARCH_REC_PSACTUAL_DATE_CMB");
			JSOC_DTP.VAR_CREATE_LIST(SEARCH_REC_PSACTUAL_DATE_CMB);
				
			// Setup onChange event
			SEARCH_REC_PSACTUAL_DATE_CMB.onchange = function()
			{
				if(SEARCH_REC_PSACTUAL_DATE_CMB.disabled == false)
				{
					JSOC_DTP.VAR_DATESET_ASSIGN
					(
						"SEARCH_REC_PSACTUAL_DATE_FROM_DTP", 
						"SEARCH_REC_PSACTUAL_DATE_TO_DTP", 
						SEARCH_REC_PSACTUAL_DATE_CMB
					);
				}
			};
				
			// Set to this week
			JSOC_CMB.VAR_SELECTED_VALUE('SEARCH_REC_PSACTUAL_DATE_CMB', '3'); 
			SEARCH_REC_PSACTUAL_DATE_CMB.onchange();
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_REMARKS_TXT"))
		{
			REC_PSACTUAL_REMARKS_TXT = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_REMARKS_TXT");      
			REC_PSACTUAL_REMARKS_TXT.onchange = 
				function()
				{
					if(REC_PSACTUAL_REMARKS_TXT.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_REMARKS_TXT.onkeypress = function(){REC_PSACTUAL_REMARKS_TXT.onchange();};
			REC_PSACTUAL_REMARKS_TXT.onpaste = function(){REC_PSACTUAL_REMARKS_TXT.onchange();};
			//REC_PSACTUAL_REMARKS_TXT.oninput = function(){REC_PSACTUAL_REMARKS_TXT.onchange();};
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("REC_PSACTUAL_STATUS_CMB"))
		{
			REC_PSACTUAL_STATUS_CMB = JSOC_ELEMENT.VAR_GET("REC_PSACTUAL_STATUS_CMB");      	
			REC_PSACTUAL_STATUS_CMB.onchange = 
				function()
				{
					if(REC_PSACTUAL_STATUS_CMB.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};
			REC_PSACTUAL_STATUS_CMB.onkeypress = function(){REC_PSACTUAL_STATUS_CMB.onchange();};
			REC_PSACTUAL_STATUS_CMB.onpaste = function(){REC_PSACTUAL_STATUS_CMB.onchange();};
			//REC_PSACTUAL_STATUS_CMB.oninput = function(){REC_PSACTUAL_STATUS_CMB.onchange();};							
		}
		if(JSOC_ELEMENT.VAR_ELEMENT_EXISTS("PARAM_REC_PSACTUAL_ID_FILE_FP"))
		{
			PARAM_REC_PSACTUAL_ID_FILE_FP = JSOC_ELEMENT.VAR_GET("PARAM_REC_PSACTUAL_ID_FILE_FP");
			PARAM_REC_PSACTUAL_ID_FILE_FP.onchange = 
				function()
				{
					if(PARAM_REC_PSACTUAL_ID_FILE_FP.disabled == false)
					{
						EDIT_HANDLER.REF_IS_MODIFIED = true;
					}
				};			
		}
				
		
		// Initialize: Default Settings
		// ...........................................
		// FORM_PREPARE_DEFAULT_SETTINGS();   	
	};