% if (!$Enabled) {
<img src="/RG/img/<% "${Prefix}_${Name}_Disabled" %>.png" width="19" height="19" alt="<% $Loc ? loc($Name) : $Name %>" title="<% $Loc ? loc($Name) : $Name %>" align="absmiddle" border=0>
% } else {
%     my $val = $Current ? 0 : 1;
%     my $fr  = "/RG/img/${Prefix}_${Name}_Off.png"; 
%     my $to  = "/RG/img/${Prefix}_${Name}_On.png"; 
%     ($fr, $to) = ($to, $fr) if $Current;

<img
    src="<% $fr %>"
    onclick="
	if (this.tag == '<% $to %>') {
	    this.tag = this.src = '<% $fr %>';
	    parent.view.location.href='/RG/Report/View.html?Op=Change&<% $Name %>=<% $Current %>'
	}
	else {
	    this.tag = this.src = '<% $to %>';
	    parent.view.location.href='/RG/Report/View.html?Op=Change&<% $Name %>=<% $val %>'
	}
    "
    width="19"
    height="19"
    alt="<% $Loc ? loc($Name) : $Name %>"
    title="<% $Loc ? loc($Name) : $Name %>"
    align="absmiddle"
    border=0 />
% }
<%ARGS>
$Enabled	=> 1
$Current        => undef
$Loc            => 1
$Prefix		=> 'Graph'
$Name
</%ARGS>
