function getPageOffsetTop(el) {
 var y;

 // Return the x coordinate of an element relative to the page.

 y = el.offsetTop;
 if (el.offsetParent != null)
 y += getPageOffsetTop(el.offsetParent);

 return y;
}

function getPageOffsetLeft(el) {

 var x;

 // Return the x coordinate of an element relative to the page.

 x = el.offsetLeft;
 if (el.offsetParent != null)
 x += getPageOffsetLeft(el.offsetParent);

 return x;
}
function findObj(n) {
  var x;
  if(document.all) x=document.all[n];
  if(document.getElementById) x=document.getElementById(n);
  return x;
}
function GetFrameElement(n) {
var el,x;
	el = findObj(n);
	if (el.frameElement){
			x = el.frameElement;
	}else{
			x = el;
	}
	return x;
}
function shide(element) {
    obj = findObj(element);
		if(obj.style.display!="none"){
			obj.style.display = "none";
		}else{
			obj.style.display = "inline";
		}
}