

function getOffsetHeight(oEL)
{
	if((o = document.defaultView) && o.getComputedStyle) 
	{
		h = o.getComputedStyle(oEL, null).height;
	}
	else if('number' == typeof oEL.offsetHeight) 
	{
	h = oEL.offsetHeight;
	}
	return h;
}



function fixH()
{
var lh=parseInt(getOffsetHeight(document.getElementById('left')));
var rh=parseInt(getOffsetHeight(document.getElementById('right')));
if (document.getElementById('middle'))
	var md=getOffsetHeight(document.getElementById('middle'));
else
	var md = 0;
	
//window.alert(getOffsetHeight(document.getElementById('left')));	
var h;
var t = 0;
/*
oList = document.getElementById('body_text').getElementsByTagName('div');
for (var i=0; i<oList.length ; i++)
{
 //t += document.getElementById('body_text').getElementsByTagName('div')[i].style.height;
 tempheight = getOffsetHeight(oList[i]);
 //window.alert(parseInt(tempheight));
 //if (parseInt(tempheight) == 'NaN')
	t += parseInt(tempheight);
}
*/
//window.alert(t);
//lh= t;
//window.alert(lh>rh);
if (lh>rh)
	h = lh;
else 
	h = rh;
if (h<md)
	h = md;	

h  = parseInt(h) + "px";	
//window.alert(document.getElementById('left').style.height);
document.getElementById('right').style.height= h;
document.getElementById('left').style.height=h;
//document.getElementById('main').style.height=h;
if (document.getElementById('middle'))
	if (document.getElementById('middle').innerHTML.length > 0)
		document.getElementById('middle').style.height = h;
//window.alert(document.getElementById('middle').innerHTML);
//document.getElementById('footer').style.position='absolute';	
//document.getElementById('footer').style.marginTop=h+"px";	
//document.getElementById('footer').style.top=h;	
//window.alert(getOffsetHeight(document.getElementById('left')));
//window.alert(h);
//window.alert(document.getElementById('left').innerHTML);
} 

//function dynamically displays a list of tech support questions about whatever topic
function tech_topic(oEl)
{
	var sDivToShow = oEl.options[oEl.selectedIndex].value;
	//get a list of div tags
	oList = document.getElementById('left').getElementsByTagName('div');
	for (var i=0; i<oList.length ; i++)
	{				
		//if the element exists, show the item if it's selected; otherwise hide it
		//loop goes through ALL div tags in the 'left' container but skips any that do not
		//match an ID of tt#
		oTempEl = document.getElementById('tt'+i);
		if (oTempEl)
		{
			if (oTempEl.id == sDivToShow)
				{
				oTempEl.className=oTempEl.className.replace(new RegExp(" hideTechSupportItem"), "");
				//add the classname if it doesn't already exist
				if (oTempEl.className.indexOf("showTechSupportItem") == -1)
					oTempEl.className+=" showTechSupportItem";								
				}
			else
				{
				oTempEl.className=oTempEl.className.replace(new RegExp(" showTechSupportItem"), "");								
				//add the classname if it doesn't already exist
				if (oTempEl.className.indexOf("hideTechSupportItem") == -1)
					oTempEl.className+=" hideTechSupportItem";								
				}
			
		}
	}
}

