/*****************************************
** Used with 1 div. This activates it.	**
** Currently used by: N/A				**
*****************************************/
function toggle_on_div(div_name)
{
	document.getElementById(div_name).style.display = "block";
}

/*********************************************
** Used with 1 div. This deactivates it.	**
** Currently used by: N/A					**
*********************************************/
function toggle_off_div(div_name)
{
	document.getElementById(div_name).style.display = "none";
}

/*********************************************************

** Used with 1 div. This ACTIVATES OR DEACTIVATES it.	**

** Currently used by: N/A				            	**

*********************************************************/
function toggle_div(div_id) 
{	
 	if (document.getElementById(div_id).style.display == 'none') 
	{  
		document.getElementById(div_id).style.display = 'block';				
    }
	else 
	{
		document.getElementById(div_id).style.display = 'none';		
	}
}


/*************************************************************************
** Used with 2 divs. This deactivates one when the other is activated.	**
** Currently used by: Ajax dynamic drop-down							**
*************************************************************************/
function toggle_on_div_toggle_off_other(div_name,other_div)
{
   document.getElementById(div_name).style.display = "block";
   
   if(document.getElementById(other_div).style.display == "block")
   {
	   document.getElementById(other_div).style.display = "none";
   }
}

/*********************************************************************************
** Used with > 2 divs. This deactivates all other divs when one is activated.	**
** Currently used by: Form Elements												**
*********************************************************************************/
function toggle_on_div_toggle_off_others(div_count,type_num,div_id)
{
   for (i = 0; i < div_count; i++)
   {
	   var increment = i + 1;
	   
	   if(increment == type_num)
	   {
		   document.getElementById(div_id+'_div_'+increment).style.display = "block";
	   }
	   else
	   {
		   document.getElementById(div_id+'_div_'+increment).style.display = "none";
	   }
   }
   
}