function VNKS(e){ var kc=e.keyCode; return (((kc<48||kc>57)&&kc>=32&&kc!=45&&kc!=46)?false:true); } function VNF(f,i,E){ var v=parseFloat(E.value); var li=-1; var F=NF[f]; var O=NFO[f]; if(isNaN(v)){ var V=E.value.toUpperCase(); for(var o=0;oF.mx))){ alert("The value entered must be between "+Math.floor(F.mn/F.x)+" and "+Math.floor(F.mx/F.x)+"."); E.focus(); E.select(); }else{ document.forms["MainForm"].elements["FieldID:"+f+(i!=-1?("."+i):"")+"=LONG"].value=v; UNF(f,i); } }function INF(f,i,d){ var E=document.forms["MainForm"].elements["FieldID:"+f+(i!=-1?("."+i):"")+"=LONG"]; var F=NF[f]; var v=parseInt(E.value); if(isNaN(v)) v=0; v+=(d*F.i*F.x); if(F.mn==F.mx||(v>=F.mn&&v<=F.mx)){ E.value=v; UNF(f,i); } }function CNL(f,i,d){ E=document.forms["MainForm"].elements["FieldID:"+f+(i!=-1?("."+i):"")+"=LONG"]; var v=parseInt(E.value); var F=NF[f]; var O=NFO[f]; if(isNaN(v)) v=0; for(var o=0;F.li==-2&&o=O.length) F.li=O.length-2; if(F.li>=0){ E.value=O[F.li+1]; UNF(f,i); }else F.li=-1; } function UNF(f,i){ var E=document.forms["MainForm"].elements; var FI=E["FieldID:"+f+(i!=-1?("."+i):"")+"=LONG"]; var F=NF[f]; var O=NFO[f]; var d=0; var v=parseInt(FI.value); if(isNaN(v)) v=0; if(F.CUF) v=F.CUF(f,i,v); for(var o=0;o