=<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<TITLE>Program testowy kontrolki ThermalLib.ocx</TITLE>

</HEAD>

<SCRIPT LANGUAGE="JavaScript1.1">

function OpenPort(form) {
  data = (form.NrCom.options[form.NrCom.selectedIndex].text)
  ThermalLib.THLOpenPort(data)
  ThermalLib.THLSendBel()
  form.BtOpen.disabled=true
  form.info.value = ThermalLib.LBIDRQ()
}

function ClosePort(form)
{
ThermalLib.THLClosePort()
form.BtOpen.disabled=false
 form.info.value = ""
}

function SendBel(form)
{
alert("SendBel : " + ThermalLib.THLSendBel())
}

function SendChar(form)
{
var txt = form.txt.value
var czycrc = (form.crc.options[form.crc.selectedIndex].text)
var ccrc
if (czycrc == "Tak")
ccrc = "1"
if (czycrc == "Nie")
ccrc = "0"

var czyfrm = (form.frm.options[form.frm.selectedIndex].text)
var cfrm
if (czyfrm == "Tak")
cfrm = "1"
if (czyfrm == "Nie")
cfrm = "0"

alert("SendChar : " + ThermalLib.THLSend(txt,cfrm,ccrc))
}

function GetChar(form)
{
form.odp.value = ThermalLib.THLReceive()
}

function Clean(form)
{
ThermalLib.THLCleanComBuf()
}

function GetTime(form)
{
var co = new String( ThermalLib.LBSENDCK())
co = co + ";"
//alert(co)

var time = new String(co)

var s1 = time.indexOf( ";" , 0 )
form.yy.value = ("20" + time.substring(0,s1))

var s2 = time.indexOf( ";" , (s1+1) )
form.mm.value = time.substring((s1+1) ,s2)

var s3 = time.indexOf( ";" , (s2+1) )
form.dd.value = time.substring((s2+1) ,s3)

var s4 = time.indexOf( ";" , (s3+1) )
form.hh.value = time.substring((s3+1) ,s4)

var s5 = time.indexOf( ";" , (s4+1) )
form.ms.value = time.substring((s4+1) ,s5)

}

function GetDle(form)
{
var dle  = new String(ThermalLib.THLSendDLE())
alert(dle)

 var r1 = dle.indexOf( "=" , 0 )
form.onl.value = dle.substring( (r1+1), (r1+2) )

 var r2 = dle.indexOf( "=" , (r1+1) )
form.peakk.value = dle.substring( (r2+1) , (r2+2) )

 var r3 = dle.indexOf( "=" , (r2+1) )
form.err.value = dle.substring( (r3+1) , (r3+2) )
}

function GetENQ(form)
{
var enq = new String(ThermalLib.THLSendENQ())
//alert(enq)
var r1 = enq.indexOf( "=" , 0 )
form.fsk.value = enq.substring( (r1+1), (r1+2) )

 var r2 = enq.indexOf( "=" , (r1+1) )
form.cmd.value = enq.substring( (r2+1) , (r2+2) )

 var r3 = enq.indexOf( "=" , (r2+1) )
form.par.value = enq.substring( (r3+1) , (r3+2) )

 var r4 = enq.indexOf( "=" , (r3+1) )
form.trf.value = enq.substring( (r4+1) , (r4+2) )
}


function Login(form)
{
var login = ThermalLib.LBLOGIN(form.LoginKasjer.value, form.LoginKasa.value)
alert("LBLOGIN : " + login)
}

function Logout(form)
{
var logout = ThermalLib.LBLOGOUT(form.LogoutKasjer.value, form.LogoutKasa.value)
alert("LBLOGOUT: " + logout)
}

function Feed(form)
{

var ico = (ThermalLib.LBFEED(form.Illine.value))
alert("LBFEED : " + ico)
}

function Ndmd(form)
{

var co = (form.ndmd.options[form.ndmd.selectedIndex].text)
var data
if (co == "kopii")
data = "0"
if (co == "org. + kopia")
data = "1"
var ico = (ThermalLib.LBSNDMD(data))
alert("LBMDND : " + ico)
}

function LBSTOCSH(form)
{
var ico = ThermalLib.LBSTOCSH(form.tocash.value,form.tocashkasa.value,form.tocashkasjer.value)
alert("LBSTOCSH : " + ico)
}

function  LBDECCSH(form)
{
var ico = ThermalLib.LBDECCSH(form.deccsh.value,form.deccshkasa.value,form.deccshkasjer.value)
alert("LBDECCSH : " + ico)
}


function  LBINCCSH(form)
{
var ico = ThermalLib.LBINCCSH(form.inccsh.value,form.inccshkasa.value,form.inccshkasjer.value)
alert("LBINCCSH : " + ico)
}

function LBSERM(form)
{
var co = (form.lbserm.options[form.lbserm.selectedIndex].text)
var ico = ThermalLib.lbserm(co)
alert("LBSERM : " + ico)
}

function LBERNRQ(form)
{
form.lbernrq.value = ThermalLib.LBERNRQ()
}

function LBDAYREP(form)
{
var ico = ThermalLib.LBDAYREP(10000,form.dayrep.options[form.dayrep.selectedIndex].text ,form.dayrepkasa.value,form.dayrepkasjer.value)
alert("LBDAYREP : " + ico)
}

function THLSetCk(form)
{
var ico = ThermalLib.THLSetCk(form.setckgodzina.value,form.setckminuta.value, form.setckkasa.value, form.setckkasjer.value)
alert("THLSetCk : " + ico)
}

function LBTRSHDR(form)
{
var ico = ThermalLib.LBTRSHDR(form.hdrpi.value,form.hdrpn.value,form.hdrline1.value,	form.hdrline2.value,form.hdrline3.value)
alert("LBTRSHDR: " + ico)
}


function LBTREXITCAN(form)
{
var ico = ThermalLib.LBTREXITCAN(form.canpns.value, form.cankasa.value, form.cankasjer.value, form.cannrsys.value)
alert("LBTREXITCAN : " + ico)
}

function LBTRSLN(form)
{
var ico =  ThermalLib.LBTRSLN( form.trslnpi.value, form.trslnpr.value, form.trslnpo.value, form.trslnnazwa.value, form.trslnilosc.value, form.trslnptu.value, form.trslncena.value, form.trslnbrutto.value, form.trslnrabat.value, form.trslnopisrabatu.value)
alert( "LBTRSLN : " + ico)
}
 
function LBTREXIT(form)
{
 var ico = ThermalLib.LBTREXIT(form.exitpr.value, form.exitpn.value, form.exitpx.value, form.exitkod.value, form.exitlinia1.value, form.exitlinia2.value, form.exitlinia3.value, form.exitwplata.value, form.exittotal.value, form.exitrabat.value)
 alert("LBTREXIT : " + ico)
 }
 
 function LBTRXEND1(form)
 {
 var ico = ThermalLib.LBTRXEND1(form.end1pns.value,form.end1pr.value,form.end1pg.value,form.end1nrsys.value,form.end1total.value,
													form.end1wplata.value,form.end1reszta.value,form.end1nrkasy.value,form.end1kasjer.value)
alert("LBTRXEND1: " + ico)
}

function LBDEP(form)
{
var co = (form.lbdepps.options[form.lbdepps.selectedIndex].text)
var data
if (co == "wydanie")
data = "10"
if (co == "przyjecie")
data = "6"
if (co == "storno przyjecia")
data = "7"
if (co == "storno wydania")
data = "11"

var ico = ThermalLib.LBDEP(data, form.lbdepnr.value,form.lbdepilosc.value,form.lbdepwartosc.value)
alert("LBDEP: " + ico)
}


function THLAddKaucje(form)
{
var co = (form.addkaucjeps.options[form.addkaucjeps.selectedIndex].text)
var data
if (co == "wydanie")
data = "1"
if (co == "przyjecie")
data = "0"
var ico = ThermalLib.THLAddKaucje(data, form.addkaucjenropak.value,form.addkaucjeilosc.value,form.addkaucjewartosc.value)
alert("THLAddKaucje : " + ico)
}


function THLAddRab(form)
{
var co = (form.addrabpx.options[form.addrabpx.selectedIndex].text)
var data
if (co == "brak")
data = 0
if (co == "rabat proc.")
data = 1
if (co == "rabat kwot.")
data = 3
if (co == "narzut proc.")
data = 2
if (co == "narzut kwot.")
data = 4

var co = (form.addrabpxs.options[form.addrabpxs.selectedIndex].text)
var data2
if (co == "tak")
data2 = 1
if (co == "nie")
data2 = 0

var ico = ThermalLib.THLAddRab(data, data2, form.addrabwartosc.value, form.addrabopis.value)
alert("THLAddRab: " + ico)
}

function THLAddFormPlat(form)
{
var co = (form.addformplattyp.options[form.addformplattyp.selectedIndex].text)
var data
if (co == "karta")
data = 1
if (co == "czek")
data = 2
if (co == "bon")
data = 3
if (co == "inna")
data = 4
var ico = ThermalLib.THLAddFormPlat(data, form.addformplatnazwa.value, form.addformplatwartosc.value)
alert("THLAddFormPlat: " + ico)
}

function  LBFSKREP1(form)
{
var co = (form.fskrep1.options[form.fskrep1.selectedIndex].text)
var data
if (co == "miesięczny")
data = 6
if (co == "miesięczny podsum.")
data = 7
if (co == "okresowy")
data = 0
if (co == "okresowy podsum.")
data = 1
var ico = ThermalLib.LBFSKREP1(data, form.fskrepdatapocz.value, form.fskrepdatakon.value, form.fskrepkasa.value, form.fskrepkasjer.value)
alert("LBFSKREP1: " + ico)
}

function  LBFSKREP2(form)
{
var co = (form.fskrep2.options[form.fskrep2.selectedIndex].text)
var data
if (co == "okresowy")
data = 16
if (co == "okresowy podsum.")
data = 17
var ico = ThermalLib.LBFSKREP2(data, form.fskrep2nrpocz.value, form.fskrep2nrkon.value, form.fskrep2kasa.value, form.fskrep2kasjer.value)
alert("LBFSKREP2: " + ico)
}

function   THLAddCshRepFormPlat(form)
{

var co = (form.cshrepaddformplat.options[form.cshrepaddformplat.selectedIndex].text)
var data
if (co == "karta")
data =0
if (co == "czek")
data =1
if (co == "bon")
data =2
var ico = ThermalLib.THLAddCshRepFormPlat(data, form.cshrepaddformplatnazwa.value, form.cshrepaddformplatwartosc.value)
alert("THLAddCshRepFormPlat: " + ico)
}


function LBCSHREP1(form)
{
ico = ThermalLib.LBCSHREP1(
form.cshrepzmiana.value, 
form.cshrepkasjer.value,
form.cshreppoczatek.value,
form.cshrepkoniec.value,
form.cshrepprzychod.value,
form.cshrepsprzedgot.value,
form.cshrepwplaty.value,
form.cshrepprzyjecia.value,
form.cshrepwyplaty.value,
form.cshrepwydania.value,
form.cshrepstankasy.value,
form.cshrepiloscparagonow.value,
form.cshrepiloscanulparagonow.value,
form.cshrepiloscstorno.value,
form.cshrepnrkasy.value)
alert("LBCSHREP1: " + ico)
}



function LBFSTRQ25(form)
{
ico = ThermalLib.LBFSTRQ25(
form.LBFSTRQ25YY.value,
form.LBFSTRQ25MC.value, 
form.LBFSTRQ25DD.value,
form.LBFSTRQ25GG.value,
form.LBFSTRQ25MM.value
)
alert("LBFSTRQ25: " + ico)
form.RekordPoDatach.value = ThermalLib.LBFSTRQ(27)
}

function LBFSTRQ26(form)
{
ico = ThermalLib.LBFSTRQ26(form.LBFSTRQ26NR.value)
alert("LBFSTRQ26: " + ico)
form.RekordPoNR.value = ThermalLib.LBFSTRQ(27)
}

function LBFSTRQ(form)
{
ico = ThermalLib.LBFSTRQ(50)
form.Status50.value = ThermalLib.LBFSTRQ(50) 
}
</SCRIPT>


<BODY bgcolor=black >
<OBJECT id=ThermalLib height=0 width=0 
classid=clsid:904511D2-5407-4033-8DAD-07B33EC7317E><PARAM NAME="_Version" VALUE="65536"><PARAM NAME="_ExtentX" VALUE="26"><PARAM NAME="_ExtentY" VALUE="26"><PARAM NAME="_StockProps" VALUE="0"></OBJECT>

<FORM  id=form1 name=form1>
<TABLE width="75%" border=1 align=center>
 <TR>
  <TD>
    <SELECT NAME="NrCom">
	<OPTION SELECTED>Com1
	<OPTION>Com2
	<OPTION>Com3
	<OPTION>Com4
	</OPTION>
	</SELECT>
	<INPUT TYPE="button" VALUE="Połącz"  name=BtOpen onClick="OpenPort(this.form)"  >
	<INPUT TYPE="button" VALUE="Rozłącz"  name=BtClose  onClick="ClosePort(this.form)" >
	<INPUT TYPE="button" VALUE="Bel"  name=BtBel onClick="SendBel(this.form)">
      <font color=white >Drukarka: </font></FONT><INPUT name=info style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; FONT-SIZE: medium; BORDER-LEFT: 0px; WIDTH: 252px; COLOR: red; BORDER-BOTTOM: 0px; HEIGHT: 22px;   BACKGROUND-COLOR: black; TEXT-ALIGN: center" border=0 size=110>
   </TD>
  </TR>
  
  
  <TR>
    <TD>    
    <INPUT TYPE="button" VALUE="Send" name=BtSendChar onClick="SendChar(this.form)">
    <font color=white >Tekst</font><INPUT name=txt 
      style="WIDTH: 120px; HEIGHT: 22px" size=16>
    <font color=white >CRC</font>
    <SELECT NAME="crc">
	<OPTION SELECTED>Tak
	<OPTION>Nie
	</OPTION>
	</SELECT>
    <font color=white >Ramka:</font>
    <SELECT NAME="frm">
	<OPTION SELECTED>Tak
	<OPTION>Nie
	</OPTION>
	</SELECT>&nbsp;&nbsp;
    <INPUT TYPE="button" VALUE="Receive" name=BtGetChar onClick="GetChar(this.form)" style="WIDTH: 60px; HEIGHT: 24px" size=16>
    <INPUT name=odp style="WIDTH: 113px; HEIGHT: 22px" 
      size=15>&nbsp;&nbsp;&nbsp;
    <INPUT TYPE="button" VALUE="Wyczyść" name=BtClean onClick="Clean(this.form)" style="WIDTH: 64px; HEIGHT: 24px" size=15> 
	</TD>
 </TR>
 
 <TR>
   <TD>    
    <INPUT TYPE="button" VALUE="Odczyt czasu" name=BtGetTime onClick="GetTime(this.form)" style="WIDTH: 97px; HEIGHT: 24px" size=23>
	<font color=white >Rok: </font><INPUT name=yy style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; FONT-SIZE: medium; BORDER-LEFT: 0px; WIDTH: 43px; COLOR: red; BORDER-BOTTOM: 0px; HEIGHT: 22px;   BACKGROUND-COLOR: black; TEXT-ALIGN: center" border=0 size=19>  
	<font color=white>Miesiąć: </font><INPUT name=mm style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; FONT-SIZE: medium; BORDER-LEFT: 0px; WIDTH: 35px; COLOR: red; BORDER-BOTTOM: 0px; HEIGHT: 22px;   BACKGROUND-COLOR: black" border=0 size=15>
	<font color=white>Dzień: </font><INPUT name=dd style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; FONT-SIZE: medium; BORDER-LEFT: 0px; WIDTH: 35px; COLOR: red; BORDER-BOTTOM: 0px; HEIGHT: 22px;       BACKGROUND-COLOR: black" border=0 size=15>
	<font color=white>Godzina: </font><INPUT name=hh style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; FONT-SIZE: medium; BORDER-LEFT: 0px; WIDTH: 38px; COLOR: red; BORDER-BOTTOM: 0px; HEIGHT: 22px;       BACKGROUND-COLOR: black" border=0 size=16>
	<font color=white>Minuta: </font><INPUT name=ms style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; FONT-SIZE: medium; BORDER-LEFT: 0px; WIDTH: 35px; COLOR: red; BORDER-BOTTOM: 0px; HEIGHT: 22px; BACKGROUND-COLOR: black" border=0 size=15>
  </TD>
 </TR>
 
 <TR>
    <TD>    
     <INPUT TYPE="button" VALUE="DLE" name=BtGetDle onClick="GetDle(this.form)" style="WIDTH: 38px; HEIGHT: 24px" size=7>&nbsp; 
     <font color=white >ONL:</font>
	 <INPUT name=onl style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; FONT-SIZE: medium; BORDER-LEFT: 0px; WIDTH: 36px; COLOR: red; BORDER-BOTTOM: 0px; HEIGHT: 22px; BACKGROUND-COLOR:  black" border=0 size=15>
	 <font color=white 
     >PE/AKK:</font>
	 <INPUT name=peakk style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; FONT-SIZE: medium; BORDER-LEFT: 0px; WIDTH: 35px; COLOR: red; BORDER-BOTTOM: 0px; HEIGHT: 22px; BACKGROUND-COLOR: black"   
      border=0 size=15>
	 <font color=white 
     >ERR:</font>
	 <INPUT name=err style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; FONT-SIZE: medium; BORDER-LEFT: 0px; WIDTH: 29px; COLOR: red; BORDER-BOTTOM: 0px; HEIGHT: 22px; BACKGROUND-COLOR: black" border=0 size=12>
	
	
	    
     <INPUT TYPE="button" VALUE="ENQ" name=BtGetEnq onClick="GetENQ(this.form)" style="WIDTH: 43px; HEIGHT: 24px" size=9>&nbsp; 
     <font color=white >FSK:</font>
	 <INPUT name=fsk style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; FONT-SIZE: medium; BORDER-LEFT: 0px; WIDTH: 35px; COLOR: red; BORDER-BOTTOM: 0px; HEIGHT: 22px; BACKGROUND-COLOR:  black" border=0 size=15>
	 <font color=white 
     >CMD:</font>
	 <INPUT name=cmd style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; FONT-SIZE: medium; BORDER-LEFT: 0px; WIDTH: 33px; COLOR: red; BORDER-BOTTOM: 0px; HEIGHT: 22px; BACKGROUND-COLOR: black"     
      border=0 size=14>
	 <font color=white 
     >PAR:</font>
	 <INPUT name=par style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; FONT-SIZE: medium; BORDER-LEFT: 0px; WIDTH: 29px; COLOR: red; BORDER-BOTTOM: 0px; HEIGHT: 22px; BACKGROUND-COLOR: black"   
      border=0 size=12>
	 <font color=white 
     >TRF:</font>
	 <INPUT name=trf style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; FONT-SIZE: medium; BORDER-LEFT: 0px; WIDTH: 39px; COLOR: red; BORDER-BOTTOM: 0px; HEIGHT: 22px;  BACKGROUND-COLOR: black"   
      border=0 size=17>
	</TD>
 </TR>

 <TR>
   <TD>   
    <INPUT TYPE="button" VALUE="Obsługa błędów" name=BtLBSERM onClick="LBSERM(this.form)">
    <font color=white >Sposób obsługi:</font>
    <SELECT NAME="lbserm">
    <OPTION SELECTED>2
	<OPTION>3
	</OPTION>
	</SELECT>
   </TD>   
 </TR> 

   <TR>
    <TD>   
    <INPUT TYPE="button" VALUE="Login"   name=BtLogin onClick="Login(this.form)">
    <font color=white > Kasjer: </font><INPUT value="Sebastian" name=LoginKasjer>
    <font color=white >Kasa: </font><INPUT value="1975" name=LoginKasa>
    </TD>   
   </TR>
  
   <TR>
    <TD>   
     <INPUT TYPE="button" VALUE="Logout"   name = BtLogout onClick="Logout(this.form)">
     <font color=white > Kasjer: </font><INPUT value="Hania" name=LogoutKasjer>
     <font color=white >Kasa: </font><INPUT value="1977" name=LogoutKasa>
    </TD>   
   </TR>  
   
   <TR>
    <TD>   
     <INPUT TYPE="button" VALUE="Wysów papieru" name=BtFeed onClick="Feed(this.form)">
     <font color=white >Ilość linii: </font><INPUT value="1" name="Illine" style="WIDTH: 64px; HEIGHT: 22px"  size=8>
    </TD>   
   </TR>
   
  <TR>
   <TD>   
    <INPUT TYPE="button" VALUE="Oszcz. pap." name=BtNdmd onClick="Ndmd(this.form)">
    <font color=white >Wydruki na:</font>
    <SELECT NAME="ndmd">
	<OPTION SELECTED>kopii
	<OPTION>org. + kopia
	</OPTION>
	</SELECT>
    </TD>   
   </TR>
   


  <TR>
    <TD>   
      <INPUT TYPE="button" VALUE="Zwrot towru" name=BtLBSTOCSH onClick="LBSTOCSH(this.form)">
      <font color=white >Kwota: </font><INPUT value="0.03" name="tocash" style="WIDTH: 64px; HEIGHT: 22px" size=8>
      <font color=white >Kasa: </font><INPUT value="1977" name="tocashkasa" style="WIDTH: 64px; HEIGHT: 22px" size=8>
      <font color=white 
     >Kasjer: </font><INPUT value="Hania" name="tocashkasjer" style="WIDTH: 64px; HEIGHT: 22px" size=8>
    </TD>   
   </TR>
   
  <TR>
    <TD>   
      <INPUT TYPE="button" VALUE="Wypłata z kasy" name=BtLBDECCSH onClick="LBDECCSH(this.form)">
      <font color=white >Kwota: </font><INPUT value="111.11" name="deccsh" style="WIDTH: 64px; HEIGHT: 22px" size=8>
      <font color=white >Kasa: </font><INPUT value="1975" name="deccshkasa" style="WIDTH: 64px; HEIGHT: 22px" size=8>
      <font color=white 
     >Kasjer: </font><INPUT value="Sebastian" name="deccshkasjer" style="WIDTH: 64px; HEIGHT: 22px" size=8>
    </TD>   
   </TR>   
   
   
  <TR>
    <TD>   
      <INPUT TYPE="button" VALUE="Wpłata do kasy" name=BtLBINCCSH onClick="LBINCCSH(this.form)">
      <font color=white >Kwota: </font><INPUT value="99,99" name="inccsh" style="WIDTH: 64px; HEIGHT: 22px" size=8>
      <font color=white >Kasa: </font><INPUT value="1975" name="inccshkasa" style="WIDTH: 64px; HEIGHT: 22px" size=8>
      <font color=white 
     >Kasjer: </font><INPUT value="Sebastian" name="inccshkasjer" style="WIDTH: 64px; HEIGHT: 22px"  size=8>
     </TD>   
   </TR> 
   
   <TR>
    <TD>    
    <INPUT TYPE="button" VALUE="Ostatni rozkaz" name=BtGetLBERNRQ  onClick=" LBERNRQ(this.form)" style="WIDTH: 106px; HEIGHT: 24px" size=25>
	<font color=white > Status: </font><INPUT name=lbernrq style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; FONT-SIZE: medium; BORDER-LEFT: 0px; WIDTH: 43px; COLOR: red; BORDER-BOTTOM: 0px; HEIGHT: 22px;     BACKGROUND-COLOR: black; TEXT-ALIGN: center" border=0 size=19>  
    </TD>
  </TR>
 

  <TR>
    <TD>   
      <INPUT TYPE="button" VALUE="Zmiana zegara" name=BtSetCk onClick="THLSetCk(this.form)">
      <font color=white >Godzina: </font><INPUT name="setckgodzina"                
      style="WIDTH: 64px; HEIGHT: 22px" size=8>
      <font color=white  >Minuta: 
      <INPUT                         
      name="setckminuta" 
      style="WIDTH: 64px; HEIGHT: 22px" size=8></font>
      <font color=white      >Kasa: </font><INPUT value="1975" name="setckkasa" style="WIDTH: 64px; HEIGHT: 22px" size=8>
      <font color=white >Kasjer: </font><INPUT value="Sebastian" name="setckkasjer" style="WIDTH: 64px; HEIGHT: 22px"       size=8>
    </TD>   
   </TR>   
   
    <TR>
     <TD>   
      <INPUT TYPE="button" VALUE="Anuluj" name=BtSetCk onClick="LBTREXITCAN(this.form)">
      <font color=white >Pns: </font><INPUT value="1" name="canpns" style="WIDTH: 36px; HEIGHT: 22px" size=4>
      <font color=white      >Kasa: <INPUT value="1975" name="cankasa" style="WIDTH: 64px; HEIGHT: 22px" size=8></font>
      <font color=white      >Kasjer:: </font><INPUT value="Sebastian" name="cankasjer" style="WIDTH: 64px; HEIGHT: 22px" size=8>
      <font color=white >NrSys: </font><INPUT value="##1234#" name="cannrsys" style="WIDTH: 64px; HEIGHT: 22px"       
      size=8>
    </TD>   
   </TR>  
   
   
   <TR>
    <TD>   
      <INPUT TYPE="button" VALUE="Początek transakcji" name=BtLBTRSHDR onClick="LBTRSHDR(this.form)" style="WIDTH: 130px; HEIGHT: 24px" size=13>
      <font color=white >Tryb: </font><INPUT value=0 name="hdrpi" style="WIDTH: 20px; HEIGHT: 22px" size=2>
      <font color=white 
     >Ilość dodatk. 
      linii:   <INPUT value="0" name="hdrpn" style="WIDTH: 19px; HEIGHT: 22px" size=1></font>
      <font color=white 
     >Linia 1: </font><INPUT value=" " name="hdrline1" style="WIDTH: 39px; HEIGHT: 22px"  size=4>
      <font color=white >Linia 2: </font><INPUT value=" " name="hdrline2" style="WIDTH: 37px; HEIGHT: 22px"  size=4>
      <font color=white 
     >Linia 3: </font><INPUT value=" " name="hdrline3" style="WIDTH: 38px; HEIGHT: 22px"  size=4>
    </TD>   
   </TR>   
   
   <TR>
    <TD>   
      <INPUT TYPE="button" VALUE="Linia transakcji" name=BtLBTRSLN onClick="LBTRSLN(this.form)" style="WIDTH: 130px; HEIGHT: 24px" size=13>
      <font color=white >Nr linii: </font><INPUT value=1 name="trslnpi" style="WIDTH: 20px; HEIGHT: 22px" size=2>
      <font color=white >Rodzaj rabatu: </font><INPUT value="2" name="trslnpr" style="WIDTH: 16px; HEIGHT: 22px" size=1>
      <font color=white 
     >Opis rabatu: </font><INPUT value="16" name="trslnpo" style="WIDTH: 23px; HEIGHT: 22px"  size=2>
      <font color=white >Wart. rabatu: </font><INPUT value="10" name="trslnrabat" style="WIDTH: 29px; HEIGHT: 22px"  size=3>
      <font color=white 
     >Opis rabatu: </font><INPUT value="promocja POSNET" name="trslnopisrabatu" style="WIDTH: 95px; HEIGHT: 22px" size  =11>
      <font color=white >Nazwa towaru: </font><INPUT value="Woda mineralna" name="trslnnazwa" style="WIDTH: 69px; HEIGHT: 22px"  size=7>
      <font color=white 
     >Ilość: </font><INPUT value="2" name="trslnilosc" style="WIDTH: 37px; HEIGHT: 22px" size=4>
      <font color=white >PTU: </font><INPUT value="A" name="trslnptu" style="WIDTH: 35px; HEIGHT: 22px" size=4>
      <font color=white 
     >Cena: </font><INPUT value="2.5" name="trslncena" style="WIDTH: 38px; HEIGHT: 22px" size=4>
      <font color=white >Brutto: </font><INPUT value="5" name="trslnbrutto" style="WIDTH: 37px; HEIGHT: 22px"  size=4>

    </TD>   
   </TR>
   
   <TR>
    <TD>   
      <INPUT TYPE="button" VALUE="Koniec transakcji" name=BtLBTREXIT onClick="LBTREXIT(this.form)" style="WIDTH: 130px; HEIGHT: 24px" size=13>
      <font color=white >Rabat%: </font><INPUT value="0" name="exitpr" style="WIDTH: 20px; HEIGHT: 22px" size=2>
      <font color=white >Ilość dodatk. linii: </font><INPUT value="1" name="exitpn" style="WIDTH: 16px; HEIGHT: 22px" size=1>
      <font color=white 
     >Rodzaj rabatu: </font><INPUT value="0" name="exitpx" style="WIDTH: 23px; HEIGHT: 22px"  size=2>
      <font color=white >Kod: </font><INPUT value="1SW" name="exitkod" style="WIDTH: 69px; HEIGHT: 22px"  size=7>
      <font color=white 
     >Linia1: </font><INPUT value="##BTV2005/05/05#" name="exitlinia1" style="WIDTH: 37px; HEIGHT: 22px" size=4>
      <font color=white 
     >Linia2: </font><INPUT value=" " name="exitlinia2" style="WIDTH: 35px; HEIGHT: 22px" size=4>
      <font color=white >Linia3: </font><INPUT value=" " name="exitlinia3" style="WIDTH: 38px; HEIGHT: 22px" size=4>
      <font color=white 
     >Wpłata: </font><INPUT value="10" name="exitwplata" style="WIDTH: 37px; HEIGHT: 22px"  size=4>
      <font color=white >Total: </font><INPUT value="4.5" name="exittotal" style="WIDTH: 29px; HEIGHT: 22px"  size=3>
      <font color=white 
     >Wart. rabatu: </font><INPUT value="0" name="exitrabat" style="WIDTH: 64px; HEIGHT: 22px" size  =8>
    </TD>   
   </TR>




  <TR>
   <TD>       
    <INPUT TYPE="button" VALUE="Obsługa kaucji" name=BtLBDEP onClick="LBDEP(this.form)" style="WIDTH: 121px; HEIGHT: 24px" size=11>   
	<font color=white >Ps: </font> 
      <SELECT NAME="lbdepps">
      <OPTION SELECTED>wydanie
	  <OPTION>przyjecie
	   <OPTION>storno przyjęcia
	    <OPTION>storno wydania
	  </OPTION>
	  </SELECT>

	<font color=white >Nr opak.: </font><INPUT value="1" name="lbdepnr" style="WIDTH: 42px; HEIGHT: 22px" size=3>
	<font color=white >Ilość: </font><INPUT value="2" name="lbdepilosc" style="WIDTH: 32px; HEIGHT: 22px" size=2> Cena
	<font color=white >ilość*cena: </font><INPUT value="2" name="lbdepwartosc" style="WIDTH: 41px; HEIGHT: 22px" size=3>

<tr>
<td>
      <P align=center><font color=white size=4 
     ><STRONG>Zakonczenie z formami platnosci 
      ($y).</STRONG>    </font> </P>

<tr>
<td>
<INPUT TYPE="button" VALUE="$y - Kaucje" name=BtTHLAddKaucje onClick="THLAddKaucje(this.form)" style="WIDTH: 121px; HEIGHT: 24px" size=11>   
      <SELECT NAME="addkaucjeps">
      <OPTION SELECTED>wydanie
	  <OPTION>przyjecie
	  </OPTION>
	  </SELECT>
<font color=white >Nr opak</font><INPUT value="1" name="addkaucjenropak" style="WIDTH: 42px; HEIGHT: 22px" size=3>
<font color=white >Ilość</font><INPUT value="1" name="addkaucjeilosc" style="WIDTH: 42px; HEIGHT: 22px" size=3>
<font color=white >Wartość</font><INPUT value="1" name="addkaucjewartosc" style="WIDTH: 42px; HEIGHT: 22px" size=3>


<tr>
<td>
<INPUT TYPE="button" VALUE="$y - Rabat/narzut" name=BtTHLAddRab onClick="THLAddRab(this.form)" style="WIDTH: 121px; HEIGHT: 24px" size=11>   
      <SELECT NAME="addrabpx">
      <OPTION SELECTED>rabat proc.
	  <OPTION>rabat kwot.
	  <OPTION>narzut proc.
	  <OPTION>narzut kwot.
	  <OPTION>brak
	  </OPTION>
	  </SELECT>
	  <font color=white >Opis rabatu: </font>
	  <SELECT NAME="addrabpxs">
      <OPTION SELECTED>tak
	  <OPTION>nie
	  </OPTION>
	  </SELECT>
	  <font color=white >Wartosc: </font><INPUT value="10" name="addrabwartosc" style="WIDTH: 20px; HEIGHT: 22px" size=2>
	  <font color=white >Opis: </font><INPUT value="opisik" name="addrabopis" style="WIDTH: 110px; HEIGHT: 22px" size=11>
	  
	  

<tr>
<td>
      <P>
<INPUT TYPE="button" VALUE="$y - Formy platnosci" name=BtTHLAddFormPlat onClick="THLAddFormPlat(this.form)" style="WIDTH: 146px; HEIGHT: 24px" size=12>   
   	  <font color=white >Typ: </font>
     <SELECT NAME="addformplattyp">
      <OPTION SELECTED>karta
	  <OPTION>czek
	  <OPTION>bon
	  <OPTION>inna
	  </OPTION>
	  </SELECT>

    <font color=white >Nazwa: </font><INPUT value="VISA" name="addformplatnazwa" style="WIDTH: 95px; HEIGHT: 22px" size=7>
 <font color=white >Kwota: </font><INPUT value="0" name="addformplatwartosc" style="WIDTH: 95px; HEIGHT: 22px" size=7> </P>
 </td></tr>    




   <TR>
   <TD>      
     <INPUT TYPE="button" VALUE="$y - Koniec" name=BtLBTRXEND1 onClick="LBTRXEND1(this.form)" style="WIDTH: 96px; HEIGHT: 24px" size=9>
     <font color=white >Pns: </font><INPUT value="1" name="end1pns" style="WIDTH: 20px; HEIGHT: 22px" size=2>
     <font color=white >Pr: </font><INPUT value="0" name="end1pr" style="WIDTH: 20px; HEIGHT: 22px" size=2>
     <font color=white >Pg: </font><INPUT value="1" name="end1pg" style="WIDTH: 20px; HEIGHT: 22px" size=2>
     <font color=white >Nr_sys: </font><INPUT value="1234567890" name="end1nrsys" style="WIDTH: 69px; HEIGHT: 22px" size=6>
     <font color=white >Total: </font><INPUT value="4.5" name="end1total" style="WIDTH: 44px; HEIGHT: 22px" size=4>
     <font color=white >Wplata: </font><INPUT value="5" name="end1wplata" style="WIDTH: 52px; HEIGHT: 22px" size=2>
     <font color=white >Reszta: </font><INPUT value="0" name="end1reszta" style="WIDTH: 56px; HEIGHT: 22px" size=4>
     <font color=white >Nr kasy: </font><INPUT value="Kasa1" name="end1nrkasy" style="WIDTH: 106px; HEIGHT: 22px" size=9>
     <font color=white >Kasjer </font><INPUT value="Sebastian" name="end1kasjer" style="WIDTH: 95px; HEIGHT: 22px" size=7></TD></TR>    
  
 
 <tr>
<td>
      <P align=center><FONT size=4><STRONG><font color=#ffffff 
     >Raporty fiskalne</font> </STRONG></FONT></P>
 
  <TR>
    <TD>   
      <INPUT TYPE="button" VALUE="Raport dobowy" name=BtLBINCCSH onClick="LBDAYREP(this.form)">
      <font color=white >Data: </font> 
      <SELECT NAME="dayrep">
      <OPTION SELECTED>0
	  <OPTION>1
	  </OPTION>
	  </SELECT>
      <font color=white 
     >Kasa: </font><INPUT value="1975" name="dayrepkasa" style="WIDTH: 64px; HEIGHT: 22px"  
      size=8>
      <font color=white >Kasjer:  </font><INPUT value="Sebastian" name="dayrepkasjer" style="WIDTH: 64px; HEIGHT: 22px"  size=8>
    </TD>   
   </TR> 
 
 
   <TR>
   <TD>
      <P>      
     <INPUT TYPE="button" VALUE="Raport okres. wg dat" name=BtLBFSKREP1 onClick="LBFSKREP1(this.form)" style="WIDTH: 137px; HEIGHT: 24px" size=11>
     <SELECT NAME="fskrep1" 
      style="WIDTH: 155px">
      <OPTION SELECTED>miesięczny
	  <OPTION>miesięczny podsum.
	  <OPTION>okresowy 
	  <OPTION>okresowy podsum. 
	  </OPTION>
	  </SELECT> &nbsp; 
	  <font color=white > Poczatek(yy/mm/dd) </font><INPUT name="fskrepdatapocz" style="WIDTH: 137px; HEIGHT: 22px" size =10>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
 
	  <font color=white >  Koniec(yy/mm/dd) </font><INPUT name="fskrepdatakon" style="WIDTH: 70px; HEIGHT: 22px" size =6>
      <font color=white >Kasa: </font><INPUT value="1975" name="fskrepkasa" style="WIDTH: 53px; HEIGHT: 22px" size=5>
      <font color=white >Kasjer: </font><INPUT value="Sebastian" name="fskrepkasjer" style="WIDTH: 120px; HEIGHT: 22px" size=12></P></TD>

	
	   <TR>
   <TD>
      <P>      
     <INPUT TYPE="button" VALUE="Raport okres. wg nr." name=BtLBFSKREP2 onClick="LBFSKREP2(this.form)" style="WIDTH: 155px; HEIGHT: 24px" size=14>
     <SELECT NAME="fskrep2">
      <OPTION SELECTED>okresowy 
	  <OPTION>okresowy  podsum. 
	  </OPTION>
	  </SELECT> &nbsp; 
	  <font color=white >Nr pocz.: </font><INPUT name="fskrep2nrpocz" style="WIDTH: 55px; HEIGHT: 22px" size =4>
	  <font color=white >Nr kon.: </font><INPUT name="fskrep2nrkon" style="WIDTH: 65px; HEIGHT: 22px" size =5>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      <font color=white >Kasa: </font><INPUT value="1975" name="fskrep2kasa" style="WIDTH: 53px; HEIGHT: 22px" size=5>
      <font color=white >Kasjer: </font><INPUT value="Sebastian" name="fskrep2kasjer" style="WIDTH: 120px; HEIGHT: 22px" size=12></P></TD></TR>
  
 <tr>
<td>
      <P align=center><FONT size=4><STRONG><font color=#ffffff 
     >Raport kasjera</font> </STRONG></FONT></P>
      <tr>
<td>
   <INPUT TYPE="button" VALUE="Formy płatn." name=Btcshrepaddformplat onClick="THLAddCshRepFormPlat(this.form)" style="WIDTH: 155px; HEIGHT: 24px" size=14>
     <SELECT NAME="cshrepaddformplat">
      <OPTION SELECTED>karta 
	  <OPTION>czek
	  <OPTION>bon 
	  </OPTION>
	  </SELECT> &nbsp; 
	  <font color=white >Nazwa: </font><INPUT value=VISA name="cshrepaddformplatnazwa" style="WIDTH: 69px; HEIGHT: 22px" size =6>
	  <font color=white >Wartość: </font><INPUT value=999.99 name="cshrepaddformplatwartosc" style="WIDTH: 76px; HEIGHT: 22px" size =7>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <tr>
<td>
  <INPUT TYPE="button" VALUE="Raport" name=Btcshrep onClick="LBCSHREP1(this.form)" style="WIDTH: 155px; HEIGHT: 24px" size=14>
  <font color=white >Zmiana: </font><INPUT value=nocna name="cshrepzmiana" style="WIDTH: 69px; HEIGHT: 22px" size =6>
  <font color=white >Kasjer: </font><INPUT value=Sebastian name="cshrepkasjer" style="WIDTH: 69px; HEIGHT: 22px" size =6>
  <font color=white >Początek: </font><INPUT value=8:00 name="cshreppoczatek" style="WIDTH: 69px; HEIGHT: 22px" size =6>
  <font color=white >Koniec: </font><INPUT value=16:00 name="cshrepkoniec" style="WIDTH: 69px; HEIGHT: 22px" size =6>
  <font color=white >Przychód: </font><INPUT value=4567.00 name="cshrepprzychod" style="WIDTH: 69px; HEIGHT: 22px" size =6>
  <font color=white >Sprzed.got.: </font><INPUT value=2367.00 name="cshrepsprzedgot" style="WIDTH: 69px; HEIGHT: 22px" size =6>
  <font color=white >Wplaty: </font><INPUT value=267.00 name="cshrepwplaty" style="WIDTH: 69px; HEIGHT: 22px" size =6>
  <font color=white >Przyjecia: </font><INPUT value=47.00 name="cshrepprzyjecia" style="WIDTH: 69px; HEIGHT: 22px" size =6>
  <font color=white >Wyplaty: </font><INPUT value=10.00 name="cshrepwyplaty" style="WIDTH: 69px; HEIGHT: 22px" size =6>
  <font color=white >Wydania: </font><INPUT value=25.00 name="cshrepwydania" style="WIDTH: 69px; HEIGHT: 22px" size =6>
  <font color=white >Stan kasy: </font><INPUT value=6010.00 name="cshrepstankasy" style="WIDTH: 69px; HEIGHT: 22px" size =6>
  <font color=white >Ilosc parag.: </font><INPUT value=87.00 name="cshrepiloscparagonow" style="WIDTH: 69px; HEIGHT: 22px" size =6>
  <font color=white >Ilosc anul. parag.: </font><INPUT value=3 name="cshrepiloscanulparagonow" style="WIDTH: 69px; HEIGHT: 22px" size =6>
  <font color=white >Ilosc storno: </font><INPUT value=23 name="cshrepiloscstorno" style="WIDTH: 69px; HEIGHT: 22px" size =6>
  <font color=white >Nr kasy: </font><INPUT value=1975 name="cshrepnrkasy" style="WIDTH: 69px; HEIGHT: 22px" size =6></td></tr>


 <tr>
<td>
      <P>
  <INPUT TYPE="button" VALUE="OdczytFM" name=BtFMRead onClick="LBFSTRQ25(this.form)" style="WIDTH: 74px; HEIGHT: 24px" size=6>
  <font color=white >Rok(YY): </font><INPUT value=06 name="LBFSTRQ25YY" style="WIDTH: 30px; HEIGHT: 22px" size =2>
  <font color=white >M-ce(MM): </font><INPUT value=06 name="LBFSTRQ25MC" style="WIDTH: 28px; HEIGHT: 22px" size =2>
  <font color=white >Dzień(DD): </font><INPUT value=01 name="LBFSTRQ25DD" style="WIDTH: 28px; HEIGHT: 22px" size =2>
  <font color=white >Godz(GG): </font><INPUT value=10 name="LBFSTRQ25GG" style="WIDTH: 27px; HEIGHT: 22px" size =2>
  <font color=white >PMinuta(MM): </font><INPUT value=00 name="LBFSTRQ25MM" style="WIDTH: 31px; HEIGHT: 22px" size =2> </P>
      <P><FONT color=white>Odczytany rekord: </FONT><INPUT name="RekordPoDatach" style="WIDTH: 515px; HEIGHT: 22px" size  =38>&nbsp; 
</P></td></tr>

 <tr>
<td>
      <P>
  <INPUT TYPE="button" VALUE="OdczytFM" name=BtFMReadNR onClick="LBFSTRQ26(this.form)" style="WIDTH: 74px; HEIGHT: 24px" size=6>
  <font color=white >Nr: </font><INPUT value=06 name="LBFSTRQ26NR" style="WIDTH: 30px; HEIGHT: 22px" size =2>
 <P><FONT color=white>Odczytany rekord: </FONT><INPUT name="RekordPoNR" style="WIDTH: 515px; HEIGHT: 22px" size  =38>&nbsp; 
</P></td></tr>


 <tr>
<td>
      <P>
  <INPUT TYPE="button" VALUE="Status #50" name=BtLBFSTRQ onClick="LBFSTRQ(this.form)" style="WIDTH: 74px; HEIGHT: 24px" size=6>
  <FONT color=white>Status: </FONT><INPUT name="Status50" style="WIDTH: 515px; HEIGHT: 22px" size  =38>&nbsp;</P></td></tr>
    </TABLE>				
	</FORM>
</BODY>
</HTML>
