/*** µå·¡±×¸¦ À§ÇÑ Àü¿ªº¯¼ö ***/
var dragapproved=false;
var dragObj=false;
/***************************/
/****************************************************************/
/*                                                              */
/****************************************************************/
function drag_dropie(ev){

  var evCode = (is_ie) ? window.event : ev;
  if (dragapproved == true && dragObj){
    dragObj.style.left = parseInt(tempx.replace('px','')) + evCode.clientX - iex;
    dragObj.style.top = parseInt(tempy.replace('px','')) + evCode.clientY - iey;
    return false;
  }
}

function initializedragie(idName, ev){

  //var divObj = document.getElementById(idName);
  dragObj = document.getElementById(idName);
  //alert(dragObj);
  
  iex = ev.clientX;
  iey = ev.clientY;

  tempx = dragObj.style.left;
  tempy = dragObj.style.top;
  dragapproved = true;
  
  document.onmousemove = function (ev) {
    drag_dropie(ev);
  }
}

//if (document.all){
  document.onmouseup = new Function("dragapproved=false");
  document.onmouseup = new Function("dragObj=false");
//}


/****************************************************************/

