tra gli esempi del sito dell' autore c'e' gia' questa funzione, precisamente in questo esempio
http://www.youngpup.net/_projectDire...rag/index.html

nel tuo caso
questo nell' head, dopo
<script type="text/javascript" src="dom-drag.js"></script>
codice:
<script language="javascript">

	window.onload = function() {
		if (document.all || document.getElementById)
		{
			var oB = document.all ? document.all["example"] : document.getElementById("example")
			var oG = document.all ? document.all["es"] : document.getElementById("es")
			
			reportBox2 = document.all ? document.all["oReport2"] : document.getElementById("oReport2")

			Drag.init(oB);
			Drag.init(oG);

			oB.onDrag = function(x, y) { reportDrag("example", x, y); }
			oG.onDrag = function(x, y) { reportDrag("es", x, y); }
		}

		function reportDrag(who, x, y) {
			reportBox2.value = who + ": x=" + x + ",y=" + y;
		}
	}
</script>
questo tutto quello che ti serve nel body
codice:
<form>
<input id="oReport2" style="margin-left: 20px; margin-top: 5px; width: 300px;" type="text">
</form>
[img]lips_small.gif[/img]
<p id="es" style="position: relative" />ciao</p>
ciao