I'm trying to code two table a parent table with a child table. I want the child table to have a div wrapped around it. However the display none is not working on it. Both table are visible at time of rendering the web page. Any help on this would be greatly appreciated.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<TABLE BORDER='0'><tr>
<td><A onClick='toggle()'><IMG src=./image/closed.gif height='14px' width='12px' />123&nbsp;&nbsp;&nbsp;</A></td>
<DIV style='display: none;' id ='test'>
<TABLE BORDER='0'> <th><tr style='font-weight:bold'>