       function SetAction(theValue)
       {
         document.indexForm.action.value=theValue;
         document.forms['indexForm'].action.value=theValue;
         document.forms['indexForm'].submit();
       }
       
       function canManipulateImages()
       {
         if (document.images)
         {
           return true;
         }
         else
         {
           return false;
         }
       }
       
       function disableButton( theButton )
       {
            itemRoot = document.getElementsByName( theButton );
            
            for (i=0; i<itemRoot.length; i++)
            {
                itemRoot[i].disabled = true;
                return false;
            }
       }

       function canManipulateImages()
       {
         if (document.images)
         {
           return true;
         }
         else
         {
           return false;
         }
       }
       
       function showContainerImage( imageURL )
       {
          if ( gImageCapableBrowser )
          {
            document.getElementById( 'imageContainer' ).src = imageURL + '_t.jpg';
            return false;
          }
          else
          {
            return true;
          }
        }

       function showContainerImageZoom( imageURL, id )
       {
          if ( gImageCapableBrowser )
          {
            document.getElementById( 'imageContainer_' + id ).src = imageURL + '_t.jpg';
            document.getElementById( 'imageZoom_' + id ).href = imageURL + '_p.jpg';
            document.getElementById( 'imageZoom_' + id ).title = document.getElementById( 'imageContainer_' + id ).title;
            return false;
          }
          else
          {
            return true;
          }
        }

       function showContainerImageZoomTitle( imageURL, imageTitle, id )
       {
          if ( gImageCapableBrowser )
          {
            document.getElementById( 'imageContainer_' + id ).src = imageURL + '_t.jpg';
            document.getElementById( 'imageZoom_' + id ).href = imageURL + '_p.jpg';
            document.getElementById( 'imageZoom_' + id ).title = document.getElementById( 'imageContainer_' + id ).title + ' - ' + imageTitle;
            return false;
          }
          else
          {
            return true;
          }
        }

        function linkOptioniRadio( id )
        {
            itemRoot = document.getElementsByName( 'optioni' );

            for (i=0; i<itemRoot.length; i++)
            {
                node = itemRoot[i];

                if ( node.value == id )
                {
                    node.checked = true;
                    node.focus();
                }
                else
                {
                    node.checked = false;
                }
            }
        }
        
        var gImageCapableBrowser = canManipulateImages();
        
        function linkFontColourRadio()
        {
            code = document.getElementById( 'fontcolour' ).value;
            
            itemRoot = document.getElementsByName( 'code' );

            for (i=0; i<itemRoot.length; i++)
            {
                node = itemRoot[i];
                
                if ( node.value == code )
                {
                    node.checked = true;
                    node.focus();
                }
                else
                {
                    node.checked = false;
                }
            }
        }

        function linkFontRadio()
        {
            code = document.getElementById( 'fonttype' ).value;

            itemRoot = document.getElementsByName( 'fonttypecode' );

            for (i=0; i<itemRoot.length; i++)
            {
                node = itemRoot[i];

                if ( node.value == code )
                {
                    node.checked = true;
                    node.focus();
                }
                else
                {
                    node.checked = false;
                }
            }
        }

        function linkFontColourSelect( code )
        {

            itemRoot = document.getElementsByName( 'fontcolour' )[0].options;

            for (i=0; i<itemRoot.length; i++)
            {
                node = itemRoot[i];

                if ( node.value == code )
                {
                    node.selected = true;
                    node.focus();
                }
                else
                {
                    node.selected = false;
                }
            }

        }

        function linkFontSelect( code )
        {

            itemRoot = document.getElementsByName( 'fonttype' )[0].options;

            for (i=0; i<itemRoot.length; i++)
            {
                node = itemRoot[i];

                if ( node.value == code )
                {
                    node.selected = true;
                    node.focus();
                }
                else
                {
                    node.selected = false;
                }
            }

        }

