
function displayBuildingInfo(Building, Floor) {
		// Setup/Coding for displaying the Building that the FloorPlan being displayed in mainFrame is referencing
	parent.topFrame1.document.getElementById("Building").style.fontWeight = "Bold";
	parent.topFrame1.document.getElementById("Building").style.color = "Red";
	parent.topFrame1.document.getElementById("Building").style.fontSize="30";
	parent.topFrame1.document.getElementById("Building").style.textAlign="center";
	parent.topFrame1.document.getElementById("Building").firstChild.nodeValue=Building;
		// Setup/Coding for displaying the Floor that the FloorPlan being displayed in mainFrame is referencing
	parent.topFrame1.document.getElementById("Floor").style.fontWeight = "Bold";
	parent.topFrame1.document.getElementById("Floor").style.color = "Red";
	parent.topFrame1.document.getElementById("Floor").style.fontSize="30";
	parent.topFrame1.document.getElementById("Floor").style.textAlign="center";
	parent.topFrame1.document.getElementById("Floor").firstChild.nodeValue=Floor;
}

function displayFloorPlan(image1) {
	//parent.mainFrame.document.location = "wireless coverage.html";
	parent.mainFrame.document.getElementById("CoverImage").src = image1;
	parent.mainFrame.document.getElementById("CoverImage").width =
		parent.mainFrame.screen.width*.85;
	parent.mainFrame.document.getElementById("CoverImage").height =
		parent.mainFrame.screen.height*.60;
}

function displayFloorPlanHtml(url) {
	parent.mainFrame.document.location = url;
	parent.mainFrame.document.getElementById("CoverImage").width =
		parent.mainFrame.screen.width*.85;
	parent.mainFrame.document.getElementById("CoverImage").height =
		parent.mainFrame.screen.height*.60;
}

function doit(bname, fname, img) {
	displayBuildingInfo(bname, fname);
	re = /\.(html|htm)$/;
	var m = re.exec(img);
	if (m) displayFloorPlanHtml(img);
	else displayFloorPlan(img);
}


