ff.dom.init(window);
ff.event.onload(function()
{
    var c=document.getElementById("testContainer");
    
    c.appendChild(
        FORM({action:"test-dombuilder.html", method: "get"},
            LABEL({"for":"txt"},"text field "),INPUT({type:"text", "id": "txt", "name" :"txt", "value":"text field value"}),BR(),
            LABEL({"for":"ta"},"text area "),TEXTAREA({"name": "ta", "id":"ta",rows:"10" ,cols: "40"}, "text area with attrs"),BR(),
            LABEL({"for":"cb"},"check box "),INPUT({type:"checkbox", "checked": "checked", "id": "cb", "name" :"cb"}), "checked checkbox",BR(),
            LABEL({"for":"sel"},"select "),SELECT({"id": "sel", "name" :"sel"},
                OPTION({"value":"1"},"Option A" ),
                OPTION({"value":"10"},"Option B" ),
                OPTION({"value":"100"},"Option C" )),BR(),
                INPUT({"type":"radio","name":"r","value":1}),"Radio 1",BR(),
                INPUT({"type":"radio","name":"r","value":2,"checked":"checked"}),"Radio 2",BR(),
            INPUT({"type":"submit", "id": "submit", "name":"submit", "value":"send"})));
    
    c.appendChild(HR());
    
    c.appendChild(OL(LI("AA"),LI("BB"),LI("CC")));
    c.appendChild(HR());
    c.appendChild(UL(LI("AA"),LI("BB"),LI("CC")));
    c.appendChild(HR());
    c.appendChild(
        DL( DT("aa"), DD("foo"),
            DT("bb"), DD("bar"),
            DT("cc"), DD("baz")));
    c.appendChild(HR());
    c.appendChild(
        TABLE( {"border":"1", "cellpadding":4, "cellspacing":0},
            TR( TH("1"), TH("2"), TH("3")),
            TR( TD("A1"), TD("A2"), TD("A3")),
            TR( TD("B1"), TD("B2"), TD("B3")),
            TR( TD("C1"), TD("C2"), TD("C3"))));
    c.appendChild(HR());
    c.appendChild(DIV(IMG({"src":"image/ff.png"}), "Normal image"));
    c.appendChild(
        MAP({"name":"map"},
            AREA({"shape":"rect","coords":"0,0,49,99","alt":"left","href":"test-dombuilder.html?left=1"}),
            AREA({"shape":"rect","coords":"0,50,99,99","alt":"right","href":"test-dombuilder.html?right=1"})));
    c.appendChild(DIV(IMG({"src":"image/ff.png", "usemap":"#map"}), "Image map"));
});	
