<!--





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 getGoogle(myQuery) {
	//alert(myQuery);
	//var myDomain = "http://www.grafcanada.com";
	//var myURL = "http://www.google.ca/advanced_search?q=" + myQuery + "&hl=en&prmd=iv&as_sitesearch=" + myDomain;
	//var myURL = "http://www.google.ca/search?q=" + myQuery;// + "+site%3A" + myDomain;
	//http://www.google.ca/search?q=stuff+site%3Ahttp%3A%2F%2Fremingtoncorp.com&hl=en&num=10&lr=&ft=i&cr=&safe=images#sclient=psy&hl=en&lr=&source=hp&q=leasing+site:http%3A%2F%2Fremingtoncorp.com&aq=f&aqi=&aql=&oq=&gs_rfai=&pbx=1&fp=a032a2d43df45523
	//window.open(myURL);
//}


function toggleAdr(obj) {
	//alert(myBox.checked);
	//var el = document.getElementById('loc'+obj);
	//if ( el.style.display == '' ) {
	//	el.style.display = 'none';
	//}
	//else {
	//	el.style.display = '';
	//	turnAnswersOff(totalQuestions,obj);
	//}
}


//-->

