function numericUp(id, changeBg) { var txtbox = document.getElementById(id), value = parseInt(txtbox.value, 10); if (!isNaN(value)) { txtbox.value = (value + 1).toString(); changeBg == 1 && changeBgColor(id) } } function numericDown(id, changeBg) { var txtbox = document.getElementById(id), value = parseInt(txtbox.value, 10); if (!isNaN(value) && value - 1 >= 0) { txtbox.value = (value - 1).toString(); changeBg == 1 && changeBgColor(id) } } function changeBgColor(id) { var txtbox = document.getElementById(id); txtbox.style.backgroundColor = "lightgray"; txtbox.title = "Changes not saved yet, click Add to order to save them." }

function showPopupImage(text, src)
{
    $get('imgPopup').src = '';
    $get('spnImageText').innerHTML = 'Loading...';
    $get('imgPopup').src = src;
    $find('ImageMpe').show();

    var myInterval = window.setInterval(
        function()
        {
            if (document.images['imgPopup'].complete)
            {
                $get('spnImageText').innerHTML = text;
                clearInterval(myInterval);
            }
        }, 100);
}





