// Javascript 
	//alert('js');
	
	
//-------------------------------------------------------------------------------------------->
// this function gets the live menu item, and swaps the image for the 'ON' image
function getLiveButton(liveTab){
	if((liveTab != 100)||(liveTab != 7)){ 
		var butId = document.getElementById('but'+liveTab);
		var liveImg = document.forms.menudata.liveBut.value;
		butId.src = 'http://www.ecredit.com/images/menu/in/'+liveImg;
	}
}

//--------------------------------------------------------------------------------------------> 
//this runs onload of the BODY and determines the height of the faded sep between the wide and thin content areas.
function sizePgSep(){
	var sep = document.getElementById('pgSep');
	if(document.getElementById('bodyTable')){
		var theTable = document.getElementById('bodyTable');
		
		var tblH = theTable.offsetHeight; 
		var sepH = tblH - 220;
		if(sepH < 0) sepH = 1;
			sep.height = sepH;
	}
	

}


//-------------------------------------------------------------------------------------------->
// redirect --> ??
function redirect(val){
	if(val == "void")
	return false;
	var loc = String(location);
	val.substr(0, 1) == "#"
	? location = loc.substring(0, loc.lastIndexOf("#")) + val
	: location = val;
}

//-------------------------------------------------------------------------------------------->
// This function will show/hide a Table Row, just pass the id of the row to it.
// Takes into account the css differences between IE/FF.
function showRow(id){
	var el = document.getElementById(id);
	var idVal = el.style.display;
	
	if(idVal == 'none'){
		try{
			el.style.display = 'table-row';
		}catch(e){
			el.style.display = 'block';
		}
	}else{
		el.style.display = 'none';
	}		
}


//-------------------------------------------------------------------------------------------->
/////////////////////////////////////////////////////////////////////////////////////
////       TABLE ROW HL functions     											/////
////		TO USE: each HIGHLIGHTABLE row needs to be given the id: id='Row#'  /////
////				row must also have onmouseover='rowhighlight' & onmouseoff = rowUnhighlight
/////////////////////////////////////////////////////////////////////////////////////
function getTableID(elem){
		var curSib = elem.previousSibling; alert(curSib);
		var i = 0;
		while(curSib.previousSibling){
			curSib = curSib.previousSibling;
			i++;
		}
		var idNum = Math.floor(i/4);
		return idNum;
	}	
		
	function rowHighlight(){
		this.bgColor = '#cccccc';	
	}
	
	function rowUnHighlight(){
		var idNum = getTableID(this); 
		((idNum % 2) > 0) ? oldColor='#ffffff' : oldColor='#ededed';  
		this.bgColor = oldColor;
	}	
////////////////////////////////////////////
////    end TABLE ROW HL functions    //////
////////////////////////////////////////////