var popup = null;
	
function show_popup(url,width,height)
{
	if (typeof(width) == 'undefined')
	   width = 400;

        if (typeof(height) == 'undefined')
           height = 180;


        var options = 'resizeable=yes, width=' + width + ',height=' + height + ',top=300,left=450';

	if(typeof(window) != 'undefined')
		popup = window.open(url, 'warning', options);
	else
		popup = open(url, 'warning', options);

	popup.focus();

	return false;
}

onfocus = function()
{
	if(popup != null && !popup.closed)
		popup.focus();
}