function changeClose(){
  document.getElementById("succdiv").style.display="none";
}
function autoHeight(o1,o2){
  var h=o1.offsetHeight-5;
  o2.style.height=h+"px";
}

function CloseDiv(in_div_name) {
	document.getElementById(in_div_name).style.display="none";
}

function drag(o1,o2){
	
  o1.onselectstart=function() {return(false)};

  o1.onmousedown=function(e){
    e=e||window.event;
    e.cancelBubble = true;
    var x=e.layerX||e.offsetX;
    var y=e.layerY||e.offsetY;
    document.onmousemove=function(e){
      e=e||window.event;
      var cur_left=parseInt(o2.style.left);
      var cur_top= parseInt(o2.style.top);
      o2.style.left=(e.clientX-x)+"px";
      o2.style.top=(e.clientY-y)+"px";
    };
    document.onmouseup=function(){document.onmousemove=null;};
  };
}
