
var isDHTML = 0;

var isLayers = 0;

var isAll = 0;

var isID = 0;

var colorRefBlank = "";

var colorHighLight = "#CCCCFF";

// Initialize Dom interface.

if (document.getElementById) 
{ 

	isID = 1; 
	
	isDHTML = 1; 

}

else 

{

	if (document.all) 
	{ 
	
		isAll = 1; 
		
		isDHTML = 1; 
		
	}

	else
	
	{

		browserVersion = parseInt(navigator.appVersion);   
	
		if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4))	
		{
		
			isLayers = 1;
			
			isDHTML = 1;
			
		}
		
	}
	
}


// Common Point to retrieve DOM object reference.

function GetDOM(objectID) 
{

	if (isID) 	
	{ 
	
		return (document.getElementById(objectID)); 
		
	}
	
	else
	
	{
		if (isAll) 
		{ 
			return (document.all[objectID]); 
		}
		
		else
		
		if (isLayers) 
		{ 
		
			return (document.layers[objectID]); 
			
		}
		
	}
		
	return 0;
	
}

// Common Point to retrieve DOM objects style reference.

function GetStyle(objectID) 
{
	if (isID) 
	{ 
		return (document.getElementById(objectID).style); 
	}
	
	else
	
	if (isAll) 
	{ 
	
		return (document.all[objectID].style); 
		
	}
	
	else
	
	if (isLayers) 
	{ 
	
		return (document.layers[objectID]); 
		
	}
	
	return 0;
	
}

// based on true or false in cmdShow make visibility style visible or hidden.

function ChangeVisibility ( objectID, cmdShow )
{
	dm = GetStyle( objectID );
				
	if (cmdShow==true) 
	{ 
	
		dm.visibility = "visible";	
		
	}
	
	else
	
	{
	
		dm.visibility = "hidden";
					
	}
		
	return 0;			

}

// based on true or false in cmdShow make display style block or none.

function ChangeBlock( smID, cmdShow ) 
{
			
	dm = GetStyle(smID);
				
	if (cmdShow==true) 
	{ 
	
		dm.display = "block";	
		
	}
	
	else
	
	{
		dm.display = "none";
		
	}

	return 0;
			
}