Figure 1   Toggling the Display

 <HTML DIR=RTL>
 <HEAD>
 <TITLE>Playing with document.dir</TITLE>
 <SCRIPT LANGUAGE=javascript>
 <!--
 function foo()
 {
     if (document.dir == "rtl")
         document.dir = "ltr";
     else document.dir = "rtl";
 }
 //-->
 </SCRIPT>
 
 </HEAD>
 <BODY>
 <P>This is some text...</P>
 <P><INPUT type="button" value="Switch" onclick=foo()></P>
 <Table border=1>
    <TBODY>
       <TR>
             <TD width=200>Cell 1</TD>
             <TD width=200>Cell 2</TD>
             <TD width=200>Cell 3</TD>
       </TR>
       <TR>
             <TD width=200>Cell 1</TD>
             <TD width=200>Cell 2</TD>
             <TD width=200>Cell 3</TD>
       </TR>
       <TR>
             <TD width=200>Cell 1</TD>
             <TD width=200>Cell 2</TD>
             <TD width=200>Cell 3</TD>
       </TR>
    </TBODY>
 </Table>
 </BODY>
 </HTML>