Добрый день!!! есть скрипт: [js] <script type="text/javascript" language="javascript"><!-- function atoprint(aId) { var atext = document.getElementById(aId).innerHTML; var captext = window.document.title; var alink = window.document.location; var prwin = open(''); prwin.document.open(); prwin.document.writeln('<html><head><title>Версия для печати<\/title><\/head><body text="#000000" bgcolor="#FFFFFF"><div onselectstart="return false;" oncopy="return false;">'); prwin.document.writeln('<div style="margin-bottom:5px;"><a href="javascript://" onclick="window.print();">Печать<\/a> • <a href="javascript://" onclick="window.close();">Закрыть окно<\/a><\/div><hr>'); prwin.document.writeln('<h1>'+captext+'<\/h1>'); prwin.document.writeln(atext); prwin.document.writeln('<hr><div style="font-size:8pt;margin-top:20px;">Сюда можно вставить любой текст<\/div>'); prwin.document.writeln('<div style="font-size:8pt;">Страница материала: '+alink+'<\/div>'); prwin.document.writeln('<div style="margin-top:5px;"><a href="javascript://" onclick="window.print();">Печать<\/a> • <a href="javascript://" onclick="window.close();">Закрыть окно<\/a><\/div>'); prwin.document.writeln('<\/div><\/body><\/html>'); } --></script> [/js] Мне нужно удалить из atext не нужный текст и тэги например: HTML: <td class='tdselect2' align='center' width='30'><a title='Редактировать' href='../block/mysql_edit_form.php?id=1'><img src='../img/ed.jpg'/></a></td><td class='tdselect2' align='center' width='30'><a title='Удалить' href='../block/del.php?id=1'><img src='../img/del.jpg'/></a></td>
Надо удалить из atext вот этот текст полностью: HTML: <td class='tdselect2' align='center' width='30'><a title='Редактировать' href='../block/mysql_edit_form.php?id=1'><img src='../img/ed.jpg'/></a></td><td class='tdselect2' align='center' width='30'><a title='Удалить' href='../block/del.php?id=1'><img src='../img/del.jpg'/></a></td>