﻿
//function for travelscholarship.aspx page.
//per marie's request (mardup@u.washington.edu), both street address fields and zip code field were dynamically removed.
//function places dummie text in the fields and then removes them from the page.
//user only sees city, state, and country fields.
collapseAddressFields = function()
{
    var fields = new Array(
                        document.getElementById('ctl00_MainContent_TravelScholarshipApp_ctl00_CurrentAddress_Address1'),
                        document.getElementById('ctl00_MainContent_TravelScholarshipApp_ctl00_CurrentAddress_Address2'),
                        document.getElementById('ctl00_MainContent_TravelScholarshipApp_ctl00_CurrentAddress_ctl05_PostalCode')
                        );
    for(var i = 0; i < 3; i++){
        if(fields[i] != null){
            fields[i].value = 'filler_text';
            if(i == 2) fields[i].value = '00000';
            fields[i].parentNode.style.display = 'none';
        }
    }
}