
function inspectform(frm)
	{
		window.alert(document.forms[0].id +" is the Id of the form.");
		
		window.alert(document.forms[0].name +" is the name of the form.");
		
		window.alert(document.forms['Q9form'].elements.length +" is the total number of fields. Let's cycle though some of them.");
		
		window.alert(document.forms['Q9form'].elements[0].id+' is element 0');
		
		window.alert(document.forms['Q9form'].elements[1].id+' is element 1');
		
		window.alert(document.forms['Q9form'].elements[2].id+' is element 2');
		
		window.alert(document.forms['Q9form'].elements[3].id+' is element 3');
		
	}
	
function validate(frm)
	{
		window.alert(frm.name);
		for(i=o; i<frm.elements.length; i++);
		{
			window.alert(i)
			
			var el = frm.elements[i];
			
			window.alert(el.id + ": "+el.value);
			
		}
	}

// JavaScript Document
