popupsDir = 'http://www.maxi.by/Framework_client/Controls/wysiwyg_popups/';imagesDir = 'http://www.maxi.by/Framework_client/Skins/images/wysiwyg/'; var fileLoadingImage = 'http://www.maxi.by/Framework_client/Skins/images/ImageList/loading.gif'; var fileBottomNavCloseImage = 'http://www.maxi.by/Framework_client/Skins/images/ImageList/closelabel.gif'; var openpopupsImageDir = 'http://www.maxi.by/Framework_client/Skins/images/openpopups/'; function CheckBoxClick(inputid, imgid) { var input = document.getElementById(inputid); var img = document.getElementById(imgid); input.value++; if(input.value == '3') input.value = 0; if (input.getAttribute('IsTwoState') == 'True' && input.value == '1') input.value = '2'; switch(input.value) { case '0': img.src = 'http://www.maxi.by/Framework_client/Skins/images/ThreeStateCheckBox/unchecked.png'; img.title = 'Нет'; break; case '1': img.src = 'http://www.maxi.by/Framework_client/Skins/images/ThreeStateCheckBox/unknown.gif'; img.title = 'Не задано'; break; case '2': img.src = 'http://www.maxi.by/Framework_client/Skins/images/ThreeStateCheckBox/checked.gif'; img.title = 'Да'; break; } }