function loadWinUrl(x)
{
    loadWinUrlBase(x, 500, "");
}

function loadWinUrlBase(x, width, height ) {
    Dialog.alert( 
                 {url: x, options: {method: 'get'}}, 
                 {className: "alphacube", width: width, height: height, top: 60, okLabel: "dummy", buttonClass: "noshow",
                         showEffectOptions:{duration:0.1}, recenterAuto: false, hideEffectOptions:{duration:0.1}});

    
    /* 
    In IE, if a long review is longer than the actual content tab behind it, 
   scrolling down to see the whole review exposed some "white." 
   This trick seems to fix it, by extending the "bottom" bar, which is white.
   Don't ask me why exactly. I'm sort of amazed this works at all. RG 4/14/08
    */
    myObserver = { onShow: function(eventName, win) { 
            var winheight = parseInt($(win.getId()).style.height);
            var wintop = parseInt( $(win.getId()).style.top);
            var overheight = parseInt( $('overlay_modal').style.height);
            
            var contentMain = $('content-main') || $('content-main-IE') || $('content-main-nonIE');
            
            if(contentMain != null) 
            {
	            var conheight = contentMain.getHeight();
	            // alert('Win height: ' + winheight);
	            // alert('Win top: ' + wintop);
	            // alert('Overlay height: ' + overheight); 
	            // alert('Conheight: ' + conheight);
	
	            // bottom + conheight  should be at least winheight+wintop
	            var diff = winheight + wintop - conheight;
	            if (diff > 0) {
                        // no longer using this (removed 11/10)
	                //$('bottom').style.height = diff + 'px';
	                //alert('Diff' + diff);
	            }
            }            
        }
    }

    Windows.addObserver(myObserver);

    //
    //alert ($('overlay_modal'));
    //   alert ($('overlay_modal').style.height);
    //    $('overlay_modal').style.height = (document.height+ 200)+ 'px';
    
    //return 'overlay_modal'; //$('overlay_modal').id; 
}

function loadWinId(x) {
    Dialog.alert( 
                 $(x).innerHTML,
                 {className: "alphacube", width: 500, top: 60, okLabel: "dummy", buttonClass: "noshow",
                         showEffectOptions:{duration:0.2}, recenterAuto: false, hideEffectOptions:{duration:0.2}});
}

function loadWinIdFill(x, winwidth, winheight) {
    Dialog.alert( 
                 $(x).innerHTML,
                 {className: "alphacube", width: winwidth, height: winheight, top: 60, okLabel: "dummy", buttonClass: "noshow",
                         showEffectOptions:{duration:0.2}, recenterAuto: false, hideEffectOptions:{duration:0.2}});
}
