function confirmDelete()
{
  return confirm('Are you sure you want to delete this?');
}

function showElement(element,mode)
{
  if (!mode)
  {
    mode = 'block';
  }
  document.getElementById(element).style.display = mode;
}

function hideElement(element,mode)
{
  if (!mode)
  {
    mode = 'none';
  }
  document.getElementById(element).style.display = mode;
}

function showCustomSlide(num)
{
  for (i = 1; i <= 6; i++)
  {
    hideElement('custom' + i);
  }
  showElement('custom' + num);
}

function isEmpty(id)
{
		if (document.getElementById(id).value == '')
			return true;
		else
			return false;
}

function myWriteLin(str)
{
		document.writeln(str);
}