function disable_checkbox(mycheckbox) { cb = document.photointmp.elements[mycheckbox] if(cb.disabled) cb.disabled = false; else cb.disabled = true; } function switch_checkbox(del, move) { del = document.photointmp.elements[del]; move = document.photointmp.elements[move]; if(move.checked) { move.checked = false; del.disabled = false; del.checked = false; } else { del.checked = false; del.disabled = true; move.disabled = false; move.checked = true; } } function change_on_click(mycheckbox) { cb = document.display_photo.elements[mycheckbox]; if(cb.checked) cb.checked = false; else cb.checked = true; } function popup_big(url, name) { newwin = window.open(url, name, 'width=580, height=600, scrollbars=1,resizable=1'); } function popup_txt(url, name) { newwin = window.open(url, name, 'width=580, height=600, scrollbars=1,resizable=1'); } function toggle_detail_photo() { status = document.detail_photo.toggle_checkbox.checked; els = document.detail_photo.elements.length; for(i = 1; i < els; i++) { document.detail_photo.elements[i].checked = status; } }