<!--

//----------------------- Estrella Verde Technology ------------------------------
// Module:  fillState.js
// Purpose: fills a state dropdown list
// Author: Clayton Esterson
//
// Orginal  Date: 03-Jul-2008
// Modified Date: 13-Oct-2008
// Change Log:
//
// Source code copyright notice (c) 2008 Estrella Verde Technology, Inc
//--------------------------------------------------------------------------------

var stateText=['  ', 'AK', 'AL', 'AR', 'AZ', 'CA', 'CO', 'CT', 'DC', 'DE',
               'FL', 'GA', 'HI', 'IA', 'ID', 'IL', 'IN', 'KS', 'KY', 'LA',
               'MA', 'MD', 'ME', 'MI', 'MN', 'MO', 'MS', 'MT', 'NC', 'ND', 
               'NE', 'NH', 'NJ', 'NM', 'NV', 'NY', 'OH', 'OK', 'OR', 'PA',
               'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VT', 'VA', 'WA', 'WI',
               'WV', 'WY'];

function populateState(stateField, selectState) {
   var sField = document.getElementById(stateField);
   for (var i=0; i<52; i++) {
       if (stateText[i] == selectState) {
           sField.options[i] = new Option(stateText[i], stateText[i], true, true);
       }
       else
           sField.options[i] = new Option(stateText[i], stateText[i]);
   }
}

-->