//initializes and updates select boxes
function initSelectBoxesLocation(primarySelectBox,primarySelectDefault,secondarySelectBox,secondarySelectDefault){
	// Populate the primary select box
	populateSelectBox(primarySelectBox,iCountry_value,iCountry_id);
	// Set the default value for the primary select box
	var primaryDefaultArray = primarySelectDefault.split(",");
	setSelectBoxDefault(primarySelectBox,primaryDefaultArray);
	
	// Populate the secondary select box
	var primarySelectedIndex = primarySelectBox.selectedIndex;
	populateSelectBox(secondarySelectBox,iCity_value[primarySelectedIndex],iCity_id[primarySelectedIndex]);
	//Set the default value(s) for the secondary select box
	var secondaryDefaultArray = secondarySelectDefault.split(",");
	setSelectBoxDefault(secondarySelectBox,secondaryDefaultArray);
}
function updateSelectBoxLocation(secondarySelectBoxObj,primaryIndex){
	populateSelectBox(secondarySelectBoxObj,iCity_value[primaryIndex],iCity_id[primaryIndex]);
}
// ITEM-5596 - remove eu from verity
function euRemoveVerityHack() {
	var indexOf = function(obj, arr){
        for(var i=0; i<arr.length; i++){
            if(arr[i]==obj){
                return i;
            }
        }
        return -1;
    }, euIndex = indexOf("EU", iCountry_value);
	
	if (euIndex < 0) return false;
	
	iCountry_id.splice(euIndex,1);
	iCountry_value.splice(euIndex,1);
	iCity_id.splice(euIndex,1);
	iCity_value.splice(euIndex, 1);
}

