function DisableIfValueMatches( dropDownListId, inputToDisableId, disableValue )
{
    var dropdownList = document.getElementById(dropDownListId);
    var inputElement = document.getElementById(inputToDisableId);
    inputElement.disabled = ( dropdownList[dropdownList.selectedIndex].value == disableValue );
}