Source for artmaker.html
 html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script type="text/javascript">
<!-- <![CDATA[
var hasSVGSupport = false;  // does client have SVG support?
var useVBMethod = false;    // use VBScript or JavaScript?

    Internet Explorer returns 0 as the number of MIME types,
    so this code will not be executed by it. This is our indication
    to use VBScript to detect SVG support.
if (navigator.mimeTypes != null
    && navigator.mimeTypes.length > 0)
    if (navigator.mimeTypes["image/svg+xml"] != null)
        hasSVGSupport = true;
    useVBMethod = true;
// ]]> -->

    Visual Basic Script to detect support of Adobe SVG plugin.
    This code is not run on browsers which report they have MIME types,
    and it is also not run by browsers which do not have VBScript support.
<script type="text/vbscript">
On Error Resume Next
If useVBMethod = true Then
    hasSVGSupport = IsObject(CreateObject("Adobe.SVGCtl"))
End If

<script type="text/javascript">
function setSVGStatus()
    if (hasSVGSupport)
        var theForm = document.getElementById("artForm");
        theForm.imgType.value = "svg";
    return true;


Yes, you too can become a famous artist! With a few simple clicks
of the mouse, you can generate geometric art in the style of
Piet Mondrian.

<form id="artForm" action="http://localhost:8080/artmaker/servlet/ArtMaker"
    onsubmit="return setSVGStatus();">
What kind of picture would you like?
<br />
<input type="radio" name="picType" value="landscape"
    checked="checked" /> Landscape
<input type="radio" name="picType" value="portrait" /> Portrait
<input type="radio" name="picType" value="square" /> Square

Which colour scheme would you like?
<br />
<input type="radio" name="scheme" value="bright" 
    checked="checked" /> Vivid colours
<input type="radio" name="scheme" value="pastel" /> Soft pastel

<div style="display: none;">
<input type="hidden" name="imgType" value="jpg" />

<input type="submit" value="Follow Your Muse" />