
function selectimage(srcimg, targetfld)
{
  var img = document.getElementById(srcimg);
  if ((img==null) || (targetfld == null)) return;
  targetfld.value = img.src;
}

function testupdatebadge()
{
  if (document.badge.server.value == "")
  {
    alert ("Please enter a valid ShowMyScreen-Server-URL!");
    document.badge.server.focus();
	return false;
  }

  if (document.badge.stream.value == "")
  {
    alert ("Please enter a valid contact name!");
    document.badge.stream.focus();
	return false;
  }

  if (document.badge.onlineimg.value == "")
  {
    alert ("Please enter a valid URL for the online image!");
    document.badge.onlineimg.focus();
	return false;
  }
  return true;
}

