function switchBlock(typeChar, labelID)
{
	itemBlockID = typeChar + 'block' + labelID;
	itemBlock = document.getElementById(itemBlockID);
	switch (itemBlock.style.display)
	{
		case 'block':
			itemBlock.style.display = 'none';
			break;
		case 'none':
			itemBlock.style.display = 'block';
			break;
		default:
			itemBlock.style.display = 'block';
	}
}

function checkPword()
{
	var retVal = true;
	pass = document.getElementById('password').value;
	confirmPass = document.getElementById('cpassword').value;
	if (pass != confirmPass)
	{
		retVal = false;
		alert('Password and confirmation are not identical.');
	}
	return retVal;
}

function confirmDelete(itemType, itemID)
{
	if (confirm('Delete this ' + itemType + '?'))
	{ document.location.href = 'del' + itemType + '.asp?id=' + itemID; }
}

function markLabels(labelString)
{
	var labelArray = labelString.split(',');
	for (n=0;n<labelArray.length;n++)
	{
		checkBox = document.getElementById('lc'+labelArray[n]);
		checkBox.checked = true;
	}
}