my ( $params ) = @_;
my $res="
<script>
function Blur$params->{id}() {
function Blur$params->{id}(ev) {
var code = document.getElementById('$params->{id}');
var code = document.getElementById(ev.data.id);
var url = '../cataloguing/plugin_launcher.pl?plugin_name=stocknumberam123.pl&code=' + code.value;
var req = \$.get(url);
req.done(function(resp){
-