function clearTextBox(tbox){
   tbox.value = "";
}

function showBubble(theElement, textArr){
	var bubb = document.getElementById("bubble");	
	var bubb = document.getElementById("bubble");	
	for(i=0; i < bubb.childNodes.length; i++){
		if(bubb.childNodes[i].id == "middle"){
			midd = bubb.childNodes[i];
		}
	}
	var offsetTop = 50;
	midd.innerHTML = "";
	for(i=0; i < textArr.length; i++){
		var theDiv = document.createElement("div");
		theDiv.className = "text";
		theDiv.innerHTML = textArr[i];
		offsetTop += 32;
		midd.appendChild(theDiv);
	}
	bubb.style.top = (theElement.offsetTop - offsetTop) + "px";
	bubb.style.left = (theElement.offsetLeft - 150) + "px";
	bubb.style.display = "block";
}

function hideBubble(){
	document.getElementById("bubble").style.display = "none";
}
