	

	function updateDropDownBox(e,sTextBox,oComboBox)
	{
		var sCurrent;
		var i;
		var iKeyCode;
		var sKeyCode;
			
		sCurrent = '';
		i = 0;
		iKeyCode =0;
		sKeyCode = '';	
		oComboBox.selectIndex = 0;
				
	//	get the keypressed
	
		//var e=(typeof event =="undefined")?arguments[0]:event
		//iKeyCode =("keyCode" in e)?e.keyCode:("which" in e)?e.which:null
		
		iKeyCode = e.keyCode
		
		//alert('Before: ' + iKeyCode);
	
	//	Check the numeric keypad
		if (iKeyCode >= 96 && iKeyCode <= 105)
		{
			iKeyCode = iKeyCode - 48;	
		} 
		
		//alert('After: ' + iKeyCode);
	//
	//	assign the asc value to a character code			
		sKeyCode = String.fromCharCode(iKeyCode);
		
	// 	sCurrent = left ( sTextBox , length (sTextBox) )	
		sCurrent = sTextBox.value.substring(0,(sTextBox.value.length)) + sKeyCode;
		
		//alert(sTextBox.value + ' - ' + sKeyCode);
		
		for (i = 0 ; i < oComboBox.length  ; i++) 
		{
			
			//	match the values
			if ( oComboBox.options[i].value.substring(0,(sCurrent.length)) == sCurrent)
			{
				// change pointer of combobox
				oComboBox.selectedIndex = i;
				// exit the loop once value is close enough
				break
			} 
		}
	}

	function validateLinkedBox(sTextBox,oComboBox)
	{
		var sCode;
		var sId = oComboBox.options[oComboBox.selectedIndex].value
		
		sCode = '';
		
		//alert(sId);
		
		if (sTextBox.value.length > 0)
		{
			
			if ( oComboBox.options[oComboBox.selectedIndex].value.substring(0,sTextBox.value.length) != sTextBox.value)
			{
				if ((sId != "-1") && (sId != "0"))
				{
					sCode = oComboBox.options[oComboBox.selectedIndex.value];
					sTextBox.value = (oComboBox.options[oComboBox.selectedIndex].value);
				}
				else
				{
					sTextBox.value = ""				
				}
			}
		}
		else
		{
			if ((sId != "-1") && (sId != "0"))
			{
				sCode = oComboBox.options[oComboBox.selectedIndex].value;
				sTextBox.value = oComboBox.options[oComboBox.selectedIndex].value;
			}
			else
			{
				sTextBox.value = ""				
			}
		}
	}
	
	function changeComboSelection(sTextBox,oComboBox)
	{
		var sCode;
		var sId = oComboBox.options[oComboBox.selectedIndex].value
		
		sCode = '';
		
		//alert(sId);
		
		if ((sId != "-1") && (sId != "0"))
		{
			sCode = oComboBox.options[oComboBox.selectedIndex.value];
			sTextBox.value = (oComboBox.options[oComboBox.selectedIndex].value);
		}
		else
		{
			sTextBox.value = ""				
		}
	}
