function positioniereBild(bildId, x, y, masseinheit) {
	
	document.getElementById(bildId).style.top = y + masseinheit;
	document.getElementById(bildId).style.left = x + masseinheit;
}

function bewegeBild(bildId, vonX, vonY, bisX, bisY, masseinheit, anzahlSchritte) {
	
	var i;
	var aufruf;
	var t = 0;
	var dt = 10;
	
	var x = vonX;
	var y = vonY;
	
	for (i = 0; i <= anzahlSchritte; i++) {
		aufruf = "positioniereBild('" + bildId + "', "
				 + x + ", " + y + ", '" + masseinheit + "')";
		window.setTimeout(aufruf, t);
		//alert(aufruf);
		t = t + dt;
		if (i < anzahlSchritte) {
    		x = x + (bisX - x) / (anzahlSchritte - i);
	    	y = y + (bisY - y) / (anzahlSchritte - i);
		}
	}
	
}

function umkehren(wort) {

  var richtigHerum = "";
  for (i = wort.length - 1; i >= 0; i--) {
    richtigHerum = richtigHerum + wort.charAt(i);
  }
  return richtigHerum;
}

function nachrichtAn(benutzer, host, linktext) {

  document.write("<a class=\"normal\" href=\"mailto:");
  document.write(umkehren(benutzer) + "@" + umkehren(host));
  document.write("\"><span class=\"linkSchwarz\">" + umkehren(linktext) + "</span></a>");
}
