
_d = document;
flg = new Array();
function hide(lyr)
{
	_d.getElementById(lyr).style.display = 'none';
}
function show(lyr)
{
	_d.getElementById(lyr).style.display = 'list-item';
}
function ChangeMenu(lyr)
{
	hide('about');
	hide('general');
	hide('members');

	if( lyr == "" ) {
		show('about');
	} else {
		show(lyr);
	}
}
function Expand(lyr)
{
   	if( _d.getElementById(lyr).style.display == 'none' ) {
   		_d.getElementById(lyr+ "-img").src = "{src_dir}images/sub_dn.gif";
        show(lyr);
        flg[lyr]++;
   	} else if( _d.getElementById(lyr).style.display == 'list-item' ) {
   		_d.getElementById(lyr+ "-img").src = "{src_dir}images/sub_up.gif";
        hide(lyr);
        flg[lyr]--;
    }
}

function checkUncheckAll(theElement) {
     var theForm = theElement.form, z = 0;
     while (theForm[z].type == 'checkbox' && theForm[z].name != 'checkall') {
      theForm[z].checked = theElement.checked;
      z++;
     }
}
function ConfirmAccountDelete( id ) {
	Res = confirm("Are you sure you would like to delete this account?");
}


