function checkrequireadop(which){
var pass=true

if (document.adopcja.ad_imie.value.length ==""){
document.adopcja.ad_imie.style.backgroundColor="yellow"
document.getElementById("imiex").style.display = 'block';
return false
}


if (document.adopcja.ad_cat.value =="0"){

document.adopcja.ad_cat.style.backgroundColor="yellow"
document.getElementById("catex").style.display = 'block';
return false
}

if (document.adopcja.ad_plec.value =="0"){

document.adopcja.ad_plec.style.backgroundColor="yellow"
document.getElementById("plecx").style.display = 'block';
return false
}

if (document.adopcja.ad_wiek.value.length ==""){
document.adopcja.ad_wiek.style.backgroundColor="yellow"
document.getElementById("wiekx").style.display = 'block';
return false
}




if (document.adopcja.ad_rasa.value.length ==""){
document.adopcja.ad_rasa.style.backgroundColor="yellow"
document.getElementById("rasax").style.display = 'block';
return false
}






if (document.adopcja.ad_opis.value.length ==""){
document.adopcja.ad_opis.style.backgroundColor="yellow"
document.getElementById("opisx").style.display = 'block';
return false
}





if (document.adopcja.ad_status.value =="2" && document.adopcja.ad_uw.value.length ==""){
document.adopcja.ad_uw.style.backgroundColor="yellow"

document.getElementById("uwagix").style.display = 'block';
return false
}



return true
}


// jesli status jest zaadoptowany to pokaz pole uwagi
