function selchanged(field, value) { if (value == ‘custom’ || value == ‘checked’) { document.getElementById(field).className=”; } else if (value == ‘disable’) { document.getElementById(field).disabled = true; document.getElementById(field).parentNode.className = ‘az-disabled’; } else if (value == ‘enable’) { document.getElementById(field).disabled = false; document.getElementById(field).parentNode.className = ”; } else { document.getElementById(field).className=’az-hide’; } } selchanged(‘custom-single’, ‘disable’ );