
var maxindex=999;
var drag_=false
var _=new Function('obj','return document.getElementById(obj);')
var oevent=new Function('e','if (!e) e = window.event;return e')
function ljmove(obj){
	var x,y;
	//_(obj).onmousedown=function(e){

		obj.onmousedown=function(e){
		//obj.style.zIndex = ++maxindex
		drag_=true;
		//frmmark.style.visibility="visible";
		with(this){
			style.position="absolute";
			var temp1=offsetLeft;
			var temp2=offsetTop;
			x=oevent(e).clientX;y=oevent(e).clientY;
			document.onmousemove=function(e){
				if(!drag_)return false;
				with(this){
					style.left=temp1+oevent(e).clientX-x+"px";
					style.top=temp2+oevent(e).clientY-y+"px";
				}
			}
		}
		document.onmouseup=new Function("drag_=false;");
//frmmark.style.visibility='hidden'
	}
}
