// JavaScript Document
var opened;
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;

function showPopup(url, w, h){
	if (opened ){
		opened.close();
	}
	var config = 'height='+h+',width='+w+',';
	config += (arguments.length > 3)? arguments[3] : 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0';
	opened = window.open(url, '_popup', config);
	opened.focus();
}

function getBounds( obj ){
	var t = obj.offsetTop;
	var l = obj.offsetLeft;
	var w = obj.offsetWidth;
	var h = obj.offsetHeight;
	
	while ( obj=obj.offsetParent ){
		t += obj.offsetTop;
		l += obj.offsetLeft;
	}
	return {top:t, left:l, width:w, height:h}
}