<!-- BEGIN popup.tt -->
    [%
        function_name = fname OR 'popup'; # in case > 1 popup on page
        opts = 'toolbar=0,status=0,location=0,menubar=0,scrollbars=1,resizable=yes';
    %]
     
	<script language="javascript" type="text/javascript">
	<!--
	function [% function_name %](url, name) {
		var popwin;
		var opts="[% opts %],height=[% height %],width=[% width %],top=[% top %]";
		popwin = window.open("", name, opts);
		popwin.focus();
		popwin.location = url;
		return false;
	}
	-->
	</script>
<!-- END popup.tt -->