Source for artmaker.html
<!DOCTYPE
 html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<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;
    }
}
else
{
    useVBMethod = true;
}
// ]]> -->
</script>

<!--
    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>

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

<title>Art-O-Matic</title>
</head>

<body>
<h2>Art-O-Matic</h2>
<p>
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.
</p>

<form id="artForm" action="http://localhost:8080/artmaker/servlet/ArtMaker"
    onsubmit="return setSVGStatus();">
<p>
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
</p>

<p>
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
</p>

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

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

</form>

</body>
</html>