//object.onmousedown = testFunction(object);
object.onmousedown = function()
var textBox = document.getElementById("dragTest");
textBox.value = object.id;
What it does is,it puts in a textbox the name of the div wihch has been clicked
The thing is, that it doesn´t work first time I click. Only the second I click on the div. That goes for both div1, and div2,.. then after that it works fine,..