/*---------------------------------------------------------------------------*/
/* The functionAry & addFunction is used to remove necessity for "onLoad" events in the content pages <body>. 
   Any content page needing to have an "onLoad" event should create an "init()" function.
   The init() function will automatically be called indirectly by this page's "onLoad". */
   
var functionAry = new Array();
function addFunction(funct) { functionAry.push(funct); }

function mainInit() {
  addFunction("init()");
  for (var i = 0; i < functionAry.length; i++) {
    try {
      eval(functionAry[i]);
    }
    catch(e){ }
  }
}

/*---------------------------------------------------------------------------*/
/* If a user presses "enter"/"return", submit the form. */
function filterKeys(event, formObj){
  var code = null;
  if (document.all) {
    code = event.keyCode;
  }
  else {
    code = event.which;
  }
  
  if (code == 13) {
	  doSubmit(formObj);
	}
}
