//  
//  Test functions to show all forms and elements in document
//

/*  To show all forms...
    Insert below into body of html just before </body>
 
<script type="text/javascript" src="showall.js">
    show_all_forms();
</script>
 
*/

/* To show all elements in all forms...
   Insert below into body of html just before </body>
 
<script type="text/javascript" src="showall.js">
    show_all_elements();
</script>

*/ 


function show_all_forms() {
    var strDump = "";
    for ( var cntr=0; cntr<document.forms.length; cntr++ )
        strDump += document.forms[cntr].name + ", ";
    alert( strDump.slice( 0, strDump.length-2 ) );
}


function show_all_form_elements(formID) {
    var strDump = "";
    for ( var i=0; i<formID.elements.length; i++ )
        strDump += formID.elements[i].name + ", ";
    alert( strDump.slice( 0, strDump.length-2 ) );
}

