<%args>
$id => undef
</%args>
<%init>
if ($id){

	my $dbh = $m->comp("/_shared/procs/utils/dbi_connect.m", database=>'guianet');
	my ($req_key) = $dbh->selectrow_array("select reqkey from tdownloads_history where id='$id'");
	return $req_key;

}else{
	
	return undef;
	
}
</%init>
