
function absolutX(item) {
	var curritem=item;
	var x=0;
	for(;curritem!=document && curritem!=null;curritem=curritem.offsetParent ) {
		x+=no_unity(curritem.offsetLeft);
	}
	return x;
}
function absolutY(item) {
	var curritem=item;
	var y=0;
	for(;curritem!=document && curritem!=null;curritem=curritem.offsetParent ) {
		y+=no_unity(curritem.offsetTop);
	}
	return y;
}
function moveLayerOnCover(DIV_ELEMENT,COMPONENT) {
	var x = absolutX(COMPONENT);
	var y = absolutY(COMPONENT);
	DIV_ELEMENT.style.left=x;
	DIV_ELEMENT.style.top=y;
	DIV_ELEMENT.style.zIndex=140;
	DIV_ELEMENT.style.visibility = "visible";
}
function moveLayerDown (DIV_ELEMENT,COMPONENT) {
	var x = absolutX(COMPONENT);
	var y = absolutY(COMPONENT);
	DIV_ELEMENT.style.left=x;
	DIV_ELEMENT.style.top=y + COMPONENT.clientHeight;
	DIV_ELEMENT.style.zIndex=140;
	DIV_ELEMENT.style.visibility = "visible";

}
function viewNear(PARENT,CHILD){
	var x = absolutX(document.getElementByID(PARENT));
	var y = absolutY(document.getElementByID(PARENT));
	CHILD.style.left=x;
	CHILD.style.top=y;
	CHILD.style.zIndex=140;
	CHILD.style.visibility = "visible";
}
