﻿function hide(ID)
{
    var bh = $find(ID);
    bh.hidePopup();
}

 function select(pDisplayValue, pValue, controlID, hfID, BehaviorID)
 {
    var tb, hf;
    tb = $get(controlID);
    hf = $get(hfID);
    
    tb.value = pDisplayValue;
    tb.className='';
    
    hf.value = pValue;
    
    hide(BehaviorID);
 }
