

 function _onkeydownl(id,idt,q) {
   document.getElementById(idt).value=document.getElementById(id).value*q;
//    forms_invl.tot.value=forms_invl.qty.value*forms_invl.price.value;
 }


 function _clickl(oo,ov,inp,kk){
   ttt=document.getElementById('ttt').value;
   ttp=document.getElementById('ttp').value;
   ttk=document.getElementById('ttk').value;
   tot=0;
   ss=ttt.split(";");
   ssp=ttp.split(";");
   ssk=ttk.split(";");

   for (st=0;st<(ss.length-1);st++){
     id="o_"+ss[st];

     if (document.getElementById(id)!=null) {  //alert('-------'+id);
        o=document.getElementById(id).value*1;
        if (o>0){
          $nn=Math.round((o*(ssp[st]*ssk[st]))*100)/100;;
          tot=tot+$nn;       //   (o*(ssp[st]*kk));
   //alert(o+" "+ssk[st]+" "+ssp[st]+" "+$nn+" ("+tot+") ("+ss[st]+")");
        }
     }

     if (ss[st]==inp){
       t=Math.round((o*oo)*1000)/1000;
       document.getElementById('oo_'+ss[st]).value=t;
       t=Math.round((o*ov)*100)/100;
       document.getElementById('ov_'+ss[st]).value=t;
     }
   }

   tot=Math.round((tot)*100)/100;
   document.getElementById('tot').value=tot;
//alert(tot);
//s=document.formord.tot.value;
 }