alphanum='';
totalnum='';
oldalphanum="alphanav";

function clearback() {
	totalnum='';
	document.getElementById('pagetitle').innerHTML="Wireless Access Points";
	document.getElementById('clearlink').style.visibility="hidden";
	document.getElementById(oldalphanum).style.backgroundColor="white";
	//account for split items E, F and M
	/*if (oldalphanum=='e') {
		document.getElementById('e2').style.backgroundColor="white";
	}*/
	if (oldalphanum=='f') {
		document.getElementById('f2').style.backgroundColor="white";
	}
	if (oldalphanum=='m') {
		document.getElementById('m2').style.backgroundColor="white";
	}
}

function highlight(alphanum) {
	document.getElementById('clearlink').style.visibility="visible";
	document.getElementById(oldalphanum).style.backgroundColor="white";
	totalnum = totalnum + alphanum;	
	if (totalnum=='jmu') {document.getElementById('pagetitle').innerHTML="<span style='background-color:#450084;color:#ccc999;font-weight:bold;font-style:italic'>&nbsp;JMU&nbsp;</span> Wireless Access Points";}		if (totalnum=='jamie') {document.getElementById('pagetitle').innerHTML="Wireless Access P<strong style='font-size:30px;'>&#9786;</strong>ints";}
	//account for split items E, F and M
	/*if (oldalphanum=='e') {
		document.getElementById('e2').style.backgroundColor="white";
	}*/
	if (oldalphanum=='f') {
		document.getElementById('f2').style.backgroundColor="white";
	}
	if (oldalphanum=='m') {
		document.getElementById('m2').style.backgroundColor="white";
	}
	document.getElementById(alphanum).style.backgroundColor="#ccc999";
	//account for split items E, F and M
	/*if (alphanum=='e') {
		document.getElementById('e2').style.backgroundColor="#ccc999";
	}*/
	if (alphanum=='f') {
		document.getElementById('f2').style.backgroundColor="#ccc999";
	}
	if (alphanum=='m') {
		document.getElementById('m2').style.backgroundColor="#ccc999";
	}	
	oldalphanum=alphanum;
}

function nobldg() {
	alert('There are no buildings with wireless access points starting with that letter.');
}
