Örnek bir kod yazdım sana anlamazsan biraz daha detaylı açıklayabilirim.


<?
 echo "
<form method=post name=kullaniciduzenle" action=>
<tr>
    <td>Yetki</td>
    <td>:</td>
    <td><select onchange=\"kontrol()\" name=\"yetki\" id=\"yetki\">
<option value=\"okur\" >Okur</option>
<option value=\"yazar\" >Caylak</option>
<option value=\"yazar\" >Yazar</option>
<option value=\"mod\" >Moderator</option>
      <option value=\"admin\" >Admin</option>";
    echo "</select></td>
  </tr>
  <tr>
    <td>Durum</td>
    <td>:</td>
    <td><select name=\"durum\" onchange=\"kontrol()\" id=\"durum\">
 <option value=\"aktif\" >Aktif</option>
<option value=\"aktifdegil\" >Aktif_Degil</option>
<option value=\"sus\" >Banli</option>
</select></td>
  </tr>
</form>
";
?>
<script type="text/javascript">
kontrol();
function kontrol(){
	var x;
	if(document.kullaniciduzenle.yetki.selectedIndex==0 || document.kullaniciduzenle.yetki.selectedIndex==1){
		document.kullaniciduzenle.durum.selectedIndex=1;
		document.kullaniciduzenle.durum.options[0].disabled = true;
		document.kullaniciduzenle.durum.options[2].disabled = true;
	}
	else{
		document.kullaniciduzenle.durum.options[0].disabled = false;
		document.kullaniciduzenle.durum.options[1].disabled = false;
		document.kullaniciduzenle.durum.options[2].disabled = false;
	}
	if((document.kullaniciduzenle.yetki.selectedIndex==2 || document.kullaniciduzenle.yetki.selectedIndex==3 || document.kullaniciduzenle.yetki.selectedIndex==4 || document.kullaniciduzenle.yetki.selectedIndex==5 ) && document.kullaniciduzenle.durum.selectedIndex!=2){
		document.kullaniciduzenle.durum.selectedIndex=0;
		document.kullaniciduzenle.durum.options[1].disabled = true;
		x=1;
			}
	
	else if(document.kullaniciduzenle.durum.selectedIndex==2){
		document.kullaniciduzenle.yetki.selectedIndex=0;
		document.kullaniciduzenle.yetki.disabled=true;
	}
	else{
	document.kullaniciduzenle.yetki.disabled=false;	
	document.kullaniciduzenle.durum.options[1].disabled = false;
	}

	
}
</script>