// JavaScript Document


/* function setselected
	str TargetName Req
	
	This function takes the passed table ID and sets the table Tab to a selected state.
*/
function settabselected(TargetName) {
	target = TargetName;
	lefttop = target+"lefttop";
	middletop = target+"middletop";
	righttop = target+"righttop";
	leftmiddle = target+"leftmiddle";
	middlemiddle = target+"middlemiddle";
	rightmiddle = target+"rightmiddle";
	leftbottom = target+"leftbottom";
	middlebottom = target+"middlebottom";
	rightbottom = target+"rightbottom";
	
	//document.getElementById(target).className = "selected";
	document.getElementById(lefttop).className = "Tab1LeftTop_CS1";
	document.getElementById(middletop).className = "Tab1TopMiddle_CS1";
	document.getElementById(righttop).className = "Tab1RightTop_CS1";
	document.getElementById(middlemiddle).className = "Tab1BG_CS1";
	document.getElementById(leftmiddle).className = "Tab1LeftMiddle_CS1";
	document.getElementById(rightmiddle).className = "Tab1RightMiddle_CS1";
	document.getElementById(leftbottom).className = "Tab1LeftBottom_CS1";
	document.getElementById(middlebottom).className = "Tab1BottomMiddle_CS1";
	document.getElementById(rightbottom).className = "Tab1RightBottom_CS1";
}

/* function setdefault
	str TargetName Req
	
	This function takes the passed table ID and sets the table Tab to the default state.
*/
function settabdefault(TargetName) {
	target = TargetName;
	lefttop = target+"lefttop";
	middletop = target+"middletop";
	righttop = target+"righttop";
	leftmiddle = target+"leftmiddle";
	middlemiddle = target+"middlemiddle";
	rightmiddle = target+"rightmiddle";
	leftbottom = target+"leftbottom";
	middlebottom = target+"middlebottom";
	rightbottom = target+"rightbottom";
	
	//document.getElementById(target).className = "selected";
	document.getElementById(lefttop).className = "Tab0LeftTop_CS1";
	document.getElementById(middletop).className = "Tab0TopMiddle_CS1";
	document.getElementById(righttop).className = "Tab0RightTop_CS1";
	document.getElementById(middlemiddle).className = "Tab0BG_CS1";
	document.getElementById(leftmiddle).className = "Tab0LeftMiddle_CS1";
	document.getElementById(rightmiddle).className = "Tab0RightMiddle_CS1";
	document.getElementById(leftbottom).className = "Tab0LeftBottom_CS1";
	document.getElementById(middlebottom).className = "Tab0BottomMiddle_CS1";
	document.getElementById(rightbottom).className = "Tab0RightBottom_CS1";
}