/**
 * JavaScript functionality not supported by framework
 */

// clears a form field if content is text
function clearField(field, text) {
	if (field.value == text) { field.value=  ''; }
	return;
}

// fills a form with specified text if contents are empty
function fillField(field, text) {
	if (field.value.blank()) { field.value = text; }
	return;
}

// focus on first form element
function formFocus() {
 var forms = $$('form');
  forms[0].focusFirstElement();
  return true;
}