function highlight(elm, val) 
{ 
 if(val != '')  
 { 
 var i, found; 
 found = false; 
 if (document.forms[0][elm])
  {
	 for(i = 0; i < document.forms[0][elm].length; i++)
	 { 
	   if(document.forms[0][elm][i].value == val)
		 {
		 found=true; 
		 document.forms[0][elm].selectedIndex = i; 
		 break;
		 }
	 }
   if (!found)
     { 
	  var otherBox = elm + "_other"
	  if (document.forms[0][otherBox]) 
	    { 
		showOther(elm); 
		document.forms[0][otherBox].value = val; 
		updateSelect(elm, val); 
		highlight(elm, val); 
		} 
	 } 
  }
 }
 return false; 
} 

function checkValue(elm, val) { 

 if (val != '') { 
 	var i; 
	for (i = 0; i < document.forms[0][elm].length; i++)  
	if (document.forms[0][elm][i].value == val) 
		document.forms[0][elm][i].checked = true; 
 } 

} 

