var tPrevLeft;
var tPrevMiddle;
var tPrevRight;

function ThreePartEnter(tLeft, tMiddle, tRight, tLeftStyleTo, tMiddleStyleTo, tRightStyleTo)
{
   var tToChange = document.getElementById(tLeft);
   tToChange.className = tLeftStyleTo;
   document.tPrevLeft = tToChange;
   tToChange = document.getElementById(tMiddle);
   tToChange.className = tMiddleStyleTo;
   document.tPrevMiddle = tToChange;
   tToChange = document.getElementById(tRight);
   tToChange.className = tRightStyleTo;
   document.tPrevRight = tToChange;
}

function ThreePartExit(tLeftStyleTo, tMiddleStyleTo, tRightStyleTo)
{
   document.tPrevLeft.className = tLeftStyleTo;
   document.tPrevMiddle.className = tMiddleStyleTo;
   document.tPrevRight.className = tRightStyleTo;
}
