function openCloseFunnies(elmntName)
{			

	var elmnt = findElmnt(elmntName);  
	var elmntHR = findElmnt(elmntName+"HR");  
	if( elmnt.style ) {
		elmnt = elmnt.style;
	} 

	if(elmnt.display =="none")
	{
		changeDisplay(elmntName,"block");
		elmntHR.className="darkHROpen";
		
	} else {
		changeDisplay(elmntName,"none");
		elmntHR.className="darkHR";
	}
}

var clsTemp = new Array();//temporary array of old class
function highlightRow(cls,tableID,row,cols)//highlight a table row, takes the class to change to, the id of the table, the row, and the number of cols
{	
	if(!is_ie())
	{
		for(i=1;i<cols;i++)//loop through columns
		{
			elmnt = "row"+row+"col"+i+"table"+tableID;//cell's name
			clsTemp[i] = changeCls(elmnt,cls);//change class and set clsTemp to the original class
		}	
	}
}
function dehighlightRow(cls,tableID,row,cols)
{	
	if(!is_ie())
	{
		for(i=1;i<cols;i++)
		{
			elmnt = "row"+row+"col"+i+"table"+tableID;
			if(clsTemp[i] == null)
			{
				changeCls(elmnt,cls);		
			} else
			{
				changeCls(elmnt,clsTemp[i]);	
			}
		}	
	}
}
function highlightCell(cls,tableID,row,col)//highlight a table row, takes the class to change to, the id of the table, the row, and the number of cols
{		
	if(!is_ie())
	{
		elmnt = "row"+row+"col"+col+"table"+tableID;//cell's name
		clsTemp[col] = changeCls(elmnt,cls);//change class and set clsTemp to the original class	
	}
}
function dehighlightCell(cls,tableID,row,col)
{		
	if(!is_ie())
	{
		elmnt = "row"+row+"col"+col+"table"+tableID;
		if(clsTemp[col] == null)
		{
			changeCls(elmnt,cls);		
		} else
		{
			changeCls(elmnt,clsTemp[col]);	
		}
	}
}
function highlightColumn(cls,tableID,col,rows)
{
	if(!is_ie())
	{
		for(i=2;i<rows;i++)
		{
			elmnt = "row"+i+"col"+col+"table"+tableID;		
			clsTemp[i] = changeCls(elmnt,cls);
		}	
	}
}
function dehighlightColumn(cls,tableID,col,rows)
{
	if(!is_ie())
	{
		for(i=2;i<rows;i++)
		{
			elmnt = "row"+i+"col"+col+"table"+tableID;		
			if(clsTemp[i] == null)
			{
				changeCls(elmnt,cls);		
			} else
			{
				changeCls(elmnt,clsTemp[i]);	
			}
		}	
	}
}
function enlargeThumb(path,tmp,eventd)//image path, caption text, site template
{
	open("content/about/enlargedThumb.php?tmp="+tmp+"&path="+path+"&event="+eventd,"thumbnail","width=500,  height=700, menubar=0, location=0, resizable=0, scrollbars=0, channelmode=0, toolbar=0, dependant=0, toolbars=0","_blank");
}
function openUserList(temp)
{
	open("data/users.php?temp="+temp,"users","width=150,  height=250, menubar=0, location=0, resizable=0, scrollbars=0, channelmode=0, toolbar=0, dependant=0, toolbars=0","_blank");
}
function open_leader_chooser()
{
	open("","","","_blank");
}
function insertUser()
{		
	name = document.forms.usersList["users"].value;
	list = window.opener.document.forms.contentForm1["to"].value;
	if(list.substring(list.length-1,list.length)!="," && list!="")
	{
		list = list+","+name;
	}else
	{
		list+=name;
	}
	window.opener.document.forms.contentForm1["to"].value=list;
		
}
var allChecked = false;
function checkAll(thisForm)
{	

	if(allChecked)
	{		
		for(i=0;i<selects.length;i++)
		{
				thisForm[selects[i]].checked=false;
		}	
		allChecked = false;
	}else
	{
		for(i=0;i<selects.length;i++)
		{
				thisForm[selects[i]].checked=true;
		}
		allChecked = true;
	}
}