Output markup & controls dependent on result of Javascript function
<p>I have an ASP.NET page which includes markup and 3rd party controls (in this particular case Telerik controls) e.g. </p>

<pre><code>&lt;h1&gt;Hello&lt;/h1&gt;

&lt;telerik:RadToolBar ID="toolbarCAD" runat="server" Skin="Web20" Height="30px" Width="300px" OnClientButtonClicked="OnClientButtonClicked"&gt;
    &lt;Items&gt;
      &lt;telerik:RadToolBarButton runat="server" Text="Zoom In" ImageUrl="~/images/zoom_in.png" Value="cadZoomIn"&gt;
                    &lt;/telerik:RadToolBarButton&gt;
    &lt;/Items&gt;
&lt;/telerik:RadToolBar&gt;
</code></pre>

<p>I only want to display this if an ActiveX control is installed.  From another question I have a Javascript function (ActiveXOrNull) which successfully detects this so now I have replaced the above in my markup with:</p>

<pre><code>&lt;script type="text/javascript"&gt;
    var obj = ActiveXOrNull('CADViewX');
    if (obj == null) {
        WHAT DO I DO HERE
    }
&lt;/script&gt;
</code></pre>

<p>How do I include the original markup in the Javascript function?  Can I "include" another page or is there another method available?</p>
