rendered paste bodyfunction openMenu($id) { $objResponse = new xajaxResponse(); $event.= 'new Effect.BlindUp(document.getElementById("mcontent'.$id.'"); xajax_closeMenu('.$id.');'; $objResponse->addEvent("menupoint".$id,"onclick",$event); return $objResponse;}tpl-code<span id="menupoint{php} echo $row['id']; {/php}" style="cursor: pointer; margin-right: 5px; font-weight: bold;" onclick="new Effect.BlindDown(document.getElementById('mcontent{php} echo $row['id']; {/php}'));xajax_openMenu({php} echo $row['id']; {/php});">{php} echo $row['name']; {/php}</span>