function whichradio(){ // check for a selected radio button
	if (!document.getElementsByTagName) return false;
	formfield=document.sd.rdnType // formname and input names to be checked
	for(i=0;i<formfield.length;i++)
	if (formfield[i].checked==true){ // identify selected radio button
	document.getElementById(formfield[i].id).parentNode.parentNode.className="on"
	} 
	else { // identify selected radio button
	document.getElementById(formfield[i].id).parentNode.parentNode.className="off"
	}
	}
//window.onload=whichradio; //not when more than one onload
function whichradio2(){ // check for a selected radio button
	if (!document.getElementsByTagName) return false;
	formfield=document.sd.radioSearch // formname and input names to be checked
	for(i=0;i<formfield.length;i++)
	if (formfield[i].checked==true){ // identify selected radio button
	document.getElementById(formfield[i].id).parentNode.className="off local on2"
	} 
	else { // identify selected radio button
	document.getElementById(formfield[i].id).parentNode.className="off local"
	}
	}
function whichradio3(){ // check for a selected radio button
	if (!document.getElementsByTagName) return false;
	formfield=document.sd.more // formname and input names to be checked
	for(i=0;i<formfield.length;i++)
	if (formfield[i].checked==true){ // identify selected radio button
	document.getElementById(formfield[i].id).parentNode.className="on3"
	} 
	else { // identify selected radio button
	document.getElementById(formfield[i].id).parentNode.className="off3"
	}
	}

// New script added SEPT 2009
function disable(){
	if (!document.getElementsByTagName) return false;
	document.getElementById("nursecare").onclick = disableReligious;
	document.getElementById("religious").onclick = disableNursecare;
	}
function disableReligious(){
	if (document.getElementById("nursecare").checked)  {
 	document.getElementById("religious").disabled = true;
	document.getElementById("religiousLabel").style.color = "#999";
 	} else {
        document.getElementById("religious").disabled = false;
		document.getElementById("religiousLabel").style.color = "";
        }
}
function disableNursecare(){
	if (document.getElementById("religious").checked)  {
 	document.getElementById("nursecare").disabled = true;
	document.getElementById("nurscareLabel").style.color = "#999";
 	} else {
        document.getElementById("nursecare").disabled = false;
		document.getElementById("nurscareLabel").style.color = "";
        }
}

addEvent(window, 'load', whichradio, false);
addEvent(window, 'load', whichradio2, false);
addEvent(window, 'load', whichradio3, false);
addEvent(window, 'load', disable, false);
addEvent(window, 'load', disableReligious, false);
addEvent(window, 'load', disableNursecare, false);
