var close_btn = document.getElementById('popup_window');
close_btn.style.display='none';

(function() {
    var Dom = YAHOO.util.Dom,
        Event = YAHOO.util.Event;

        var resize = new YAHOO.util.Resize('popup_window', {
            knobHandles: false,
            height: 'auto',
            width: 'auto',
            proxy: true,
            ghost: true,
            status: true,
            draggable: true,
            animate: true,
            animateDuration: .75,
            animateEasing: YAHOO.util.Easing.backBoth
        });
})();

function load_popup(url)
{
	document.getElementById('popup_content_block').innerHTML = '';
	close_btn.style.display='block';

	ajax_URLcontent_into_div(url);

	var resized_popup_div = document.getElementById('popup_window');
	resized_popup_div.style.width = '700px';

	if (	navigator.userAgent.indexOf("MSIE 6") != -1 ||
		navigator.userAgent.indexOf("MSIE 5") != -1 || 
		navigator.userAgent.indexOf("MSIE 4") != -1 || 
		navigator.userAgent.indexOf("MSIE 3") != -1 
	   ) 
	{
		resized_popup_div.style.height = '500px';
		//resized_popup_div.style.height = '100%';
		//resized_popup_div.style.height = resized_popup_div.offsetHeight;
	}
	else
	{
		resized_popup_div.style.height = 'auto';
	}
}
