﻿function clearBg(targetControl)
{
    targetControl.style.backgroundImage = 'none';
}

function replaceBg(targetControl, backgroundUrl) {
    if (targetControl.value == '') {
        targetControl.style.backgroundImage = 'url(' + backgroundUrl + ')';
    }
}

