<!--





function showAddresses(startNumber,endNumber) {
	//var totalAddresses = 26;
//	
//	turnAddressesOff(totalAddresses,0);
//	alert('turning on addresses ' + startNumber + ' to ' + endNumber);
//	for (x=startNumber;x<=endNumber;x++) {
//        	var el = document.getElementById('adr'+x);
//		//alert('loc'+x);
//		el.style.display = '';
//    } 
}

function showLocations(endNumber,startNumber) {
	turnLocationsOff(totalAddresses,0);
	//alert('turning on locations ' + startNumber + ' to ' + endNumber);
	for (x=startNumber;x<=endNumber;x++) {
        	var el = document.getElementById('loc'+x);
		//alert('loc'+x);
		el.style.display = '';
    }
    
    showAddresses(startNumber,endNumber);
}

function showCities(startNumber,endNumber) {
	turnCitiesOff(0);
	//alert('turning on cities ' + startNumber + ' to ' + endNumber);
	for (x=startNumber;x<=endNumber;x++) {
        	var el = document.getElementById('city'+x);
		//alert(el);
		el.style.display = '';
    } 
}

function turnCitiesOff(theexception) {
	turnLocationsOff(theexception);
	//theexception = 5;
	theexception = parseInt(theexception);
	for (x=1;x<=totalCities;x++) {
        	if (x != theexception) {
			var el = document.getElementById('city'+x);
			//document.write(el);
	   		el.style.display = 'none';
		}
    } 
}

function turnLocationsOff(theexception) {
	
	turnAddressesOff(totalAddresses,theexception);
	//theexception = 5;
	theexception = parseInt(theexception);
	for (x=1;x<=totalAddresses;x++) {
        	if (x != theexception) {
			var el = document.getElementById('loc'+x);
			//document.write(el);
	   		el.style.display = 'none';
		}
    } 
}

function turnAddressesOff(totalNumber,theexception) {
	////theexception = 5;
//	theexception = parseInt(theexception);
//	for (x=1;x<=totalNumber;x++) {
//        	if (x != theexception) {
//			var el = document.getElementById('adr'+x);
//			//document.write(el);
//	   		el.style.display = 'none';
//		}
//    } 
}

function toggleAdr(obj) {
	//alert(myBox.checked);
	var el = document.getElementById('adr'+obj);
	if ( el.style.display == '' ) {
		el.style.display = 'none';
	}
	else {
		el.style.display = '';
		turnAnswersOff(totalQuestions,obj);
	}
}


//-->
