<!--	
	var border = '1px solid #7F9DB9';
	var errorFields = '';

/* -------------------------------------------------------------------------------------------------------	*/

	function initBorderStyle()
	{
		var o = document.getElementById('sum');
		
		if ( o )
		{
			if ( o.style.border != '' )
				border = o.style.border;
		}
	}

/* -------------------------------------------------------------------------------------------------------	*/

	function errorHighlight( mode )
	{
		if ( window.errorFields )
		{
			for ( i in errorFields )
			{
				var o = document.getElementById(errorFields[i]);		
				if ( o )
				{
					if ( mode == 'on' )
						if ( o.tagName.toLowerCase() == 'td' || o.tagName.toLowerCase() == 'label' )
							o.style.color = 'red';
						else
						{
							o.style.border = '1px solid red';
							o.style.paddingLeft = '3px';
							o.style.paddingTop = '2px';
							o.style.paddingBottom = '2px';
						}					
					else
						if ( o.tagName.toLowerCase() == 'td' || o.tagName.toLowerCase() == 'label' )
							o.style.color = '';
						else
						{
							o.style.border = border;
							o.style.paddingLeft = '3px';
							o.style.paddingTop = '2px';
							o.style.paddingBottom = '2px';
						}
					
				}
	
			}
		}
	}	
	
/* -------------------------------------------------------------------------------------------------------	*/

	function showGpl()
	{
		var o = document.getElementById('gplDesc');
		
		if ( o )
		{
			o.style.display = 'block';
		}
	}	
		
/* -------------------------------------------------------------------------------------------------------	*/

	function hideGpl()
	{
		var o = document.getElementById('gplDesc');
		
		if ( o )
		{
			o.style.display = 'none';
		}
	}			
	
/* ----------------------------------------------------------------------------------------------------- */	

	function showLoyaltyNote(loyaltyID)
	{
		var noteText = '';
		
		switch (loyaltyID)
		{
			case '3': noteText = gemb_customer_note;
					  break;
			case '4': noteText = local_gov_employee_note;
					  break;
		}
		
		if ( noteText == '' )
		{
			hideLoyaltyNote(loyaltyID);
			return;
		}
			
		var o = document.getElementById('loyaltyAsterisk');
		
		if ( o )
		{
			o.style.display = 'inline';
		}	
	
		var o = document.getElementById('loyaltyNote');
		
		if ( o )
		{
			var txt = document.getElementById('loyaltyNoteText');
			if ( txt )
				txt.innerHTML = noteText;
			o.style.display = 'block';
		}
	}
	
/* ----------------------------------------------------------------------------------------------------- */	

	function hideLoyaltyNote(loyaltyID)
	{
		var o = document.getElementById('loyaltyAsterisk');
		
		if ( o )
		{
			o.style.display = 'none';
		}
			
		var o = document.getElementById('loyaltyNote');
		
		if ( o )
		{
			o.style.display = 'none';
		}
	}

/* ----------------------------------------------------------------------------------------------------- */	

	function checkLoyalty(loyaltyID)
	{
	
		switch (loyaltyID)
		{
			case '3': 
			case '4': showLoyaltyNote(loyaltyID);
					  break;
			default:
					hideLoyaltyNote(loyaltyID);
					break;
		}
	}

/* ----------------------------------------------------------------------------------------------------- */	
-->