function esusClearForm(oForm){
	try{
		// Check the form exists
		if (oForm != null){
			// Loop through all form elements
			for(i = 0; i<oForm.elements.length; i++){
				// Check if element is a textbox
				if (oForm.elements[i].type == 'text'){
					// Clear the text
					oForm.elements[i].value = '';
				}
				
				// Check if element is a combo
				if (oForm.elements[i].type == 'select-one'){
					// Clear the selected item
					oForm.elements[i].selectedIndex = 0;
				}
			}
		}
	}catch(ex){
		// Handle any errors
		//alert('An Error Has Occured:\n' + ex.description);
	}
}


function esusSubmitForm(oForm){
	try{
		// Check the form exists
		if (oForm != null){
			oForm.submit();	
		}
	}catch(ex){
		// Handle any errors
		//alert('An Error Has Occured:\n' + ex.description);
	}
}
