<!--//

function storeGlobalEntries(){
	// 03/19/2003	All array information related to asset classes has been
	//				remove, since that control has been changed to checkboxes.
	var strProps = '';
	var strAssets = '';
	var strPropsText = '';
	var strAssetClassText = '';
	////////////  Investment Properties  /////////////////////////////////
	
	// store investment property listing (ID & Qty & PropValue)
	for(var x = 0; x < m_intInvPropsIndex; x++){
		//alert('Props: ID = ' + m_intInvPropsID[x] + ' Qty = ' + m_intInvPropsQty[x]);
		if(strProps != '') strProps +=  '^';
		var strPropID = m_intInvPropsID[x]  + '';
		strProps +=  strPropID + '^' + m_intInvPropsQty[x] + '^' + m_dblInvPropsValue[x];
		
	}
	//alert('strProps = ' + strProps);
	if(!($('InvestPropsList') == null)) $('InvestPropsList').value = strProps;
	
	// Store investment property listing (ID & Text)
	if(!($('cboInvProps') == null)){
		for(var x = 0; x < $('cboInvProps').length; x++){
			var strPropID = $('cboInvProps').options[x].value + '';
			if(strPropsText != '') strPropsText +=  '!';
			strPropsText +=  strPropID + '^' + $('cboInvProps').options[x].text;
			
			
		}
	}
	//alert('strPropsText = ' + strPropsText);
	if(!($('PropsListText') == null)) $('PropsListText').value = strPropsText;
	
	// Store the arrays as actual values
	var strInvPropsText = '';
	var strInvPropsID = '';
	var strInvPropsQty  = '';
	var strInvPropsPropValue = '';
	
	for (var x = 0; x < m_intInvPropsIndex; x++){
		if(!(m_strInvPropsText[x]==null)) {
			if(strInvPropsText != '' ) strInvPropsText += "^";
			if(strInvPropsID != '' ) strInvPropsID +=   "^";
			if(strInvPropsQty != '' ) strInvPropsQty +=   "^";
			if(strInvPropsPropValue != '' ) strInvPropsPropValue +=  "^";
			strInvPropsText +=  m_strInvPropsText[x];
			strInvPropsID +=  m_intInvPropsID[x];
			strInvPropsQty +=  m_intInvPropsQty[x];
			strInvPropsPropValue +=  m_dblInvPropsValue[x];
		}
	}
	//alert('strInvPropsText = ' + strInvPropsText + '\n strInvPropsID = ' + strInvPropsID + '\n strInvPropsQty = ' + strInvPropsQty);
	if(!($('arrInvPropsText') == null)) $('arrInvPropsText').value = strInvPropsText;
	if(!($('arrInvPropsID') == null)) $('arrInvPropsID').value = strInvPropsID;
	if(!($('arrInvPropsQty') == null)) $('arrInvPropsQty').value = strInvPropsQty;
	if(!($('arrInvPropsPropValue') == null)) $('arrInvPropsPropValue').value = strInvPropsPropValue;
	
}
function loadStoredGlobals(){
	// 03/19/2003	All array information related to asset classes has been
	//				remove, since that control has been changed to checkboxes.

	//alert('loadStoredGlobals...');
	
	if ((!($('arrInvPropsText') == null)) &&
		(!($('arrInvPropsText') == null)) &&
		(!($('arrInvPropsText') == null)) &&
		(!($('arrInvPropsText') == null))){
		
		var strInvPropsText = $('arrInvPropsText').value;
		var strInvPropsID = $('arrInvPropsID').value;
		var strInvPropsQty = $('arrInvPropsQty').value;
		var strInvPropsPropValue = $('arrInvPropsPropValue').value;
		
		// Exit if this is the first time the page has loaded
		if((!(strInvPropsText == '')) && (!(strInvPropsText == null))) {
		
			var arrInvPropsText = strInvPropsText.split('^'); 
			var arrInvPropsID = strInvPropsID.split('^');
			var arrInvPropsQty = strInvPropsQty.split('^');
			var arrInvPropsPropValue = strInvPropsPropValue.split('^');
			
			//alert('arrInvPropsText.length = ' + arrInvPropsText.length);
			// Copy the stored values into the global arrays
			for (var x = 0; x <= arrInvPropsText.length; x++){
				if(!(arrInvPropsText[x] == null)){
					m_strInvPropsText[x] = arrInvPropsText[x];
					m_intInvPropsID[x] = arrInvPropsID[x];
					m_intInvPropsQty[x] = arrInvPropsQty[x];
					m_dblInvPropsValue[x] = arrInvPropsPropValue[x];
					m_intInvPropsIndex +=  1;
				}
			}
		}
	}
	
	// Display the array values (for debugging purposes)
	//listArrays();
}
function listArrays(){
	// 03/19/2003	All array information related to asset classes has been
	//				remove, since that control has been changed to checkboxes.

	var strValues = '';
	alert('listArrays...');
	
	for (intIndex = 0; intIndex < m_intInvPropsIndex ; intIndex++){
		strValues += 'Index(' + intIndex + ')\t';
		strValues += 'Property=' + m_strInvPropsText[intIndex] + '\t';
		strValues += 'PropID=' + m_intInvPropsID[intIndex] + '\t' ;
		strValues += 'Qty=' + m_intInvPropsQty[intIndex] + '\t' ;
		strValues += 'PropValue=' + m_dblInvPropsValue[intIndex];
		strValues += '\n\r';
	}
	
	alert(strValues);

}


//-->