$('body').append('<input type="button" value="a" id="mno" style="border-width: 0px; background: url(images/opacity.png);">')
$("#mno").css("position", "absolute").css("top", 300).css("left", 5).css({ color: "red" });
$('#mno').click(function(){
$('[name="keyword"]').val($('[name="vir"]').val() + "-" + $('[name="category_description[3][name]"]').val());
});
$('body').append('<input type="text" name="vir" id="vir" size="7" placeholder="TEXTA" style="border-width: 0px;" >')
$("#vir").css("position", "absolute").css("top", 260).css("left", 270).css({ color: "red" });
$('body').on('keyup', 'input[name="keyword"]', function(event) {
event.preventDefault();
$(this).val($(this).val().replace(/\s/ig, '-'));
});
sub kelly {
my $mrg = 0.99999;
my $mrg2 = 0.99999;
my $aline = $_[2];
my $gline = $_[4];
my $raline = $aline < 0 ? int($aline-0.3) : int($aline+0.3);
my $rgline = int($gline+0.3);
my @p = two($_[0], $_[1], $raline, $rgline);
my @f = ();
my ($stop, $rem, $t, $u, $n, $i, $ulog, $bu);
my $index = 0;
my ($sta, $sto, $reta, $reto);
my @o = (
[0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0],
);
#print "@p\n";
@o[0] = [afill1($aline-$raline,$_[3]*$mrg)];
@o[1] = [afill2($aline-$raline,$_[3]/($_[3]-1)*$mrg)];
@o[2] = [gfill1($gline-$rgline,$_[5]*$mrg2)];
@o[3] = [gfill2($gline-$rgline,$_[5]/($_[5]-1)*$mrg2)];
#print "$o[0][0] $o[0][1] $o[0][2] $o[0][3] $o[0][4] $o[0][5] $o[0][6] $o[0][7] $o[0][8]\n";
#print "$o[2][0] $o[2][1] $o[2][2] $o[2][3] $o[2][4] $o[2][5] $o[2][6] $o[2][7] $o[2][8]\n";