var lastDiv = "";
function showDiv(DivName) {
    // hide default once selection is made
		document.getElementById('defaultloc').className = "hiddenloc";
	// hide last div
	if (lastDiv) {
		document.getElementById(lastDiv).className = "hiddenloc";
	}
	//if value of the box is not nothing and an object with that name exists, then change the class
	if (DivName && document.getElementById(DivName)) {
		document.getElementById(DivName).className = "visibleloc";
		lastDiv = DivName;
	}
}
