/**
 * @file
 * Custom javascript utilities.
 * 
 * @author Shannon M. Rause <shannon.rause@creativeflavor.com>
 * @version $Revision: 1.2 $
 * @version $Name: PRESIDENTSLEADERSHIPCLASS_2010-01-04_3 $
 * @version $Id: main.js,v 1.2 2009/09/17 19:28:17 smr Exp $
 *
 * These files are copyrighted to Creative Flavor Inc. and are
 * subject to the terms of the applicable Service Agreement.
 * If no service agreement is available you must contact us at
 * legal@creativeflavor.com or 303-379-9450.
 * 
 * These files may be watermarked to ensure traceability.
 */

function submit_app_and_change_page(path)
{
   var applicationForm = document.getElementById('applicationForm');

   if (applicationForm)
   {
      var elem = document.createElement('input');
      elem.setAttribute('type',
                        'hidden');
      elem.setAttribute('name',
                        'redirectOverride_');
      elem.setAttribute('value',
                        path)
      applicationForm.appendChild(elem);
      applicationForm.submit();
   } // if
   else
   {
      document.location = path;
   } // else
} // submit_app_and_change_page
