    function popupShow( url, width, height, nearEl )
    {
        width = width || 400;
        heigth = height || 200;
        
        var top=300, left=300;
        
        var screenPosY = window.screenTop ||  window.pageYOffset ;
        var screenPosX = window.screenLeft || window.screenX ;
        
        if( (typeof nearEl) == 'object' ) 
        {
            var popupPos = getPos(nearEl);
            top = screenPosY + popupPos[1] ;
            left = screenPosX + popupPos[0] + nearEl.offsetWidth + 25;
        }
        else
        {
        
        }
        
        popUp = window.open( url, null, 'toolbar=0, statusbar=0,width='+width+',height='+height+',scrollbars=0,top='+top+',left='+left );
        popUp.moveTo(left,top)
        popUp.focus();
        
    }
    function getPos(obj) {
        var curleft = curtop = 0;
        if (obj.offsetParent) {
	        do { curleft += obj.offsetLeft;	curtop += obj.offsetTop; } while (obj = obj.offsetParent);
        }
        return [curleft,curtop];
    }	
