<html>
<head>
<title>emu</title>
</head>
<body><TABLE border=1>
<TR>
<TD>abc</TD>
<TD>def</TD>
</TR>
<TR>
<TD>ghi</TD>
<TD>jkl</TD>
</TR>
</TABLE>
<button onclick="test()">test</button>
<SCRIPT LANGUAGE="JavaScript">
<!--
var state=0;
function test()
{
switch (state++ % 4){
case 0:document.all.tags("table")[0].firstChild.firstChild.firstChild.width=100;return;
case 1:document.all.tags("table")[0].firstChild.firstChild.lastChild.width=100;return;
case 2:document.all.tags("table")[0].firstChild.firstChild.firstChild.width=50;return;
}
document.all.tags("table")[0].firstChild.firstChild.lastChild.width=50
}
//-->
</SCRIPT>
</body>
</html>