function Milan_StartMove(oEvent,oBj){} if(whichButton) { //var oDiv=document.getElementById("oDiv");offset_x=parseInt(oEvent.clientX-oDiv.offsetLeft);} //var oDiv=document.getElementById("oDiv");<div id="oDiv" onmousedown="Milan_StartMove(event,this)" onmouseup="Milan_StopMove(event)" style="cursor:move;"> sss </div> <div id="oDiv1" onmousedown