﻿var educationControls;
var searchControls;

function degree(degree, curriculum, honors, startDay, endDay, institutionName, etsCode, institutionCity, institutionState, institutionCountry, ficeCode) {
    this.InstitutionName = institutionName;
    this.City = institutionCity;
    this.StateProvinceId = parseInt(institutionState);
    this.CountryId = parseInt(institutionCountry);
    this.FiceCode = ficeCode;
    this.EtsCode = etsCode;
    this.HonorsId = parseInt(honors);
    this.StartDate = startDay;
    this.EndDate = endDay;
    this.DegreeId = parseInt(degree);
    this.CurriculumId = parseInt(curriculum);
}

function educationControlsList(degreeDropDown, curriculumDropDown, honorsDropDown, fromDate, toDate, instNameTextBox, etsCodeTextBox, instCityTextBox,
							   instStateDropDown, instCountryDropDown, ficeCodeTextBox, degreeHidden, validateEtsCode, indexDegreeHidden)
{
	this.DegreeDropDown = degreeDropDown;
	this.CurriculumDropDown = curriculumDropDown;
	this.HonorsDropDown = honorsDropDown;
	this.FromDate = fromDate;
	this.ToDate = toDate;
	this.InstNameTextBox = instNameTextBox;
	this.EtsCodeTextBox = etsCodeTextBox;
	this.InstCityTextBox = instCityTextBox;
	this.InstStateDropDown = instStateDropDown;
	this.InstCountryDropDown = instCountryDropDown;
	this.FiceCodeTextBox = ficeCodeTextBox;
	this.HiddenField = degreeHidden;
	this.ValidateEtsCode = validateEtsCode;
	this.indexDegreeHidden = indexDegreeHidden;
}

function searchControlsList(instNameSearchTextBox, etsCodeSearchTextBox, citySearchTextBox, stateSearchDropDown, countrySearchDropDown, searchResultsLiteral,
								institutionSearchLightBox)
{
	this.InstNameSearchTextBox = instNameSearchTextBox;
	this.EtsCodeSearchTextBox = etsCodeSearchTextBox;
	this.CitySearchTextBox = citySearchTextBox;
	this.StateSearchDropDown = stateSearchDropDown;
	this.CountrySearchDropDown = countrySearchDropDown;
	this.SearchResultsLiteral = searchResultsLiteral;
	this.InstitutionSearchLightBox = institutionSearchLightBox;
}