function fetch_content(id) { idsave = id; cmAjax = new vB_AJAX_Handler(true); cmAjax.onreadystatechange(cmResponse); cmAjax.send('ajax.php', 'do=fetch_content&conid='+id); } function cmResponse() { if (cmAjax.handler.readyState == 4 && cmAjax.handler.status == 200) { fetch_object("hide_"+idsave).innerHTML = cmAjax.handler.responseText; } }