function setRequired_AI(country) {

	var indicators = this.countries[country];
	if (indicators != null) {
		if (this.doc.getElementById(this.provinceId) != null){
			this.doc.getElementById(this.provinceId).innerHTML = indicators[0];
		}
		if (this.doc.getElementById(this.stateId) != null){
			this.doc.getElementById(this.stateId).innerHTML = indicators[1];
		}
		if (this.doc.getElementById(this.postalCodeId) != null){
			this.doc.getElementById(this.postalCodeId).innerHTML = indicators[2];
		}
	}
}


function AddressIndicators(countries, doc, provinceId, stateId, postalCodeId) {
	this.countries = countries;
	this.provinceId = provinceId;
	this.stateId = stateId;
	this.postalCodeId = postalCodeId;
	this.setRequired = setRequired_AI;

	this.doc = doc;
}


