you can do both action in single function.
use below code :
function DisplayHidePanel(RadioButtonListId, PanelId) {
var radio = document.getElementsByName(RadioButtonListId);
if (radio.length > 0) {
for (var j = 0; j < radio[0].cells.length; j++) {
for (var k = 0; k < radio[0].cells[j].children.length; k++) {
if (radio[0].cells[j].children[k].checked == true && radio[0].cells[j].innerText == "Yes") {
document.getElementById(PanelId).style.display = "block";
}
else if (radio[0].cells[j].children[k].checked == true && radio[0].cells[j].innerText == "No") {
document.getElementById(PanelId).style.display = "none";
}
}
}
}
}