function checkUnmodifiedForm(formNum) {
    var form = document.getElementById("form" + formNum);
    ok(form, "Locating form " + formNum);

    for (var i = 0; i < form.elements.length; i++) {
        var ele = form.elements[i];

        // No point in checking form submit/reset buttons.
        if (ele.type == "submit" || ele.type == "reset")
            continue;

        is(ele.value, ele.defaultValue, "Test to default value of field " +
            ele.name + " in form " + formNum);
    }
}
/*
 * checkUnmodifiedForm
 *
 * Check a form for unmodified values from when page was loaded.
 *
 * <form id="form#">
 * checkUnmodifiedForm(#);
 */
checkUnmodifiedForm
Check a form for unmodified values from when page was loaded.


checkUnmodifiedForm Check a form for unmodified values from when page was loaded .
function checkUnmodifiedForm(formNum) {
    var form = document.getElementById("form" + formNum);
    ok(form, "Locating form " + formNum);
    for (var i = 0; i < form.elements.length; i++) {
        var ele = form.elements[i];
        if (ele.type == "submit" || ele.type == "reset")
            continue;
        is(ele.value, ele.defaultValue, "Test to default value of field " +
            ele.name + " in form " + formNum);
    }
}
function checkUnmodifiedForm ( formNum ) { var form = document . getElementById ( "form" + formNum ) ; ok ( form , "Locating form " + formNum ) ; for ( var i = 0 ; i < form . elements . length ; i ++ ) { var ele = form . elements [ i ] ; if ( ele . type == "submit" || ele . type == "reset" ) continue ; is ( ele . value , ele . defaultValue , "Test to default value of field " + ele . name + " in form " + formNum ) ; } }
checkUnmodifiedForm
 Check a form for unmodified values from when page was loaded.
checkUnmodifiedForm Check a form for unmodified values from when page was loaded .
// No point in checking form submit/reset buttons.