//
// clears all the form fields for the specified form
// currently handles text, checkboxes, and drop-downs
//
// theForm - the form to be cleared;  i.e. clearAllFormFields(document.yourForm)
//
function clearAllFormFields(theForm)
{
	for(i = 0; i < theForm.elements.length; i++)
	{
		if (theForm.elements[i].type == "text")
			theForm.elements[i].value = "";
		else if (theForm.elements[i].type == "checkbox")
			theForm.elements[i].checked = false;
		else if (theForm.elements[i].type == "select-one")
			theForm.elements[i].selectedIndex = 0;				
	}
}
