/* AACO java script function. */

//NOTE: Future developers, in order to keep this file mangeable, please
//try to maintain functions alphabetically, and maintain the following
//'table of contents'


var returningField;
var text;

/* ======================================================================
FUNCTION: 	placeFieldFocus()

INPUT:      	field position

RETURNS:	nothing	

DESC:           This function sets the cursor and focus on a specific
                field.
====================================================================== */
function placeFieldFocus(x) 
{
document.forms[0].elements[x].focus();
}
/* ======================================================================
FUNCTION: 	placeFocus()

INPUT:      	none

RETURNS:	nothing	

DESC:           This function sets the cursor and focus on the first text 
                input area.
====================================================================== */
function placeFocus() {
if (document.forms.length > 0) {
var field = document.forms[0];
for (i = 0; i < field.length; i++) {
if ((field.elements[i].type == "text") || (field.elements[i].type == "textarea") || (field.elements[i].type.toString().charAt(0) == "s")) {
document.forms[0].elements[i].focus();
break;
         }
      }
   }
}
