//clear all form fields
//objForm: name of form we're dealing with
//ignoreFields: comma-delimited list of field names we don't want to touch (begin/end with a comma!)
function clearForm(objForm, ignoreFields) {	
	for (var i=0; i<objForm.elements.length; i++) {
		curElement = objForm.elements[i];
		//alert(curElement.type)
		if (ignoreFields.indexOf(',' + curElement.name + ',') == -1) {
			if (curElement.type == 'text') {		
				curElement.value = '';
			}
			else if (curElement.type == 'select-one') {		
				curElement.selectedIndex = 0;
			}		
		}
	}
}
