// ======================
// Show or Hide an object
// aObjName   Name of the object to show or hide
// aProperty  Boolean, true to show, false to hide
function displayObject(aObjName, aProperty) {
	obj = document.getElementById(aObjName);
	if (obj) {
	  obj.style.display = aProperty?"":"none";
	}
}

function listAllFormElements(aForm) {
	for (i = 0; i < aForm.elements.length; i++) {
		alert(aForm.elements[i].id);
	}
}

function listAllElements() {
	for (i = 0; i < document.all.length; i++) {
		alert(document.all.item(i).id);
	}
}