//####### 2003 Copyright The Credo Group
//####### Why are you looking at this code fool?
//####### Phear the Skillz, ya know what im sayin?

// Show or Hide a Div
function displayDiv(the_div,the_action){
   var the_style = getStyleObjectByID(the_div);
   if (the_style != false){
      the_style.display = the_action;
   }else{
      return false;
   }
}

// Get Style Object By Id
function getStyleObjectByID(objectId){
   if (document.getElementById && document.getElementById(objectId)){   
      return document.getElementById(objectId).style;
   }else if (document.all && document.all(objectId)){
      return document.all(objectId).style;
   }else if (document.layers && document.layers[objectId]){
      return document.layers[objectId];
   }else{
      return false;
   }
}

function updateDiv(listBox,divName1,divName2){
	//box = document.forms[0].listBox;
	relationship = listBox.options[listBox.selectedIndex].value;
	if ((relationship=='EST')||(relationship=='TRU')){
	 displayDiv(divName1,'block');
	 displayDiv(divName2,'none');
	}else{
	 displayDiv(divName1,'none');
	 displayDiv(divName2,'block');
	}
	

}
