﻿function getobj(obj){return document.getElementById(obj);}
function defPosition(event){if (document.attachEvent!=null){this.x=window.event.clientX+document.documentElement.scrollLeft+document.body.scrollLeft;this.y=window.event.clientY+document.documentElement.scrollTop+document.body.scrollTop;}if (!document.attachEvent&&document.addEventListener){this.x=event.clientX+window.scrollX;this.y=event.clientY+window.scrollY;}return{x:this.x,y:this.y};}
function absPosition(obj){this.x = 0;this.y = 0;while(obj){this.x += obj.offsetLeft;this.y += obj.offsetTop;obj = obj.offsetParent;}return {x:this.x,y:this.y};}
