<td class="ri info-opt data"><input type="radio" name="friend" class="friend_id" value="bff"
onclick="info_onlyifknown_isvisible();">Amico fidato</td>
</tr>
-<tr class="onlyifknown_id">
+<tr class="onlyifknown_gid">
<td class="le head"><span><?php echo $mlang_room['info_skill'][$G_lang]; ?>:</span></td>
<td class="data">
<table class="fiverank" style="margin: auto;">
function info_onlyifknown_isvisible()
{
var vis = 'inherit';
- var arr = $('info').getElementsByClassName('friend_id');
+ var arr = fieldify_get_dom_element([$('info')], 'friend');
var obj = null;
for (var k = 0 ; k < arr.length ; k++) {
if (obj.value == 'black' || obj.value == 'unknown') {
vis = 'hidden';
}
- $('info').getElementsByClassName('onlyifknown_id')[0].style.visibility = vis;
+ $('info').getElementsByClassName('onlyifknown_gid')[0].style.visibility = vis;
return true;
}