function CheckLen(Target) {
  StrLen = Target.value.length
  if (StrLen == 1 && Target.value.substring(0,1) == " ") {
    Target.value = ""
    StrLen = 0
  }
  if (StrLen > 160 ) {
    Target.value = Target.value.substring(0,160)
    CharsLeft = 0
  } else {
    CharsLeft = 160 - StrLen
  }
  document.sendsms.anzahl.value = CharsLeft
}

function senden(popup) {
  document.sendsms.submit();
  window.open(popup,'Sponsor','');
  window.setTimeout("self.focus();",0);
}

function toggle( targetId ) {
  if (document.getElementById){
    target = document.getElementById( targetId );
    if (target.style.display == "none"){
      target.style.display = "";
    } else {
      target.style.display = "none";
    }
  }
}