<?php

session_start();
if($_SESSION['dbName']==""){
header("location:../index.php");
}

include("config.inc.php");
include("Functions_Sales.php");

$connection = mysql_connect($config['dbServer'] , $config['dbUser'] , $config['dbPass']) or die("Could not connect to DB");
mysql_select_db($_SESSION['dbName'] , $connection) or die("Could not find DB");

$querylog="SELECT utilities as loginaccess from ".$_SESSION['dbLabel'].".login where user_account='".$_SESSION['useraccount']."' and Upper(Login_Schema) = Upper('".$_SESSION['dbName']."')	";
	$resultlog=mysql_query($querylog, $connection) or die(mysql_error());
	while($rows=mysql_fetch_array($resultlog)){
		extract($rows);
	}

$querymodule=" Select ifNull(module_ReferenceByCostcenter,0) As module_ReferenceByCostcenter ".
			 " From Module";
$resultmodule=mysql_query($querymodule,$connection) or die(mysql_error());
while($rowmodule=mysql_fetch_array($resultmodule)){
	extract($rowmodule);
}


/* if ($loginaccess=='' or $loginaccess==0)
	header("location:menu.php"); */

//Read From Setup Table1  add code 41 to all fields

$querysetup= " Select 
COMPANY_NAME   As COMPANY_NAME41,   Company_memo   As Company_memo41,   COMPANY_TELEPHONE   As COMPANY_TELEPHONE41,   
COMPANY_FAX   As COMPANY_FAX41,   COMPANY_CITY   As COMPANY_CITY41, COMPANY_STAT   As COMPANY_STAT41,   COMPANY_COUNTRY   As COMPANY_COUNTRY41, 
BASE1   As BASE141,   BASE2   As BASE241,   Base1LessBase2   As Base1LessBase241,   DecimalBase   As DecimalBase41,Decimalbase1   As Decimalbase141,   
Decimalbase2   As Decimalbase241,   COMPANY_LOGO  As COMPANY_LOGO41,   GVprinteddate_time   As GVprinteddate_time41,   JVprinteddate_time   As JVprinteddate_time41,   
MainCompany   As MainCompany41,Background_color  As Background_color41,   Header_color   As Header_color41,   Logo_exist   As Logo_exist41,   CUSTOML   As CUSTOML41,   
CUSTOMW   As CUSTOMW41,   FolioByMonth   As FolioByMonth41,Clientaccount   As Clientaccount41,   Checkaccount   As Checkaccount41,   CreditLimitValue   As CreditLimitValue41,
BillAccount   As BillAccount41,   CashAccount   As CashAccount41,ClientRetailAccount   As ClientRetailAccount41,   CheckRetailAccount   As CheckRetailAccount41,  
BillRetailAccount   As BillRetailAccount41, POSTTOVIEWER   As POSTTOVIEWER41,Setup_vatno   As Setup_vatno41, date_format(Setup_vatstartdate,'%d/%m/%Y')   As Setup_vatstartdate41,   
Setup_vatpercentage   As Setup_vatpercentage41, COMPANY_LOGO1   As COMPANY_LOGO141,   SupplierFirstDigit   As SupplierFirstDigit41,ClientFirstDigit   As ClientFirstDigit41,   
SalesmenFirstDigit   As SalesmenFirstDigit41, NbrOfDigitInLedger   As NbrOfDigitInLedger41,   SupplierLedgerDefault   As SupplierLedgerDefault41,
ClientLedgerDefault   As ClientLedgerDefault41, SalesmenLedgerDefault  As SalesmenLedgerDefault41,   ItemCodeDefault   As ItemCodeDefault41,   ItemCodeFirstDigit   As ItemCodeFirstDigit41,
NbrOfDigitInItem   As NbrOfDigitInItem41, DirectStock   As DirectStock41,   DirectStock_Debit   As DirectStock_Debit41,   DirectStock_Credit   As DirectStock_Credit41,   
DirectStock_Base   As DirectStock_Base41,PrintedDate_Time   As PrintedDate_Time41,   CurrencyVatBase   As CurrencyVatBase41,   NbrOfDigitInItemCode   As NbrOfDigitInItemCode41,   
SerialNo_RecordCount   As SerialNo_RecordCount41, Item_NonActive   As Item_NonActive41,   PrintOption   As PrintOption41,   Itemcurrency   As Itemcurrency41,   
PathArchive   As PathArchive41,   Setup_MinBalancesBase1   As Setup_MinBalancesBase141,Setup_MinBalancesBase2   As Setup_MinBalancesBase241,   DEFAULTL   As DEFAULTL41,   
DEFAULTW   As DEFAULTW41,   ITEMSEPERATOR   As ITEMSEPERATOR41,   SHOWSLIPNUMBER   As SHOWSLIPNUMBER41,REMARKINV   As REMARKINV41,   PATHDATACOLLECTOR   As PATHDATACOLLECTOR41,
ITEMTARGETDATE   As ITEMTARGETDATE41,   DIFFOFEXCHPOS   As DIFFOFEXCHPOS41,   DIFFOFEXCHNEG   As DIFFOFEXCHNEG41,  
DiscountAccount   As DiscountAccount41,AfterDecimalRetailBase   As AfterDecimalRetailBase41,   AfterDecimalRetailbase1   As AfterDecimalRetailbase141,  
AfterDecimalRetailbase2   As AfterDecimalRetailbase241, ReportMsg   As ReportMsg41,BeforeDecimalRetailBase  As BeforeDecimalRetailBase41,
BeforeDecimalRetailBase1  As BeforeDecimalRetailBase141,   BeforeDecimalRetailBase2   As BeforeDecimalRetailBase241,Warehouse_Code   As Warehouse_Code41,   
DigitRetailBase   As DigitRetailBase41,   DigitRetailBase1   As DigitRetailBase141,  DigitRetailBase2   As DigitRetailBase241,   BeforeDigitRetailBase   As BeforeDigitRetailBase41,
BeforeDigitRetailBase1   As BeforeDigitRetailBase141,   BeforeDigitRetailBase2   As BeforeDigitRetailBase241,   AfterDigitRetailBase   As AfterDigitRetailBase41,   
AfterDigitRetailBase1   As AfterDigitRetailBase141,   AfterDigitRetailBase2   As AfterDigitRetailBase241,   Setup_OfferMemo   As Setup_OfferMemo41,   
ChkCommissionAcc   As ChkCommissionAcc41,   Salesttc   As Salesttc41,   GROUP_DISPLAYCOLOR   As GROUP_DISPLAYCOLOR41,   StmtMessage   As StmtMessage41, 
Ndigitacctypeledger   As Ndigitacctypeledger41, DelinventoryJvTransaction   As DelinventoryJvTransaction41,   Journal_DefaultCur   As Journal_DefaultCur41,   
Supplier_DefaultCur   As Supplier_DefaultCur41,  Supplier_PaymentTerms   As Supplier_PaymentTerms41,   Supplier_CreditLimit   As Supplier_CreditLimit41,   
Client_DefaultCur   As Client_DefaultCur41,   Client_PaymentTerms   As Client_PaymentTerms41,   Client_CreditLimit   As Client_CreditLimit41,   Salesman_DefaultCur   As Salesman_DefaultCur41,   Salesman_CreditLimit   As Salesman_CreditLimit41,   Customer_DefaultCur   As Customer_DefaultCur41,
Customer_PaymentTerms   As Customer_PaymentTerms41,   Customer_CreditLimit   As Customer_CreditLimit41,   Setup_Minbalances   As Setup_Minbalances41,   Setup_MinBalancesCur   As Setup_MinBalancesCur41,   
LoadingElectricityPath   As LoadingElectricityPath41,   StmtSignature   As StmtSignature41,   Setup_PrintJVRef   As Setup_PrintJVRef41,   Setup_PrintJVType   As Setup_PrintJVType41,   
Setup_PrintJVFolio   As Setup_PrintJVFolio41,   CalcSellPriceForItems   As CalcSellPriceForItems41,   SndRec_SenderName   As SndRec_SenderName41,   Supplier_ValidateCur   As Supplier_ValidateCur41,   
Client_ValidateCur   As Client_ValidateCur41,   Report_BelgToGrpByTrans   As Report_BelgToGrpByTrans41,   DisplayDecimalName   As DisplayDecimalName41,   PosttoItemviewer   As PosttoItemviewer41,
Setup_Tax1Percentage   As Setup_Tax1Percentage41,   Setup_Tax2Percentage   As Setup_Tax2Percentage41,   Setup_Tax3Percentage   As Setup_Tax3Percentage41,   Setup_Tax4Percentage   As Setup_Tax4Percentage41,   
Setup_Tax5Percentage   As Setup_Tax5Percentage41,   Setup_Tax1Active   As Setup_Tax1Active41,   Setup_Tax2Active   As Setup_Tax2Active41,   Setup_Tax3Active   As Setup_Tax3Active41,   Setup_Tax4Active   As Setup_Tax4Active41,   Setup_Tax5Active   As Setup_Tax5Active41,   Setup_Tax1Name   As Setup_Tax1Name41, 
Setup_Tax2Name   As Setup_Tax2Name41,   Setup_Tax3Name   As Setup_Tax3Name41,   Setup_Tax4Name   As Setup_Tax4Name41, Setup_Tax5Name   As Setup_Tax5Name41,   DefaultProfitPer   As DefaultProfitPer41,   ProductionApp_AddQty   As ProductionApp_AddQty41,   Supplier_ValidateProject   As Supplier_ValidateProject41, 
Client_ValidateProject   As Client_ValidateProject41,   AddTaxesCurDefault   As AddTaxesCurDefault41,   date_format(LastDateLocked,'%d/%m/%Y')   As LastDateLocked41,   Item_MinQtyState   As Item_MinQtyState41, 
StmtOfItemRMaskQty   As StmtOfItemRMaskQty41, InventoryRMaskqty   As InventoryRMaskqty41,   ProfitPerItemsRMaskQty   As ProfitPerItemsRMaskQty41,   ClientSalesRMaskQty   As ClientSalesRMaskQty41,   PurchaseRMaskQty   As PurchaseRMaskQty41, 
ListTransactionRMaskQty   As ListTransactionRMaskQty41,   PackingRMaskQty   As PackingRMaskQty41,   SoldBySalesmanRMaskQty   As SoldBySalesmanRMaskQty41,   ListofPreProdRMaskQty   As ListofPreProdRMaskQty41,   
ListOfProductionMaskQty   As ListOfProductionMaskQty41,   UpdatedMeanCostRMaskQty   As UpdatedMeanCostRMaskQty41,   SaleRMaskQty   As SaleRMaskQty41,   YearlyRMaskQty   As YearlyRMaskQty41,
PorderReportMaskQty   As PorderReportMaskQty41,   InventryByEntryNoMaskQty   As InventryByEntryNoMaskQty41,   ListOfDlvQtyMaskQty   As ListOfDlvQtyMaskQty41,   SalesOrderRMaskQty   As SalesOrderRMaskQty41,
MaskQty   As MaskQty41, Setup_StmtOfAccCostcenter   As Setup_StmtOfAccCostcenter41,   Setup_StmtOfAccProject   As Setup_StmtOfAccProject41,   Synchronized   As Synchronized41,  
CashReg_SlipBtmMsg   As CashReg_SlipBtmMsg41,   Setup_TranslateLanguage   As Setup_TranslateLanguage41,   Barcode   As Barcode41,   DefaultChildCostcenter   As DefaultChildCostcenter41, 
DefaultChildProject   As DefaultChildProject41,   ApplyJournal_JVRef   As ApplyJournal_JVRef41,  ApplyLedger_Deactivate   As ApplyLedger_Deactivate41,   Item_EnableDiscPer   As Item_EnableDiscPer41,   SQLStockCalculation   As SQLStockCalculation41,   JV_DefaultCostcenter   As JV_DefaultCostcenter41,
JV_DefaultProject   As JV_DefaultProject41,   UseLanguage   As UseLanguage41,   AllowDateBiggerSysDate   As AllowDateBiggerSysDate41,   Setup_printJvDate   As Setup_printJvDate41,
JVModeAsLedger   As JVModeAsLedger41,  date_format(CashReg_LastClosingDate,'%d/%m/%Y')   As CashReg_LastClosingDate41,   RMA_In   As RMA_In41,   RMA_Out   As RMA_Out41,   Salesman_IsLedger   As Salesman_IsLedger41,   Ledger_ValidateProject   As Ledger_ValidateProject41,
UseApproximateQty   As UseApproximateQty41,   ApproximatePercentage   As ApproximatePercentage41,   ApproximateQty   As ApproximateQty41,   LedgerDeactivateInAcc   As LedgerDeactivateInAcc41, 
PagePath   As PagePath41,   UsePagePath   As UsePagePath41,  NbrOfDigitInLedgerSalesmen   As NbrOfDigitInLedgerSalesmen41,   NbrOfDigitInLedgerSupplier   As NbrOfDigitInLedgerSupplier41,   Setup_ItemLoad   As Setup_ItemLoad41,   Path_LoadSales   As Path_LoadSales41,setup_GCIExp   As setup_GCIExp41,   Path_ExportPrjGrpSub   As Path_ExportPrjGrpSub41,   Variant_Mode   As Variant_Mode41,   Path_LoadSOF   As Path_LoadSOF41,   DefaultBase   As DefaultBase41, 
AccessLabels   As AccessLabels41,   Iso_Logo   As Iso_Logo41,   IsoDescription   As IsoDescription41,   grid_color1   As grid_color141,   grid_color2   As grid_color241,   setup_branch   As setup_branch41,   setup_salesjvtax   As setup_salesjvtax41, 
setup_purchasesjvtax   As setup_purchasesjvtax41,   PrevShowThumbsStatment   As PrevShowThumbsStatment41,   PrevShowThumbsTrialBalance   As PrevShowThumbsTrialBalance41,   PrevShowThumbsStatmentofItems   As PrevShowThumbsStatmentofItems41,   
PrevShowThumbsSalesReport   As PrevShowThumbsSalesReport41,   PrevShowThumbsInventoryReport   As PrevShowThumbsInventoryReport41,   Setup_TipsMaxAmount   As Setup_TipsMaxAmount41,  
Setup_SorderMailMsg   As Setup_SorderMailMsg41,   CashReg_Weight   As CashReg_Weight41,   CashReg_StartBarcode   As CashReg_StartBarcode41,   CashReg_EndBarcode   As CashReg_EndBarcode41, 
CashReg_StartQty   As CashReg_StartQty41,   CashReg_EndQty   As CashReg_EndQty41,  setup_plu   As setup_plu41,   setup_ItemDtGrid   As setup_ItemDtGrid41,   CashReg_Price   As CashReg_Price41,   CashReg_StartPrice   As CashReg_StartPrice41,  
CashReg_EndPrice   As CashReg_EndPrice41,   CashReg_DispLedMsg   As CashReg_DispLedMsg41,   companyseq_id   As companyseq_id41,   maxperpage   As maxperpage41,   Setup_LogoWidth   As Setup_LogoWidth41,
Setup_LogoHeight   As Setup_LogoHeight41,   id   As id41,   show_companylogo   As show_companylogo41,  show_companyname   As show_companyname41,   show_printdatetime   As show_printdatetime41,   show_user   As show_user41,   show_companymemo   As show_companymemo41,   cashreg_colortheme   As cashreg_colortheme41,
Company_NameF   As Company_NameF41,   Company_MemoF   As Company_MemoF41,   Company_Capital   As Company_Capital41,   Company_CapitalF   As Company_CapitalF41,   Setup_MultiLangPrint   As Setup_MultiLangPrint41,
report_color1   As report_color141,   report_color2   As report_color241,   VATSufixLength   As VATSufixLength41,   CashReg_BgColorOffer   As CashReg_BgColorOffer41,   CashReg_BgColorQty   As CashReg_BgColorQty41,
CashReg_BgColorOrderQty   As CashReg_BgColorOrderQty41,   CashReg_BgColorZeroPrice   As CashReg_BgColorZeroPrice41,   CashReg_BgColorZeroQty   As CashReg_BgColorZeroQty41,  
CashReg_BgColorHasDiscount   As CashReg_BgColorHasDiscount41,   CashReg_RoundDivisor   As CashReg_RoundDivisor41,   Setup_SlipFooter   As Setup_SlipFooter41,   Setup_GenerateJvNoAmount   As Setup_GenerateJvNoAmount41,   CashReg_ApplyColorOffer   As CashReg_ApplyColorOffer41,
CashReg_ApplyColorQty   As CashReg_ApplyColorQty41,   CashReg_ApplyColorOrderQty   As CashReg_ApplyColorOrderQty41,   CashReg_ApplyColorZeroPrice   As CashReg_ApplyColorZeroPrice41,   
CashReg_ApplyColorZeroQty   As CashReg_ApplyColorZeroQty41,   CashReg_ApplyColorHasDiscount   As CashReg_ApplyColorHasDiscount41,   Setup_LicenseNo   As Setup_LicenseNo41, 
Setup_ClientSerialNo   As Setup_ClientSerialNo41,   discount_amount   As discount_amount41,   keyboardfocus   As keyboardfocus41,
Setup_TransShowLedger   As Setup_TransShowLedger41,   category_order   As category_order41,  category_length   As category_length41,   group_order   As group_order41,   group_length   As group_length41,   subgroup_order   As subgroup_order41,   
subgroup_length   As subgroup_length41,   remaining_length   As remaining_length41,   delivery_maxrecords   As delivery_maxrecords41,   journal_setup   As journal_setup41, serialNb_quantity_setup As serialNb_quantity_setup41

			from setup";
 
 //echo $querysetup;
// exit;
 $resultsetup=mysql_query($querysetup,$connection) or die(mysql_error());
while($rowsetup=mysql_fetch_array($resultsetup)){
	extract($rowsetup);
}	

 

//read from purshasesetup code 31

$querypurshasesetup= "Select 
						Warehouse As Warehouse31 ,  Project As Project31 ,  Costcenter As Costcenter31 ,  PaymentMode As PaymentMode31 ,  Charges As Charges31 ,  SupplierCur As SupplierCur31 ,  
						SupplierAccount As SupplierAccount31 ,  FreightCur As FreightCur31 ,  FreightCurDefault As FreightCurDefault31 ,  
						FreightDebitAccount As FreightDebitAccount31 ,  FreightCreditAccount As FreightCreditAccount31 ,  Chargeaccount As Chargeaccount31 , 
						ChargeaccountCur As ChargeaccountCur31 ,  ChargeaccountCurDefault As ChargeaccountCurDefault31 , 
						CommissionsCur As CommissionsCur31 ,  CommissionsCurDefault As CommissionsCurDefault31 ,  CommissionsDebitAccount As CommissionsDebitAccount31 ,  
						CommissionsCreditAccount As CommissionsCreditAccount31 ,  InsuranceCur As InsuranceCur31 ,  InsuranceCurDefault As InsuranceCurDefault31 ,  
						InsuranceDebitAccount As InsuranceDebitAccount31 , InsuranceCreditAccount As InsuranceCreditAccount31 ,  ClearingCur As ClearingCur31 ,  
						ClearingCurDefault As ClearingCurDefault31 ,  ClearingDebitAccount As ClearingDebitAccount31 , ClearingCreditAccount As ClearingCreditAccount31 , 
						TransportCur As TransportCur31 ,  TransportCurDefault As TransportCurDefault31 , TransportDebitAccount As TransportDebitAccount31 ,  
						TransportCreditAccount As TransportCreditAccount31 ,  OtherCur As OtherCur31 ,  OtherCurDefault As OtherCurDefault31 ,  OtherDebitAccount As OtherDebitAccount31 ,  
						OtherCreditAccount As OtherCreditAccount31 , DebitCur As DebitCur31 ,  DebitCurdefault As DebitCurdefault31 ,  DebitAccount As DebitAccount31 , 
						DebitCurReturn As DebitCurReturn31 , DebitCurReturnDefault As DebitCurReturnDefault31 , DebitAccountReturn As DebitAccountReturn31 ,  
						CashCur As CashCur31 ,  CashCurDefault As CashCurDefault31 ,  CashAccount As CashAccount31 ,  CheckCur As CheckCur31 ,  CheckCurDefault As CheckCurDefault31 , 
						CheckAccount As CheckAccount31 ,  CustomsDebitAccount As CustomsDebitAccount31 , CustomsCreditAccount As CustomsCreditAccount31 ,  CustomsCur As CustomsCur31 ,  
						CustomsCurDefault As CustomsCurDefault31 , VatAccount As VatAccount31 ,  CreditAccountReturn As CreditAccountReturn31 ,  CreditCurReturnDefault As CreditCurReturnDefault31 , 
						DiscountAccount As DiscountAccount31 ,  Barcode As Barcode31 ,  PURCHASETTC As PURCHASETTC31 ,  DebitAccountVAT As DebitAccountVAT31 , 
						DirectStockCurrency_Code As DirectStockCurrency_Code31 ,  TipsAccount As TipsAccount31 ,  TipsMaxBase1 As TipsMaxBase131 ,  
						Purchasejv_chargedebit As Purchasejv_chargedebit31 , Purchasejv_chargecredit As Purchasejv_chargecredit31 ,  Module_Color As Module_Color31 ,  
						PurchaseJV_DefaultCur As PurchaseJV_DefaultCur31 ,  PurchaseJV_VatAccount As PurchaseJV_VatAccount31 , 
						WITHPRICEDEFAULT As WITHPRICEDEFAULT31 ,  GenerateCharges As GenerateCharges31 ,  PurchaseDefaultType As PurchaseDefaultType31 ,  Purchase_Acctax1 As Purchase_Acctax131 ,  
						Purchase_Acctax2 As Purchase_Acctax231 ,  Purchase_Acctax3 As Purchase_Acctax331 ,  Purchase_Acctax4 As Purchase_Acctax431 ,  Purchase_Acctax5 As Purchase_Acctax531 , 
						Synchronized As Synchronized31 , DisplayPurchaseType As DisplayPurchaseType31 ,  DefaultPrice_FobORLast As DefaultPrice_FobORLast31 , IsoDescription As IsoDescription31 ,  
						VATAccountNonStock As VATAccountNonStock31 ,  ShowCostCentLayout As ShowCostCentLayout31 ,  id As id31 ,  VatAccount2 As VatAccount231 ,  
						VatAccount3 As VatAccount331 ,  VATAccountNonStock2 As VATAccountNonStock231 ,  VATAccountNonStock3 As VATAccountNonStock331 ,  DebitAccount2 As DebitAccount231 ,  
						DebitAccount3 As DebitAccount331 ,  DebitAccountVat2 As DebitAccountVat231 ,  DebitAccountVat3 AsDebitAccountVat331 ,  DebitAccountNonStock As DebitAccountNonStock31 ,  
						DebitAccountNonStock2 As DebitAccountNonStock231 , DebitAccountNonStock3 As DebitAccountNonStock331 ,  DebitAccountVATNonStock As DebitAccountVATNonStock31 ,  
						DebitAccountVATNonStock2 As DebitAccountVATNonStock231 , DebitAccountVATNonStock3 As DebitAccountVATNonStock331 ,  VATAccountRefundable As VATAccountRefundable31 , 
						DebitAccountVatRefundable As DebitAccountVatRefundable31 ,  ShowItemSellingPrice As ShowItemSellingPrice31 , porder_termsconditions As porder_termsconditions31
					from purchasesetup"; 
			
	//echo $querypurshasesetup;	
$resultpurshasesetup=mysql_query($querypurshasesetup , $connection) or die(mysql_error());
while($rowpurshasesetup=mysql_fetch_array($resultpurshasesetup)){
	extract($rowpurshasesetup);
}	 


//read from salessetup code  2

$querysalessetup= "Select Warehouse As  Warehouse2 ,  Project As  Project2 ,  Costcenter As  Costcenter2 ,  PaymentMode As  PaymentMode2 ,  ClientCur As  ClientCur2 ,  ClientAccount As  ClientAccount2 , 
							CreditCur As  CreditCur2 ,  CreditCurdefault As  CreditCurdefault2 ,  CreditAccount As  CreditAccount2 ,  
							CashCur As  CashCur2 ,  CashCurDefault As  CashCurDefault2 ,  CashAccount As  CashAccount2 ,  CheckCur As  CheckCur2 ,  CheckCurDefault As  CheckCurDefault2 ,  
							CheckAccount As  CheckAccount2 ,  TipsAccount As  TipsAccount2 ,  VatAccount As  VatAccount2 ,  CreditAccountReturn As  CreditAccountReturn2 ,  CreditCurReturnDefault As  CreditCurReturnDefault2 , 
							CreditCurReturn As  CreditCurReturn2 ,  CHARGES As  CHARGES2 ,  DiscountAccount As  DiscountAccount2 ,  Creditaccountvat As  Creditaccountvat2 ,  DirectStockDebit As  DirectStockDebit2 ,  
							DirectStockCredit As  DirectStockCredit2 ,  DEBITACC As  DEBITACC2 ,  CustomsCurDefault As  CustomsCurDefault2 ,  CustomsAccount As  CustomsAccount2 ,  CustomsCur As  CustomsCur2 ,  
							BillsAccount As  BillsAccount2 ,  BillsCur As  BillsCur2 ,  BillsCurDefault As  BillsCurDefault2 ,  DEBITcUR As  DEBITcUR2 ,  DebitCurDefault As  DebitCurDefault2 ,  
							TipsMaxBase1 As  TipsMaxBase12 ,  WithPriceDefault As  WithPriceDefault2 ,  PrintPreview As  PrintPreview2 ,  CREDITVATRETURN As  CREDITVATRETURN2 ,  SALESTTC As  SALESTTC2 ,  
							DirectStockCurrency_Code As  DirectStockCurrency_Code2 , SalesSetup As  SalesSetup2 ,  Setup_LedgerNumber As  Setup_LedgerNumber2 ,  SalesJV_PrintedDateTime As  SalesJV_PrintedDateTime2 ,  
							SalesJV_PrintFolio As  SalesJV_PrintFolio2 ,  Sale_Remark As  Sale_Remark2 ,  SalesJV_DefaultCur As  SalesJV_DefaultCur2 ,  
							Sale_PrinterLPTPort As  Sale_PrinterLPTPort2 ,  SALE_PrintBottomLabel As  SALE_PrintBottomLabel2 ,  
							 Sale_DisplayLedDefault As  Sale_DisplayLedDefault2 ,  Sale_COMPortDefault As  Sale_COMPortDefault2 ,  SalesJV_VatAccount As  SalesJV_VatAccount2 ,  
							 Sale_CalculateWeight As  Sale_CalculateWeight2 ,  SalesJV_MaxDiscountPer As  SalesJV_MaxDiscountPer2 ,  Sales_MaxDiscountPer As  Sales_MaxDiscountPer2 ,  
							 Sale_Acctax1 As  Sale_Acctax12 ,  Sale_Acctax2 As  Sale_Acctax22 ,  Sale_Acctax3 As  Sale_Acctax32 ,  
							 Sale_Acctax4 As  Sale_Acctax42 ,  Sale_Acctax5 As  Sale_Acctax52 ,  PromotionAccount As  PromotionAccount2 ,  DiscountFromItemGroup As  DiscountFromItemGroup2 ,  
							 Sale_ExchangeSellPrice As  Sale_ExchangeSellPrice2 , 
							 Synchronized As  Synchronized2 ,  Barcode As  Barcode2 ,  DisplayTransferInDR As  DisplayTransferInDR2 ,  
							 NoneStandardBarcode As  NoneStandardBarcode2 ,  
							 AutoGenerateSizeMeasure As  AutoGenerateSizeMeasure2 ,  EnableDeliveryConfirmed As  EnableDeliveryConfirmed2 ,  EnablePricePerUnit As  EnablePricePerUnit2 , 
							 Sale_SequentialRefViaCST As  Sale_SequentialRefViaCST2 ,  Sale_SeperateLines As  Sale_SeperateLines2 ,  Sale_changeClient As  Sale_changeClient2 ,  
							 Sale_CLAAccount As  Sale_CLAAccount21 ,  Sale_DCTAccount As  Sale_DCTAccount21 ,  
							 Sale_AWAccount As  Sale_AWAccount21 ,  Sale_TRPAccount As  Sale_TRPAccount21 ,  ExportDiscPerJV As  ExportDiscPerJV2 ,  Sales_DiscountAcc As  Sales_DiscountAcc21 ,  LoadItems As  LoadItems2 , 
							 CheckQuantity As  CheckQuantity2 ,  TransportAccount As  TransportAccount2 ,  ExportTransportToJV As  ExportTransportToJV2 ,  
							 Sale_CLAACcount2 As  Sale_CLAACcount22 ,  Sale_DCTACcount2 As  Sale_DCTAccount22 ,  
							 Sale_AWAccount2 As  Sale_AWAccount22 ,  Sale_TRPAccount2 As  Sale_TRPAccount22 ,  Sales_DiscountAcc2 As  Sales_DiscountAcc22 ,  IsoDescription As  IsoDescription2 , 
							 IsoDlvDescription As  IsoDlvDescription2 ,  Delivery_packPrice As  Delivery_packPrice2 ,  show_QtySorder As  show_QtySorder2 ,  
							 BonusAccount As  BonusAccount2 ,  ExportBonusToJV As  ExportBonusToJV2 ,  
							 InvoiceComment As  InvoiceComment2 ,  WaybillComment As  WaybillComment2 ,  Sale_MinPendingQty As  Sale_MinPendingQty2 ,  Sale_MaxExceedQty As  Sale_MaxExceedQty2 ,  
							 Sale_MarginPer As  Sale_MarginPer2 ,  VATAccountNonStock As  VATAccountNonStock2 ,  SorderComment As  SorderComment2 ,  
							 PrintDeliveryByWarehouse As  PrintDeliveryByWarehouse2 ,  PriceDecimalBase As  PriceDecimalBase2 , 
							 ShowCostCentLayout As  ShowCostCentLayout2 ,  id As id2 ,  VatAccountPOS As  VatAccountPOS2 ,  VATAccountNonStockPOS As  VATAccountNonStockPOS2 ,  
							 CreditAccountNonStock As  CreditAccountNonStock2 ,  CreditAccountVATNonStock As  CreditAccountVATNonStock2 ,  
							CreditReturnNonStock As  CreditReturnNonStock2 ,  CreditVATReturnNonStock As  CreditVATReturnNonStock2 ,  VatAccountRefundable As  VatAccountRefundable2 ,  
							CreditAccountVATRefundable As  CreditAccountVATRefundable2 ,  
							packingXNbrOfUnit As  packingXNbrOfUnit2
					from salessetup ";
	//echo $querysalessetup;
$resultsalessetup=mysql_query($querysalessetup , $connection) or die(mysql_error());
while($rowsalessetup=mysql_fetch_array($resultsalessetup)){
	extract($rowsalessetup);
}	




//read from transfersetup code 3  

$querytransfersetup= "Select DebitAccount As DebitAccount3 ,  CreditAccount As CreditAccount3 ,  CurrencyBase As CurrencyBase3 ,  WithPricedefault As WithPricedefault3 , DEFAULTCUR As DefaultCur3 
						  , DirectStockAccPerWH As DirectStockAccPerWH3 ,  Synchronized As Synchronized3 ,  Barcode As Barcode3 ,  NoneStandardBarcode As NoneStandardBarcode3 
						  , ExportVariation As ExportVariation3  , ShowItemSelling1Base1 As ShowItemSelling1Base13 ,  EnablePricePerUnit As EnablePricePerUnit3
						  , IsoDescription As IsoDescription3 ,  ShowCostCentLayout As ShowCostCentLayout3
						  ,  warehouseFG As WarehouseFG3
					
						from transfersetup ";
					//		  ,  Warehouse As Warehouse3 
					//	echo $querytransfersetup;
$resultquerytransfersetup=mysql_query($querytransfersetup , $connection) or die(mysql_error());
while($rowstransfersetup=mysql_fetch_array($resultquerytransfersetup)){
	extract($rowstransfersetup);
}	



//read from transsetup code 51
if(isset($_GET['recnum'])){$recnum=$_GET['recnum'];}
$querytranssetup= "Select 	VatAccount AS VatAccount51, AUXAccount AS AUXAccount51, DEBITACCOUNTFROM AS DEBITACCOUNTFROM51, DEBITACCOUNTTO AS DEBITACCOUNTTO51, 
							CREDITACCOUNTFROM AS CREDITACCOUNTFROM51,
							CREDITACCOUNTTO AS CREDITACCOUNTTO51, DEFAULTCUR AS DEFAULTCUR51, Voucher_PrintFolio AS Voucher_PrintFolio51,
							Voucher_PrintJVRef AS Voucher_PrintJVRef51, Voucher_PrintDateTime AS Voucher_PrintDateTime51, 
							Voucher_AutoCalcAmnt AS Voucher_AutoCalcAmnt51, 
							Voucher_ShowDescription2 AS Voucher_ShowDescription251, SeparateAccounts AS SeparateAccounts51, Synchronized AS Synchronized51,
							DefaultCostcenter AS DefaultCostcenter51, DefaultProject AS DefaultProject51, IsoDescription AS IsoDescription51,
							JournalType AS JournalType51
					from transsetup
					where 		JournalType='$recnum'				";
						
					//echo $querytranssetup;
$resultquerytranssetup=mysql_query($querytranssetup , $connection) or die(mysql_error());
while($rowstranssetup=mysql_fetch_array($resultquerytranssetup)){
	extract($rowstranssetup);
}	


//read from sendreceivesetup code 61
$querysrsetup="select Table_Name AS Table_Name61,  SendReceive_Type AS SendReceive_Type61,  SndRec_Id AS SndRec_Id61,  Master_Table AS Master_Table61,  Master_Field AS Master_Field61,  
						Table_SecondaryKey AS Table_SecondaryKey61,  Table_PrimaryKey AS Table_PrimaryKey61,  Field_name AS Field_name61,  SndRec_OldBatch AS SndRec_OldBatch61, 
						Synchronized AS Synchronized61,  Table_Alias AS Table_Alias61,  Master_Alias AS Master_Alias61,  Station_Name AS Station_Name61,  Table_Primary AS Table_Primary61, 
						Primary_Alias AS Primary_Alias61,  Table_Level AS Table_Level61
				from sendreceivesetup";
					//echo $querytranssetup;
$resultsrsetup=mysql_query($querysrsetup , $connection) or die(mysql_error());
while($rowsrsetup=mysql_fetch_array($resultsrsetup)){
	extract($rowsrsetup);
}

//read from synchrosetup code 71
$querysynchro="select 	SynchroStp_Id AS SynchroStp_Id71, Table_Name AS Table_Name71, Master_Table AS Master_Table71, Master_Field AS Master_Field71, 
						Table_SecondaryKey AS Table_SecondaryKey71, Table_PrimaryKey AS Table_PrimaryKey71, Field_name AS Field_name71, Status_IsUpdate AS Status_IsUpdate71,
						Status_IsInsert AS Status_IsInsert71, Status_IsDelete AS Status_IsDelete71, Table_Primary AS Table_Primary71, Table_Alias AS Table_Alias71, 
						Master_Alias AS Master_Alias71, Primary_Alias AS Primary_Alias71, Primary_Field AS Primary_Field71, Table_Level AS Table_Level71, Synchronized AS Synchronized71
				from 	synchrosetup";
					//echo $querysynchro;
$resultsetup=mysql_query($querysynchro , $connection) or die(mysql_error());
while($rowsynchro=mysql_fetch_array($resultsetup)){
	extract($rowsynchro);
}

//read from transactionsetup code 81
if(isset($_GET['trancactionnum'])){$trancactionnum=$_GET['trancactionnum'];}
$querytransactionsetup="select 	Auto AS Auto81 ,Journal_type AS Journal_type81 , Trans_RMAcc AS Trans_RMAcc81 , Trans_RMVatAcc AS Trans_RMVatAcc81 , Trans_NonRMAcc AS Trans_NonRMAcc81 , Trans_NonRMVatAcc AS Trans_NonRMVatAcc81 , 
						Trans_RMTTCIncAcc AS Trans_RMTTCIncAcc81 , Trans_NonRMTTCIncAcc AS Trans_NonRMTTCIncAcc81 , Trans_Currency  AS Trans_Currency81 , Trans_DefaultCur  AS Trans_DefaultCur81, 
						Trans_DirectStkDbt AS Trans_DirectStkDbt81 , Trans_DirectStkCrd  AS Trans_DirectStkCrd81 , Trans_DirectStkCur   AS Trans_DirectStkCur81 , Group_code   AS Group_code81 , 
						Synchronized  AS Synchronized81, CEP_CreditAcc  AS CEP_CreditAcc81 , Trans_wasteDebitAcc  AS Trans_wasteDebitAcc81 , Trans_wasteCreditAcc   AS Trans_wasteCreditAcc81 , 
						Trans_wasteDifferenceAcc AS Trans_wasteDifferenceAcc81 , Trans_DiscountAcc  AS Trans_DiscountAcc81 , Trans_PromotionAcc AS Trans_PromotionAcc81 , 
						IsoDescription  AS IsoDescription81 , Trans_VATAccount  AS Trans_VATAccount81 , trans_Purchasepromotionacc AS trans_Purchasepromotionacc81 ,
						trans_Purchasediscountacc  AS trans_Purchasediscountacc81 , Trans_TipsAcc AS Trans_TipsAcc81 , trans_export AS trans_export81 
				from 	transactionsetup
				where Auto='$trancactionnum'";
					//echo $querysynchro;
$resulttransactionsetup=mysql_query($querytransactionsetup , $connection) or die(mysql_error());
while($rowtransaction=mysql_fetch_array($resulttransactionsetup)){
	extract($rowtransaction);
}



//read from Sordersetup code 91
$querysordersetup="select WithPriceDefault AS WithPriceDefault91, ReportTitles AS ReportTitles91, NEGATIVEQTY AS NEGATIVEQTY91, Warrantylabel AS Warrantylabel91, DiscountFromItemGroup AS DiscountFromItemGroup91,
							Synchronized AS Synchronized91, Barcode AS Barcode91, Transfer_WarehouseTo AS Transfer_WarehouseTo91, 
							EnableSorderConfirmed AS EnableSorderConfirmed91, VatAccount AS VatAccount91, CreditCur AS CreditCur91, 
							CreditCurdefault AS CreditCurdefault91, CreditAccount AS CreditAccount91, CreditAccountVAT AS CreditAccountVAT91, Item_Cliche AS Item_Cliche91, Item_DieCut AS Item_DieCut91, Item_ArtWork AS Item_ArtWork91,
							Item_transport AS Item_transport91, QtyApproximate AS QtyApproximate91, journal_Type AS journal_Type91, IsoDescription AS IsoDescription91, Changerefernce AS Changerefernce91, 
							Sorder_Confirmed AS Sorder_Confirmed91, Sorder_ReservedQty AS Sorder_ReservedQty91, Sorder_packPrice AS Sorder_packPrice91, sorder_bank1 AS sorder_bank191, sorder_bank2 AS sorder_bank291,
							sorder_bank3 AS sorder_bank391, ShowCostCentLayout AS ShowCostCentLayout91
					from sordersetup";
$resultsordersetup=mysql_query($querysordersetup,$connection);
while($rowsorder=mysql_fetch_array($resultsordersetup)){
	extract($rowsorder);
}

//Read from productionsetup code 10
$querproductionsetup="select  	Currency_code AS Currency_code10, Project_code AS Project_code10,  Costcenter_code AS Costcenter_code10, Warehouse_code AS Warehouse_code10, 
								DISPLAYBARCODE AS DISPLAYBARCODE10, CreditAccount AS CreditAccount10, DebitAccount AS DebitAccount10, Currencybase AS Currencybase10, 
								Setup_DefaultUnitRecipe AS Setup_DefaultUnitRecipe10, Setup_NameOfRMW AS Setup_NameOfRMW10,  Setup_NameOfRMC AS Setup_NameOfRMC10, 
								Setup_NameOfMachineOND AS Setup_NameOfMachineOND10, Setup_NameOfPaperMachine AS Setup_NameOfPaperMachine10, Setup_DefaultPulper AS Setup_DefaultPulper10, 
								Setup_WHofCartonProduct AS Setup_WHofCartonProduct10, Setup_NbOfHoursShiftCh AS Setup_NbOfHoursShiftCh10,  Setup_BeginingShiftCh AS Setup_BeginingShiftCh10, 
								Setup_DefaultWHChemical AS Setup_DefaultWHChemical10, Setup_MaxBobineReference AS Setup_MaxBobineReference10, Setup_NameOfMachineON AS Setup_NameOfMachineON10, 
								Setup_defaultClient AS Setup_defaultClient10, date_format(Setup_LockDateFrom, '%Y-%m-%d') AS Setup_LockDateFrom10, date_format(Setup_LockDateTo, '%Y-%m-%d') AS Setup_LockDateTo10, 
								Setup_ProductionCarton AS Setup_ProductionCarton10, Setup_GeneratExpenses AS Setup_GeneratExpenses10, Setup_DefaultCodeforWaste AS Setup_DefaultCodeforWaste10, 
								Setup_DefaultWHWaste AS Setup_DefaultWHWaste10, Setup_DefaultCostCentCh AS Setup_DefaultCostCentCh10, Setup_DefaultCostCentWast AS Setup_DefaultCostCentWast10, 
								Synchronized AS Synchronized10,  Barcode AS Barcode10,  Setup_GenerateNonStock AS Setup_GenerateNonStock10,  Setup_DisableDeductRM AS Setup_DisableDeductRM10, 
								GenerateWasteAccount AS GenerateWasteAccount10,  DisableIdeal AS DisableIdeal10,  ShowCostCentLayout AS ShowCostCentLayout10, Actual_Zero AS Actual_Zero10, 
								Production_extraInfo As Production_extraInfo10
						from 	productionsetup";
						//echo $querproductionsetup; exit;
$resultproductionsetup=mysql_query($querproductionsetup,$connection);
while($rowproduction=mysql_fetch_array($resultproductionsetup)){
	extract($rowproduction);
}
				

//read from Purchaschargessetup code 11
if(isset($_GET['purchasechargesnum'])){$purchasechargesnum=$_GET['purchasechargesnum'];}
if(isset($_GET['Auto11'])){$purchasechargesnum=$_GET['Auto11'];}
$querpurchasechargessetup="select 	Auto AS Auto11, 
									Ledger_NumberDebit AS Ledger_NumberDebit11, 
									Ledger_numberCredit AS Ledger_numberCredit11, 
									Currency_code AS Currency_code11, 
									Charges_isVat AS Charges_isVat11, 
									Charge_Type AS Charge_Type11, 
									Synchronized AS Synchronized11, 
									Distribution_Method AS Distribution_Method11
						  from purchasechargessetup
						  where Auto='$purchasechargesnum'";
									
$resultpurchaschargessetup=mysql_query($querpurchasechargessetup,$connection);
while($rowpurchasecharges=mysql_fetch_array($resultpurchaschargessetup)){
	extract($rowpurchasecharges);
}

//read from Rmasetup code 12

$queryrmasetup="select  RMA_CheckError AS RMA_CheckError12, 
						REMARK_REPORT AS REMARK_REPORT12,  
						Synchronized AS Synchronized12,
						Default_Currency AS Default_Currency12 
				from 	rmasetup";
			//	echo $queryrmasetup;
$resultrmasetup=mysql_query($queryrmasetup,$connection);
while($rowrmasetup=mysql_fetch_array($resultrmasetup)){
	extract($rowrmasetup);
}

//read from receiptsetup code 13

$queryreceiptsetup="select 	VATAccount AS VATAccount13, 
							AUXAccount AS AUXAccount13, 
							DEBITACCOUNTFROM AS DEBITACCOUNTFROM13, 
							DEBITACCOUNTTO AS DEBITACCOUNTTO13, 
							CREDITACCOUNTFROM AS CREDITACCOUNTFROM13, 
							CREDITACCOUNTTO AS CREDITACCOUNTTO13, 
							DEFAULTCUR AS DEFAULTCUR13, 
							Voucher_PrintFolio AS Voucher_PrintFolio13, 
							Voucher_PrintJVRef AS Voucher_PrintJVRef13, 
							Voucher_PrintDateTime AS Voucher_PrintDateTime13, 
							Voucher_AutoCalcAmnt AS Voucher_AutoCalcAmnt13, 
							Voucher_ShowDescription2 AS Voucher_ShowDescription213, 
							SeparateAccounts AS SeparateAccounts13, 
							Synchronized AS Synchronized13, 
							DefaultCostcenter AS DefaultCostcenter13, 
							DefaultProject AS DefaultProject13, 
							IsoDescription AS IsoDescription13, 
							Chk_CommissionAcc AS Chk_CommissionAcc13
					from 	receiptsetup";
$resultreceiptsetup=mysql_query($queryreceiptsetup,$connection);
while($rowreceiptsetup=mysql_fetch_array($resultreceiptsetup)){
	extract($rowreceiptsetup);
}

//read from  code 14
if(isset($_GET['Ledger_Number14'])){$Ledger_Number14=$_GET['Ledger_Number14'];}
$querydifferexchange="select 	Ledger_number AS Ledger_number14,
									Ledger_Type	AS Ledger_Type14
							from 	diffexchngsetup
						where	Ledger_Number='$Ledger_Number14'";

					//echo $querydifferexchange;
$resultdifferexchange=mysql_query($querydifferexchange,$connection);
while($rowrdifferexchange=mysql_fetch_array($resultdifferexchange)){
	extract($rowrdifferexchange);
}

//read from  code 15
if(isset($_GET['id15'])){$id15=$_GET['id15'];}
$querydeliverystatus="select 	id AS id15,
								name AS name15,
								deliverystatus_level AS deliverystatus_level15
						from 	deliverystatus_setup
						where 	id=$id15";
$resultdeliverystatus=mysql_query($querydeliverystatus,$connection);
while($rowrdeliverystatus=mysql_fetch_array($resultdeliverystatus)){
	extract($rowrdeliverystatus);
}


//read from  code 16
$querybudgetsetup="select 	BdgtSetup_PriceTerms AS BdgtSetup_PriceTerms16,
								BdgtSetup_OfferValidity AS BdgtSetup_OfferValidity16,
								BdgtSetup_PaymentTerms AS BdgtSetup_PaymentTerms16,
								DefaultProfitPer AS DefaultProfitPer16,
								Synchronized AS Synchronized16
						from 	budgetsetup";
$resultbudgetsetup=mysql_query($querybudgetsetup,$connection);
while($rowbudgetsetup=mysql_fetch_array($resultbudgetsetup)){
	extract($rowbudgetsetup);
}


//read from  code 17
$queryacctypesetup="select 	AccTypeSetupInc AS AccTypeSetupInc17,
							Type_Code AS Type_Code17,
							Type_name AS Type_name17,
							GeneratedType_code AS GeneratedType_code17,
							GeneratedType_Name AS GeneratedType_Name17,
							Ledger_Number AS Ledger_Number17,
							 Warehouse_code AS Warehouse_code17,
							Ledger_activity AS Ledger_activity17,
							GenerateWithGroup AS GenerateWithGroup17,
							Synchronized AS Synchronized17
					from 	acctypesetup";
					
$resultacctypesetup=mysql_query($queryacctypesetup,$connection);
while($rowacctypesetup=mysql_fetch_array($resultacctypesetup)){
	extract($rowacctypesetup);
}


$querycurrency="select Currency_code from currency order by currency_code";
	//echo $querycurrency;
	$resultcurrency=mysql_query($querycurrency , $connection) or die(mysql_error());
	$resultcurrency1=mysql_query($querycurrency , $connection) or die(mysql_error());
	$resultcurrency2=mysql_query($querycurrency , $connection) or die(mysql_error());
	print <<<HERE
	<html >
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=windows-1256" />
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge , chrome=1"> 
	<meta name="viewport" content="width=device-width ,  initial-scale=1.0"> 
	<link rel="stylesheet" type="text/css" media="all" href="css-v2/style.css">
	
	<script type="text/javascript" src="js/tabsClass/tabber.js"></script>
	<link rel="stylesheet" href="js/tabsClass/tabber.css" type="text/css" />
	
	<link type="text/css" rel="stylesheet" href="dhtmlgoodies_calendar.css?random=20101112" media="screen"></link>
<script type="text/javascript" src="dhtmlgoodies_calendar.js?random=20100118"></script>

	
	<script type="text/javascript" language="javascript">


	var tabberOptions = {
		'manualStartup':true , 
		'onClick': function(argsObj) {
			
			var t = argsObj.tabber; /* Tabber object */
			var id = t.id; /* ID of the main tabber DIV */
			var i = argsObj.index; /* Which tab was clicked (0 is the first tab) */
			var e = argsObj.event; /* Event object */
			
			if (id == 'tab1') document.getElementById('PTabIndex').value = i;
			} , 
			
			/* Optional: set an ID for each tab navigation link */
		
			'addLinkId': true
			};
			
			
			//mycode get ledger names
			
			function showlistledger(str){
				if(str==1){
		varledger = document.Setup.fromledger.value;
		} else {
			varledger   = document.Setup.toledger.value;
			varledgername = document.Setup.toledgername.value;
			}
			
			var str1, selectpage;
			
			for (var i=0; i < document.Setup.ledgeroption.length; i++)
				{ 
			if (document.Setup.ledgeroption[i].checked)
				{
					str1 = document.Setup.ledgeroption[i].value;
					if (str1 == 1)
						selectpage = 'select_ledger.php?item='+str+'&PLedger_Number='+varledger+'&PLedger_Name='+varledgername;
					else
						selectpage = 'select_document.php?item='+str;	  
					}
					}
					
					window.open(selectpage,'mywindow','width=800,height=550,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes');
					}
					
					function kdClient(choice,e,app){
						
						x = document.Setup;
						if(app==0){
							var clientcode = x.fromledger.value;
							if(clientcode=='')
								var clientcode = x.fromledgername.value;
							} else {
								var clientcode = x.toledger.value;
								if(clientcode=='')
									var clientcode = x.toledgername.value;
								}	
								var intKey = (window.Event) ? e.which : e.keyCode;
								
								
								if (intKey == 13) { //enter key
								
								
								var xmlhttp = getXMLHttpRequest();	
								
								
								xmlhttp.onreadystatechange=function()
								{
									if (xmlhttp.readyState==4 && xmlhttp.status==200)
										{
											var data = xmlhttp.responseText.split("[BRK]");
											
											if(app==0){
												if(data[0]!=''){
													x.fromledger.value = data[0];
													x.fromledgername.value = data[1];
													if(x.toledger.value==''){
														x.toledger.value = data[0];
														x.toledgername.value = data[1];
														
														}
														}
														else showlistledger(1);
														} else {
															if(data[0]!=''){
																x.toledger.value = data[0];
																x.toledgername.value = data[1];
																//if(x.toledgername.value!=''){
																	//	x.submit();	
																	//} 
																	}
																	else showlistledger(2);						
																	}
																	}
																	}
																	
																	xmlhttp.open("GET","Form_Statementofaccount_Action.php?mode=getclientname&clientcode="+clientcode+"&choice="+choice);
																	xmlhttp.send();
																	}
																	}
																	
																	//get item code list
																	function showlistitem(str){
																		  window.open('select_item.php?item='+str,'mywindow','width=900,height=550,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes');
																		  }
																		  //changeledger
																		  
																		  function Updateledger(){ 
																		  var fromledger=document.getElementById('fromledger').value;
																		  var toledger=document.getElementById('toledger').value;
																		  var journal=document.getElementById('journal').checked;
																		  var trans=document.getElementById('trans').checked;
																		  var salesjv=document.getElementById('salesjv').checked;
																		  var purchasejv=document.getElementById('purchasejv').checked;
																		  var item=document.getElementById('item').checked;
																		  var prepayment=document.getElementById('prepayment').checked;
																		  var purchases=document.getElementById('purchases').checked;
																		  var order=document.getElementById('order').checked;
																		  var delivery=document.getElementById('delivery').checked;
																		  var adjustment=document.getElementById('adjustment').checked;
																		  var production=document.getElementById('production').checked;
																		  var transactionsetup=document.getElementById('transactionsetup').checked;
																		  var sales=document.getElementById('sales').checked;
																		  
																		  
																		  if(!journal && !trans && !salesjv && !purchasejv && !item && !prepayment && !purchases && !order && !delivery && !adjustment && !production && !transactionsetup && !sales || fromledger=='' || toledger=='' ){
																			  alert("Please Choose Table to Update");
																			  document.Setup.action = 'form_utilities.php';
																			  }
																			  else{
																				  document.Setup.action = 'form_utilites_action.php?actionmode=changeledger';
																				  document.Setup.submit();
																				  }	
																				  }
																				  
																				  //checll all ledgers
																				  function chckall() {
																					  if(document.getElementById('checkall').checked){
																						  document.getElementById('fromledger').checked = true; 
																						  document.getElementById('toledger').checked = true; 
																						  document.getElementById('journal').checked = true; 
																						  document.getElementById('trans').checked = true; 
																						  document.getElementById('salesjv').checked = true; 
																						  document.getElementById('purchasejv').checked = true; 
																						  document.getElementById('item').checked = true; 
																						  document.getElementById('prepayment').checked = true; 
																						  document.getElementById('purchases').checked = true; 
																						  document.getElementById('order').checked = true; 
																						  document.getElementById('delivery').checked = true; 
																						  document.getElementById('adjustment').checked = true; 
																						  document.getElementById('production').checked = true; 
																						  document.getElementById('transactionsetup').checked = true; 
																						  document.getElementById('sales').checked = true; 
																						  } else{
																							  document.getElementById('fromledger').checked = false; 
																							  document.getElementById('toledger').checked = false; 
																							  document.getElementById('journal').checked = false; 
																							  document.getElementById('trans').checked = false; 
																							  document.getElementById('salesjv').checked = false; 
																							  document.getElementById('purchasejv').checked = false; 
																							  document.getElementById('item').checked = false; 
																							  document.getElementById('prepayment').checked = false; 
																							  document.getElementById('purchases').checked = false; 
																							  document.getElementById('order').checked = false; 
																							  document.getElementById('delivery').checked = false; 
																							  document.getElementById('adjustment').checked = false; 
																							  document.getElementById('production').checked = false; 
																							  document.getElementById('transactionsetup').checked = false; 
																							  document.getElementById('sales').checked = false; 
																							  }
																					}


//checkall items
function chckall2 (){
	if(document.getElementById('checkall2').checked){
		document.getElementById('Request').checked = true; 
		document.getElementById('Purchasesorder').checked = true; 
		document.getElementById('Order').checked = true; 
		document.getElementById('Delivery').checked = true; 
		document.getElementById('Sales').checked = true; 
		document.getElementById('Transfer').checked = true; 
		document.getElementById('Adjustment').checked = true; 
		document.getElementById('Production_item').checked = true; 
		document.getElementById('Pack').checked = true; 
		document.getElementById('Prodrecipe').checked = true; 
		document.getElementById('Transaction').checked = true; 
		}
		else{
	document.getElementById('Request').checked = false; 
	document.getElementById('Purchasesorder').checked = false; 
	document.getElementById('Order').checked = false; 
	document.getElementById('Delivery').checked = false; 
	document.getElementById('Sales').checked = false; 
	document.getElementById('Transfer').checked = false; 
	document.getElementById('Adjustment').checked = false; 
	document.getElementById('Production_item').checked = false; 
	document.getElementById('Pack').checked = false; 
	document.getElementById('Prodrecipe').checked = false; 
	document.getElementById('Transaction').checked = false; 	
	}	
	}
	
	//Update Item
	function UpdateItem(){
		var fromitem=document.getElementById('fromitem').value;
		var toitem=document.getElementById('toitem').value;
		var Request=document.getElementById('Request').checked;
		var Purchasesorder=document.getElementById('Purchasesorder').checked;
		var Order=document.getElementById('Order').checked;
		var Delivery=document.getElementById('Delivery').checked;
		var Sales=document.getElementById('Sales').checked;
		var Transfer=document.getElementById('Transfer').checked;
		var Adjustment=document.getElementById('Adjustment').checked;
		var Production_item=document.getElementById('Production_item').checked;
		var Pack=document.getElementById('Pack').checked;
		var Prodrecipe=document.getElementById('Prodrecipe').checked;
		var Transaction=document.getElementById('Transaction').checked;
		
		if(!Request && !Purchasesorder && !Order && !Delivery && !Sales && !Transfer && !Adjustment && !Production_item && !Pack && !Prodrecipe && !Transaction  || fromitem=='' || toitem=='' ){
			alert("Please Choose Table to Update");
			document.Setup.action = 'form_utilities.php';
			}
			else{
				document.Setup.action = 'form_utilites_action.php?actionmode=changeitem';
				document.Setup.submit();
				}		
				}
				
				//my code trans 
				function Updatetranssetup(){
					
					document.Setup.action = 'Form_utiilities_action.php?actionmode=transupdate';
					document.Setup.submit();
					
					}
					
					function edittrans(recnum){
						
						document.Setup.action = 'form_utilities.php?recnum='+recnum;
						document.Setup.submit();
						
						}
						
						//my code SendReceive Setup
						
						function updatesreceivesetup(){
							
							document.Setup.action = 'Form_utiilities_action.php?actionmode=srsetup';
							document.Setup.submit();
							
							}
							//my code synchro setup
							function updatesynchrosetup(){
								document.Setup.action = 'Form_utiilities_action.php?actionmode=synchrosetup';
								document.Setup.submit();
							
								}
								//my code transactionsetup 
								function Updatetransactionsetup(){
									
									document.Setup.action = 'Form_utiilities_action.php?actionmode=transactionsetup';
									document.Setup.submit();
									
								}
function edittransaction(trancactionnum){
	
	document.Setup.action = 'form_utilities.php?trancactionnum='+trancactionnum;
	document.Setup.submit();
	
	}
	
	//my code sordersetup 
	
	function Updatesordersetup(){
		
		document.Setup.action= 'Form_utiilities_action.php?actionmode=sordersetup';
		document.Setup.submit();
		
		}
		
		//my code productionsetup 
		function Updateproductionsetup(){
			document.Setup.action= 'Form_utiilities_action.php?actionmode=productionsetup';
			document.Setup.submit();
			}
			
			//my code choosesetup
function choosesetup(Tabnumber){
	
	document.Setup.action= 'form_utilities.php?Tabnumber='+Tabnumber;
	document.Setup.submit();
	}
	
	//my code purchasescharges
	function UpdatePurchasecharges(){
		document.Setup.action= 'Form_utiilities_action.php?actionmode=purchasecharges';
		document.Setup.submit();
		}
		
		function editpurchasecharges(purchasecharges,Tabnumber){
			document.Setup.action = 'form_utilities.php?&purchasechargesnum='+purchasecharges+'&Tabnumber='+Tabnumber; 
			document.Setup.submit();
			}
			
			//my code rmasetup
			function Updatermasetup(){ 
			document.Setup.action= 'Form_utiilities_action.php?actionmode=rmasetup';
			document.Setup.submit();
			}
			
			//my code receiptsetup
			function Updatereceiptsetup(){
				document.Setup.action= 'Form_utiilities_action.php?actionmode=receiptsetup';
				document.Setup.submit();
				}
				
				//my code receiptsetup
				function Updatedifferexchange(){
					document.Setup.action= 'Form_utiilities_action.php?actionmode=differexchange';
					document.Setup.submit();
					}
					function editdifferexchng(differexchng,Tabnumber){
						document.Setup.action = 'form_utilities.php?&Ledger_Number14='+differexchng+'&Tabnumber='+Tabnumber; 
						document.Setup.submit();
						}
						
						
//my code DELIVERYSTAUS setup
function Updatedeliverystatus(){ 
	document.Setup.action= 'Form_AmortizationPreview_excel.php?actionmode=excel';
	document.Setup.submit();
}

function editdeliverystatus(id15,Tabnumber){
	document.Setup.action = 'form_utilities.php?&id15='+id15+'&Tabnumber='+Tabnumber; 
	document.Setup.submit();
}

//my code budgetsetup setup
function Updatebudgetsetup(){
	document.Setup.action= 'Form_utiilities_action.php?actionmode=budgetsetup';
	document.Setup.submit();
}

//my code budgetsetup setup
function Updateacctypesetup(){
	document.Setup.action= 'Form_utiilities_action.php?actionmode=acctypesetup';
	document.Setup.submit();
}




//project code and cost center code
function LoadConfirmedTrRequest(Module_RestrictProjCost,Module_RestrictCost,ModuleProject, ModuleCostCenter){
	var	txtPorId = document.Setup.txtPorId.value;
	
	var suppcode  = document.Setup.txtSupplier.value;
	var PorId  = document.Setup.txtPorId.value;
	
	var str1 = 'Form_PurchaseLoadRequest.php?suppcode='+suppcode+'&PorId='+PorId;

		
		
	/*if (document.Setup.txtSupplier.value=='')
	{
		alert("Supplier Column is mandatory!");
		document.Setup.txtSupplier.focus();
		return 0;
	}	*/	
		//var result = CheckFields(ModuleProject, ModuleCostCenter,Module_RestrictProjCost,Module_RestrictCost);
	
		result  =1;
		x = document.Setup;
		var vMode = x.mainaction.value;
			var  the_data =  str1 + '&mode='+vMode+
					'&mainmode='+x.mainaction.value+
					'&SPorId='+x.txtPorId.value+
					'&PPorId='+x.txtPorId.value+
					'&PPorDate='+x.txtDate.value+
					'&PPorCurr='+x.txtCurr.value+
					'&PPorRequestDate='+x.txtRequestDate.value+
					'&PPorExpiryDate='+x.txtExpiryDate.value+
					'&PPorSupplier='+x.txtSupplier.value+
					'&PPorDiscount='+x.txtPorDiscount.value+
					'&PPorDiscountAmt='+x.txtPorDiscountAmt.value+
					'&PPorVatChkbx='+x.txtPorVatChk.value+
					'&PPorProjectCode='+x.txtProjectCode.value+
					'&PPorCostCentCode='+x.txtCostCentCode.value+
					'&PPorRemark='+encodeURIComponent(x.txtRemark.value)+
					'&PPorRequestBy='+encodeURIComponent(x.txtRequestBy.value)+
					'&PPorSupplierContact='+encodeURIComponent(x.txtSupplierContact.value)+
					'&PPorDeliveryPlace='+encodeURIComponent(x.txtDeliveryPlace.value)+
					'&PPorDeliveryContact='+encodeURIComponent(x.txtDeliveryContact.value)+
					'&PPorStatusRemark='+encodeURIComponent(x.txtStatusRemark.value);
		
		if (result == 1) {
			win = window.open(the_data,'List of Confirmed Purchase Request', 'toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=820,height=600,top=100,left=20');		
			win.creator = self;
			win.focus();		
		}
	
}
function showText(){
	var vPorId = document.Setup.txtPorId.value;
	var vPaymentTerms = document.getElementById("txtPaymentCondidions").value;
	
	window.open('form_termsText.php?frm=1&txtPorId='+vPorId+'&vPaymentTerms='+vPaymentTerms,'mywindow','width=865,height=680,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes');
}  



function SetPorVatFlag() {
	x = document.Setup;
	var vmode = x.mainaction.value;
	
	if(x.txtSupplierVat.value == 1)
	    x.ChkPorVat.checked = true;
}	

function showlistSupplier(str){
	var vdate, vcode;
	vdate=document.Setup.txtDate.value;
	vcode=encodeURIComponent(document.Setup.txtSupplier.value);
  
	window.open('List_Supplier.php?frm=4&item='+str+'&PLedger_number='+vcode+'&TransDate='+vdate,'mywindow','width=850,height=550,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes');
}

function showlistSupplierName(str) {
	var vdate, vcode;
	vdate=document.Setup.txtDate.value;
	vname=encodeURIComponent(document.Setup.txtSupplierName.value);
  
	window.open('List_Supplier.php?frm=4&item='+str+'&PLedger_name='+vname+'&TransDate='+vdate,'mywindow','width=850,height=550,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes');
}


function showlistProject(str){

	vProjectCode = encodeURIComponent(document.getElementById('txtProjectCode').value);
	window.open('List_Project.php?item='+str+'&PProject_Code='+vProjectCode,'mywindow','width=850,height=550,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes');
}



function showlistCostcenter(str){

	vCostcentCode = encodeURIComponent(document.getElementById('txtCostCentCode').value);
	window.open('List_Costcenter.php?item='+str+'&PCostcent_Code='+vCostcentCode,'mywindow','width=850,height=550,,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes');
}


function showlistProjectDt(str,PIndex){
	XPos = (screen.availHeight - 550) / 2;
	YPos = (screen.availWidth - 850) / 2;
	
	vProjectCode = encodeURIComponent(document.getElementById('projectcodedt['+PIndex+']').value);
	
	window.open('List_SorProject.php?frm=25&index='+PIndex+'&item='+str+'&PProject_Code='+vProjectCode,'List_SorProject','width=850,height=550,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes,left='+YPos+',top='+XPos);
}

function showlistCostcenterDt(str,PIndex){
	XPos = (screen.availHeight - 550) / 2;
	YPos = (screen.availWidth - 850) / 2;
	
	vCostcentCode = encodeURIComponent(document.getElementById('costcentcodedt['+PIndex+']').value);
	
	window.open('List_SorCostcenter.php?frm=25&index='+PIndex+'&item='+str+'&PCostcent_Code='+vCostcentCode,'List_SorCostcenter','width=850,height=550,,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes,left='+YPos+',top='+XPos);
}
//end code project and costcenter

//my code generate DOE
function generatedoe(){
	document.Setup.action= 'Form_utiilities_action.php?actionmode=doe';
	document.Setup.submit();	
}


//my code currency get and edit
function getallcurrency(){
	document.Setup.action= 'Form_utiilities_action.php?actionmode=getallcurrency&Tabnumber=20';
	document.Setup.submit();
	
}
function editdoe(currencycode){
	document.Setup.action= 'Form_utiilities_action.php?actionmode=editdoe&currency_code='+currencycode+'&Tabnumber=20';
	document.Setup.submit();
}


//add eaccount
function addeaaccount(){
	var ledger_numberex=document.getElementById('fromledgerex').value;
	var ledger_nameex=document.getElementById('fromledgernameex').value; 
	//alert(ledger_numberex + '' + ledger_nameex);
	document.Setup.action= 'Form_utiilities_action.php?actionmode=addaccountledgerea&Tabnumber=21&ledger_numberex='+ledger_numberex;
	document.Setup.submit();
}
function deleteledgerea(ledgernumberex){
	document.Setup.action= 'Form_utiilities_action.php?actionmode=deleteledgerea&ledgernumberex='+ledgernumberex+'&Tabnumber=21';
	document.Setup.submit();
}

//add iaccount
function addiaaccount(){
	var ledger_numberia=document.getElementById('fromledgeria').value;
	var ledger_nameia=document.getElementById('fromledgernameia').value;
	document.Setup.action= 'Form_utiilities_action.php?actionmode=addaccountledgeria&Tabnumber=22&ledger_numberia='+ledger_numberia;
	document.Setup.submit();
}
function deleteledgeria(ledgernumberia){
	document.Setup.action= 'Form_utiilities_action.php?actionmode=deleteledgeria&ledgernumberia='+ledgernumberia+'&Tabnumber=22';
	document.Setup.submit();
}
//my code add 1 id checkbox clicked
function CheckProCost()
{
	var x = document.Setup;
	if(x.check_pro_cost.checked)
	{
		x.close_pro_cost.value = 1;
	}
	else
	{
		x.close_pro_cost.value = 0;
	}
}
function renumberRef(){ 
	var vError = 0;
	 if(document.getElementById("r2").checked)
		var renumberVal = 2;
	else if(document.getElementById("r3").checked)
		var renumberVal = 3;
	
	if(renumberVal == 2){
		if(document.getElementById("fromdate").value == '')
			alert("From date is empty!");
	}
	
	if(renumberVal == 3){
		if(document.getElementById("fromref").value == '')
			alert("From date is empty!");
	}
	
	if(document.getElementById("txtCostCentCodeRef")){
		if(document.getElementById("txtCostCentCodeRef").value=='')
		{
			alert("No CostCenter was selected!");
			vError = 1;
		} else var vCostCentCodeRef = document.getElementById("txtCostCentCodeRef").value;
	}
	if(vError == 0) {
		var fromdate = document.getElementById("fromdate").value;
		var todate = document.getElementById("todate").value;
		var fromref = document.getElementById("fromref").value;
		var toref = document.getElementById("toref").value;
		
		document.Setup.action= 'Form_utiilities_action.php?actionmode=refrenumber&renumberVal='+renumberVal+'&txtCostCentCodeRef='+vCostCentCodeRef+
									'&fromdate='+fromdate+'&todate='+todate+'&fromref='+fromref+'&toref='+toref;
		document.Setup.submit();
	}
}

function showlistLedger2(str){
	window.open('select_ledger.php?item='+str, 'Ledger List', 'width=850,height=550,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes');
}

function SubmitFilter(){
	var x = document.Setup;
	var filter_id = x.filter_id.value;
	
	if(x.fromledgercode.value == '' || x.toledgercode.value == '' || x.filter_type.value == ''){
		alert('From/To Ledger and Filter Type Cannot be Empty!');	
		return 0;
	} else {
		x.action = "form_utilites_action.php?actionmode=filtertab&filter_id="+filter_id;
		x.submit();
	} 
	
} 
function ClearFilter(){
	var x = document.Setup;
	x.filter_id.value 		= '';
	x.filter_type.value 	= '';
	x.CrDbType.value 		= '';
	x.fromledgercode.value 	= '';
	x.fromledgerdesc.value 	= '';
	x.toledgercode.value 	= '';
	x.toledgerdesc.value 	= '';
	x.action = "form_utilities.php";
	x.submit();
}

function editFilter(filter_id){
	var x = document.Setup;
	x.filter_id.value = filter_id;
	x.submit();
}

function SearchFilter(){
	x.submit();
}
function deleteFilter(filter_id){
	var x = document.Setup;
	x.action = "form_utilites_action.php?actionmode=deletefilter&filter_id="+filter_id;
	x.submit();
}
</script>
						
<script type="text/javascript">
// alert("change the info you want and save them when finished");
</script>

<title>Setup</title>
<style type="text/css">

body , td , th {
	font-family: Verdana ,  Arial ,  Helvetica ,  sans-serif;
	font-size: 11px;
	}
	body {

	margin-top: 2px;
	margin-left: 1px;
}
a:link {
	text-decoration: none;
	color: #0000FF;
}
a:visited {
	text-decoration: none;
	color: #0000FF;
}
a:hover {
	text-decoration: none;
	color: #0000FF;
}
a:active {
	text-decoration: none;
	color: #0000FF;
}
.style1 {color: #999999; font-weight: bold; }
.style12 {
	font-size: 9px;
	color: #999999;
	font-weight: bold;
}
.style15 {color: #5151FF; font-size: 10px;}
.style16 {
	font-size: 16px;
	color: #FF0000;
	font-weight: bold;
	font-family: "Times New Roman" ,  Times ,  serif;
}
.style17 {font-size: 9px}
.style25 {color: #999999; font-weight: bold; font-size: 10px; }
.style26 {color: #FF0000}
.style27 {color: #999999 ;font-size: 10px;}
.style28 {color: #FFFFFF ;font-size: 10px;}

</style>


<link rel="stylesheet" type="text/css" media="all" href="css-v2/style.css">

</head>



<body >
<form name='Setup' method='post' action=''>


<input type='hidden' name='PTabIndex' id='PTabIndex' value='$PTabIndex'>
<input type=hidden name='mainmode' value='$mainmode'>
<input type=hidden name='actionmode' value='$actionmode'>
<input type=hidden name='message' value='$message'>
<input type=hidden name='Increment' value='$Increment'>
<input type=hidden name='AreaTransp_ID' value='$AreaTransp_ID'>
<input type=hidden name='Module_Transportation' value='$Module_Transportation'>

HERE;


//get Tab to view tab number
$Tabnumber=$_GET['Tabnumber'];
echo "<input type=hidden name='Tabnumber' value='$Tabnumber'>";
//echo $Tabnumber; 
//$style= "style=' background-color:#4069A7; color:#FFFFFF;font-family:Verdana As  Arial As  Helvetica As  sans-serif; font-size:12px;'";

echo"<table border='0' cellpadding='0' cellspacing='0' border='0'  align='center' class='layout-width'>";
	include_once("header.php");
	echo" <tr><td  valign='top'>";
	include_once("sidemenu.php");
	echo"  </td></tr>";


echo" 	<tr style='height:26px;' >
			<td  valign='top' id='content-top'>
				<table border='0' cellpadding='0' cellspacing='0' style='table-layout:fixed; height:26px;' class='layout-width'>
					<tr style='height:26px;'>
						<td style='width:38px; height:26px;'>&nbsp;</td>
						<td valign='middle' style='width:300px; height:26px;'><span class='title'>Setup</span></td>
						<td class='message' valign='middle' style='height:26px;'>".htmlspecialchars($message ,  ENT_QUOTES)."</td>
					</tr>
				</table>
			</td>
		</tr>";

			
	echo"<tr>
			<td  height='34'  valign='top' id='content-top2'>
				<table border='0' cellpadding='0' cellspacing='0' class='layout-width'>
					<tr>
						<td width='38'  height='34'>&nbsp;</td>
						<td valign='middle' height='34' width='720px'>";
						echo"<button type='button' id='btnClear' name='btnClear' onclick='window.location.reload()' title='Clear Page'><span><span>Refresh</span></span></button>";
						echo"<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' ><span><span>Save</span></span></button>";
						//echo"<button type='submit' id='btnPost' name='btnPost' onclick='SubmitRecord(1); return false;' title='Save Changes' $Insmode><span><span>Save</span></span></button>";
						echo"<button  type='button'  value='Print' onClick='window.print()' title='print'><span><span>Print</span></span></button>";
						//echo"<button  type='button'  value='Print' onclick='PrintPreview();return false;' title='print'><span><span>Print</span></span></button>";
echo"					</td>
					</tr>
				</table>";
echo"		</td>
		</tr>";


	//get result
$journal=$_GET['journal'];
$trans=$_GET['trans'];
$salesjv=$_GET['salesjv'];
$purchasejv=$_GET['purchasejv'];

$item=$_GET['item'];
$prepayment=$_GET['prepayment'];
$purchases=$_GET['purchases'];
$order=$_GET['order'];

$delivery=$_GET['delivery'];
$adjustment=$_GET['adjustment'];
$production=$_GET['production'];
$transactionsetup=$_GET['transactionsetup'];

$sales=$_GET['sales'];

		if($journal=='on'){$feed1="( $row_number1 ) Recorde Updated";}
		
		if($trans=='on'){$feed2="( $row_number2 ) Recorde Updated";}
		
		if($salesjv=='on'){$feed3="( $row_number3 , $row_number31 ) Recordes Updated";}
		
		if($purchasejv=='on'){$feed4="( $row_number4 , $row_number41 ) Recordes Updated";}
		
		if($item=='on'){$feed5="( $row_number5 )Recorde Updated";}
		
		if($prepayment=='on'){$feed6="( $row_number6 , $row_number61 ) Recordes Updated";}
		
		if($purchases=='on'){$feed7="( $row_number7 , $row_number71, $row_number72, $row_number73, $row_number74 ,$row_number75 ) Recordes Updated";}
		
		if($order=='on'){$feed8="( $row_number8 , $row_number81 ) Recordes Updated";}
		
		if($delivery=='on'){$feed9="( $row_number9 , $row_number91 ) Recordes Updated";}
		
		if($adjustment=='on'){$feed10="( $row_number102 , $row_number103 ) Recorde Updated";}
		
		if($production=='on'){$feed11="( $row_number11 , $row_number111 , $row_number112  , $row_number113 , $row_number114, $row_number115
		, $row_number116, $row_number117, $row_number118, $row_number119, $row_number120, $row_number121, $row_number122) Recordes Updated";}
		
		if($transactionsetup=='on'){$feed12="( $row_number12 , $row_number121 , $row_number122 , $row_number123 , $row_number124 , $row_number125 ,
		$row_number12 ,$row_number12 ,$row_number12 ,$row_number12 ,$row_number12 ,$row_number12 ,$row_number12 ,
		$row_number126 , $row_number127 , $row_number128 , $row_number129 , $row_number1290 , $row_number1291 , $row_number1292 ,
		$row_number1293 , $row_number1294 , $row_number1295 , $row_number1296 , $row_number1297 ) Recorde Updated";}
		
		if($sales=='on'){$feed13="( $row_number13 , $row_number131 ) Recordes Updated";}	
			
	echo"<tr min-height='100'>
			<td align=left id='content-body'>";
	 echo"   <div class='tabber' id='tab1' style='width: 1100px; min-height:1000px; margin-left: 50px;  margin-top:10px; float:left; text-align:left;'> ";
			
			
			$styleoption=" style='vertical-align:middle; width:152px; font-family:monospace; font-size:initial ; font-weight:bold;'";
			//$divstyle="style='background-color:hsl(191, 100%, 50%); border-radius:9px; width:160px; height:50px; cursor: pointer'";

			
	// Tab= Choose Setup
	 echo"	<div class='tabbertab'>
				<h2 title='Choose Setup'>Choose Setup</h2>";
		echo"	<div id='datagrid-d1' style='width:1088px; height:172PX; margin-top:5px; border:0px solid gray;'>";
			echo"  	<table border='0' cellpadding='0' cellspacing='10' align='left' valign='center' style='padding-left:40px;width:1094px; height=820' >
					<col width=130>
					<col width=130>
					<col width=130>
					<col width=130>
					<col width=130>
					
					<tr>
						<td>
							<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='choosesetup(3)' >
							<span><span $styleoption>&nbsp;General Setup</span></span></button>
						</td>
						<td>
							<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='choosesetup(4)' >
							<span><span $styleoption>&nbsp;Transfer Setup</span></span></button>
						</td>
						
						<td>
							<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='choosesetup(5)' >
							<span><span $styleoption>&nbsp;Trans Setup</span></span></button>
						</td>
						<td>	
							<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='choosesetup(11)' >
							<span><span $styleoption>&nbsp;Purchase Setup</span></span></button>
						</td>
						<td>
							<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='choosesetup(6)' >
							<span><span $styleoption>&nbsp;Transaction Setup</span></span></button>
						</td>
					</tr>
					
					<tr>
						<td>
							<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='choosesetup(7)' >
							<span><span $styleoption>&nbsp;Synchro Setup</span></span></button>
						</td>
						<td>
							<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='choosesetup(8)' >
							<span><span $styleoption>&nbsp;Sendreceive Setup</span></span></button>
						</td>
						<td>
							<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='choosesetup(9)' >
							<span><span $styleoption>&nbsp;Sorder Setup</span></span></button>
						</td>
						<td>
							<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='choosesetup(10)' >
							<span><span $styleoption>&nbsp;Sales Setup</span></span></button>
						</td> 
						<td>
							<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='choosesetup(12)' >
							<span><span $styleoption>&nbsp;Production Setup</span></span></button>
						</td> 
					</tr>
					<tr>
						<td>
							<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='choosesetup(13)' >
							<span><span $styleoption>PurchaseCharge Setup</span></span></button>
						</td>
						<td>
							<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='choosesetup(14)' >
							<span><span $styleoption>RMA Setup</span></span></button>
						</td>
						<td>
							<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='choosesetup(15)' >
							<span><span $styleoption>Receipt Setup</span></span></button>
						</td>
						<td>
							<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='choosesetup(16)' >
							<span><span $styleoption>Diffexchange Setup</span></span></button>
						</td>
						<td>
							<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='choosesetup(17)' >
							<span><span $styleoption>DeliveryStatus Setup</span></span></button>
						</td>
					</tr>
					
					<tr>
						<td>
							<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='choosesetup(18)' >
							<span><span $styleoption>Budget Setup</span></span></button>
						</td>
						<td>
							<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='choosesetup(19)' >
							<span><span $styleoption>Acc Type Setup</span></span></button>
						</td>
					</tr>
					<tr height:100px></tr><br>
					<tr><br>";
					//start subtab 
echo "		<td align=left colspan='5'>";
echo"  			<div class='tabber' id='tab1' style='width: 1100px; min-height:1000px; margin-left:-57px;  margin-top:10px; float:left; text-align:left;'> ";

					if($Tabnumber=='9'){
					// Tab= Sorder Setup
					 echo"	<div class='tabbertab'>
										<h2 title='Sorder setup'>Sorder Setup</h2>";
								echo"		<div id='datagrid-d1' style='width:1088px; height:1000px; margin-top:5px; border:0px solid gray;'>";
									echo"  		<table border='0' cellpadding='0' cellspacing='10' align='left' valign='center' style='padding-left:40px;width:1094px; height=820' >
																<col width=120>
																<col width=200>
																<col width=120>
																<col width=200>
																<col width=250>
																<tr>
																	<td></td><td></td><td></td><td></td>
																	<td align='right'>
																		<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='Updatesordersetup()' ><span><span>Save</span></span></button>
																	</td>
																</tr>
																
																<tr bgcolor='#F7F7F7'>
																	<td align='left'><span class='style1'> With Price Default</span></td>
																	<td>";
																		if($WithPriceDefault91==1){
																	echo"	<input type='radio' name='WithPriceDefault91' value='1' checked> yes
																			<input type='radio' name='WithPriceDefault91' value='0'  > no";}
																		else {
																	echo "	<input type='radio' name='WithPriceDefault91' value='1' > yes 
																			<input type='radio' name='WithPriceDefault91' value='0' checked > no";}
																	echo "</td>
																	<td align='left'><span class='style1'> ReportTitles</span></td>
																	<td>";
																		if($ReportTitles91==1){
																	echo"	<input type='radio' name='ReportTitles91' value='1' checked> yes
																			<input type='radio' name='ReportTitles91' value='0'  > no";}
																		else {
																	echo "	<input type='radio' name='ReportTitles91' value='1' > yes 
																			<input type='radio' name='ReportTitles91' value='0' checked > no";}
																	echo "</td>
																</tr>
																
																<tr bgcolor='#F7F7F7'>
																	<td align='left'><span class='style1'> Negative Qty</span></td>
																	<td>";
																		if($NEGATIVEQTY91==1){
																	echo"	<input type='radio' name='NEGATIVEQTY91' value='1' checked> yes
																			<input type='radio' name='NEGATIVEQTY91' value='0'  > no";}
																		else {
																	echo "	<input type='radio' name='NEGATIVEQTY91' value='1' > yes 
																			<input type='radio' name='NEGATIVEQTY91' value='0' checked > no";}
																	echo "</td>
																	<td align='left'><span class='style1'>Warranty Label</span></td>
																	<td><textarea  name='Warrantylabel91' id='Warrantylabel91' maxlength='151'style='font-size:12px; width:200px; '>$Warrantylabel91</textarea></td>	
																</tr>
																
																<tr bgcolor='#F7F7F7'>
																	<td align='left'><span class='style1'>Discount From Item Group</span></td>
																	<td>";
																		if($DiscountFromItemGroup91==1){
																	echo"	<input type='radio' name='DiscountFromItemGroup91' value='1' checked> yes
																			<input type='radio' name='DiscountFromItemGroup91' value='0'  > no";}
																		else {
																	echo "	<input type='radio' name='DiscountFromItemGroup91' value='1' > yes 
																			<input type='radio' name='DiscountFromItemGroup91' value='0' checked > no";}
																	echo "</td>
																	
																	<td align='left'><span class='style1'> Synchronized</span></td>
																	<td>";
																		if($Synchronized91==1){
																	echo"	<input type='radio' name='Synchronized91' value='1' checked> yes
																			<input type='radio' name='Synchronized91' value='0'  > no";}
																		else {
																	echo "	<input type='radio' name='Synchronized91' value='1' > yes 
																			<input type='radio' name='Synchronized91' value='0' checked > no";}
																	echo "</td>
																</tr>
																
																<tr bgcolor='#F7F7F7'>
																	<td align='left'><span class='style1'> Barcode</span></td>
																	<td>";
																		if($Barcode91==1){
																	echo"	<input type='radio' name='Barcode91' value='1' checked> yes
																			<input type='radio' name='Barcode91' value='0'  > no";}
																		else {
																	echo "	<input type='radio' name='Barcode91' value='1' > yes 
																			<input type='radio' name='Barcode91' value='0' checked > no";}
																	echo "</td>
																	<td align='left'><span class='style1'>Transfer Warehouse To</span></td>
																	<td><input type='text' name='Transfer_WarehouseTo91' id='Transfer_WarehouseTo91' value='$Transfer_WarehouseTo91' maxlength='15'style='font-size:12px; width:200px; '></td>	
																</tr>
																
																
																<tr bgcolor='#F7F7F7'>
																	<td align='left'><span class='style1'> EnableSorder Confirmed</span></td>
																	<td>";
																		if($EnableSorderConfirmed91==1){
																	echo"	<input type='radio' name='EnableSorderConfirmed91' value='1' checked> yes
																			<input type='radio' name='EnableSorderConfirmed91' value='0'  > no";}
																		else {
																	echo "	<input type='radio' name='EnableSorderConfirmed91' value='1' > yes 
																			<input type='radio' name='EnableSorderConfirmed91' value='0' checked > no";}
																	echo "</td>
																	<td align='left'><span class='style1'>VatAccount</span></td>
																	<td><input type='text' name='VatAccount91' id='VatAccount91' value='$VatAccount91' maxlength='10'style='font-size:12px; width:200px; '></td>	
																</tr>
																
																<tr bgcolor='#F7F7F7'>
																	<td align='left'><span class='style1'>Credit Curr</span></td>
																	<td><input type='text' name='CreditCur91' id='CreditCur91' value='$CreditCur91' maxlength='6'style='font-size:12px; width:200px; '></td>
																	<td align='left'><span class='style1'> Credit Curr Default </span></td>
																	<td>";
																		if($CreditCurdefault91==1){
																	echo"	<input type='radio' name='CreditCurdefault91' value='1' checked> yes
																			<input type='radio' name='CreditCurdefault91' value='0'  > no";}
																		else {
																	echo "	<input type='radio' name='CreditCurdefault91' value='1' > yes 
																			<input type='radio' name='CreditCurdefault91' value='0' checked > no";}
																	echo "</td>
																</tr>
																
																<tr bgcolor='#F7F7F7'>
																	<td align='left'><span class='style1'> Credit Account</span></td>
																	<td><input type='number'  name='CreditAccount91' id='CreditAccount91' value='$CreditAccount91' maxlength='10'style='font-size:12px; width:200px; '></td>	
																	<td align='left'><span class='style1'>Credit Account VAT</span></td>
																	<td><input type='text'  name='CreditAccountVAT91' id='CreditAccountVAT91' value='$CreditAccountVAT91' maxlength='10'style='font-size:12px; width:200px; '></td>	
																</tr>
																
																<tr bgcolor='#F7F7F7'>
																	<td align='left'><span class='style1'> Item Cliche </span></td>
																	<td><input type='number'  name='Item_Cliche91' id='Item_Cliche91' value='$Item_Cliche91' maxlength='20'style='font-size:12px; width:200px; '></td>	
																	<td align='left'><span class='style1'>Item DieCut</span></td>
																	<td><input type='text'  name='Item_DieCut91' id='Item_DieCut91' value='$Item_DieCut91' maxlength='20'style='font-size:12px; width:200px; '></td>	
																</tr>
																
																<tr bgcolor='#F7F7F7'>
																	<td align='left'><span class='style1'> Item ArtWork </span></td>
																	<td><input type='number'  name='Item_ArtWork91' id='Item_ArtWork91' value='$Item_ArtWork91' maxlength='20'style='font-size:12px; width:200px; '></td>	
																	<td align='left'><span class='style1'>Item Transport</span></td>
																	<td><input type='text'  name='Item_transport91' id='Item_transport91' value='$Item_transport91' maxlength='20'style='font-size:12px; width:200px; '></td>	
																</tr>
																
																<tr bgcolor='#F7F7F7'>
																	<td align='left'><span class='style1'>Qty Approximate</span></td>
																	<td>";
																		if($QtyApproximate91==1){
																	echo"	<input type='radio' name='QtyApproximate91' value='1' checked> yes
																			<input type='radio' name='QtyApproximate91' value='0'  > no";}
																		else {
																	echo "	<input type='radio' name='QtyApproximate91' value='1' > yes 
																			<input type='radio' name='QtyApproximate91' value='0' checked > no";}
																	echo "</td>
																	<td align='left'><span class='style1'>Transfer Warehouse To</span></td>
																	<td><input type='text' name='journal_Type91' id='journal_Type91' value='$journal_Type91' maxlength='2'style='font-size:12px; width:200px; '></td>	
																</tr>
																
																<tr bgcolor='#F7F7F7'>
																	<td align='left'><span class='style1'> Iso Description </span></td>
																	<td><textarea  name='IsoDescription91' id='IsoDescription91' maxlength='100'style='font-size:12px; width:200px; '>$IsoDescription91</textarea></td>	
																	<td align='left'><span class='style1'>Change Reference</span></td>
																	<td>";
																		if($Changerefernce91==1){
																	echo"	<input type='radio' name='Changerefernce91' value='1' checked> yes
																			<input type='radio' name='Changerefernce91' value='0'  > no";}
																		else {
																	echo "	<input type='radio' name='Changerefernce91' value='1' > yes 
																			<input type='radio' name='Changerefernce91' value='0' checked > no";}
																	echo "</td>	
																</tr>
																
																<tr bgcolor='#F7F7F7'>
																	<td align='left'><span class='style1'>Sorder Confirmed</span></td>
																	<td>";
																		if($Sorder_Confirmed91==1){
																	echo"	<input type='radio' name='Sorder_Confirmed91' value='1' checked> yes
																			<input type='radio' name='Sorder_Confirmed91' value='0'  > no";}
																		else {
																	echo "	<input type='radio' name='Sorder_Confirmed91' value='1' > yes 
																			<input type='radio' name='Sorder_Confirmed91' value='0' checked > no";}
																	echo "</td>
																	
																	<td align='left'><span class='style1'> Sorder Reserved Qty</span></td>
																	<td>";
																		if($Sorder_ReservedQty91==1){
																	echo"	<input type='radio' name='Sorder_ReservedQty91' value='1' checked> yes
																			<input type='radio' name='Sorder_ReservedQty91' value='0'  > no";}
																		else {
																	echo "	<input type='radio' name='Sorder_ReservedQty91' value='1' > yes 
																			<input type='radio' name='Sorder_ReservedQty91' value='0' checked > no";}
																	echo "</td>
																</tr>
																
																<tr bgcolor='#F7F7F7'>
																	<td align='left'><span class='style1'>Sorder PackPrice</span></td>
																	<td>";
																		if($Sorder_packPrice91==1){
																	echo"	<input type='radio' name='Sorder_packPrice91' value='1' checked> yes
																			<input type='radio' name='Sorder_packPrice91' value='0'  > no";}
																		else {
																	echo "	<input type='radio' name='Sorder_packPrice91' value='1' > yes 
																			<input type='radio' name='Sorder_packPrice91' value='0' checked > no";}
																	echo "</td>
																	<td align='left'><span class='style1'>Sorder bank1</span></td>
																	<td><textarea  name='sorder_bank191' id='sorder_bank191' maxlength='100'style='font-size:12px; width:200px; '>$sorder_bank191</textarea></td>	
																</tr>
																
																<tr bgcolor='#F7F7F7'>
																	<td align='left'><span class='style1'>Sorder bank2</span></td>
																	<td><textarea  name='sorder_bank291' id='sorder_bank291' maxlength='100'style='font-size:12px; width:200px; '>$sorder_bank291</textarea></td>
																	<td align='left'><span class='style1'>Sorder bank3</span></td>
																	<td><textarea  name='sorder_bank391' id='sorder_bank391' maxlength='100'style='font-size:12px; width:200px; '>$sorder_bank391</textarea></td>	
																</tr>
																
																<tr bgcolor='#F7F7F7'>
																	<td align='left'><span class='style1'>Show Costcent Layout</span></td>
																	<td>";
																		if($ShowCostCentLayout91==1){
																	echo"	<input type='radio' name='ShowCostCentLayout91' value='1' checked> yes
																			<input type='radio' name='ShowCostCentLayout91' value='0'  > no";}
																		else {
																	echo "	<input type='radio' name='ShowCostCentLayout91' value='1' > yes 
																			<input type='radio' name='ShowCostCentLayout91' value='0' checked > no";}
																	echo "</td>
																</tr>
																
																";
									echo"					</table>";
									echo"				</div>";      
									echo"			</div>";  
}


if($Tabnumber=='3'){
		//Tab= setup   
       echo"<div class='tabbertab'>
				<h2 title='GeneralSetup'>General Setup</h2>";
    
		echo"	<div id='datagrid-d' style='width:1090px; min-height:10000px; margin-top:5px; border:0px solid gray;'>";
			echo"  	<table border='0' cellpadding='0' cellspacing='10' align='left' valign='center' style='padding-left:0px; width:1000px; min-height=820' >
						<col width=120>
						<col width=200>
						<col width=120> 
						<col width=200> 
						<col width=250>";
			
			echo"	<tr bgcolor='#F7F7F7' height='25'>
						<td align='left'><span class='style1' >Company Name</span></td>
						<td align='left'><input type='text' name='COMPANY_NAME41' id='COMPANY_NAME41' value='$COMPANY_NAME41' maxlength='60' style='width:200px;'></td>
				
						<td align='left' valign='top'><span class='style1'>Company Telephone</span></td>
						<td align='left'><input type='text' name='COMPANY_TELEPHONE41' id='COMPANY_TELEPHONE41' value='$COMPANY_TELEPHONE41' maxlength='60' style='width:200px;'></td>
						
					</tr>";
				
			echo"	<tr bgcolor='#F7F7F7'>
						<td valign='center' align='left' valign='top'><span class='style1'>Company Memo</span></td>
						<td align='left'><textarea maxlength='255' name='Company_memo41' id='Company_memo41' rows='4' style='width:200px;'>$Company_memo41</textarea></td>
						<td valign='center' align='left' valign='top'><span class='style1'>COMPANY_LOGO</span>
							<br>&nbsp;&nbsp;&nbsp;<input type='file' name='COMPANY_LOGO41' id='COMPANY_LOGO41' style='width:250px;' accept='image/jpeg As image/gif As image/png As image/bmp'></td>
						<td align='left' rowspan='1'><img src='LogoFile.php' alt='Photo'name='$COMPANY_LOGO412' style='width:250px; height:110px;'></img></td>
					</tr>";
					
			echo"	<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>Company Fax</span></td>
						<td align='left'><input type='text' name='COMPANY_FAX41' id='COMPANY_FAX41' value='$COMPANY_FAX41' maxlength='15' style='width:200px;'></td>
						<td align='left'><span class='style1'>Company City</span></td>
						<td align='left'><input type='text' name='COMPANY_CITY41' id='COMPANY_CITY41' value='$COMPANY_CITY41' maxlength='30' style='width:200px;'></td>
						
					</tr>";		
					
			echo"	<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>Comapny State </span></td>
						<td align='left'><input type='text' name='COMPANY_STAT41' id='COMPANY_STAT41' value='$COMPANY_STAT41' maxlength='30' style='width:200px;'></td>
						<td align='left'><span class='style1'>Company Country</span></td>
						<td align='left'><input type='text' name='COMPANY_COUNTRY41' id='COMPANY_COUNTRY41' value='$COMPANY_COUNTRY41' maxlength='30' style='width:200px;'></td>
						
					</tr>";	
	


			echo"	<tr bgcolor='#F7F7F7' height='25'><td align='left'><span class='style1'>Currency Base1</span></td>";
				echo"	<td align='left'>
							<select name='BASE141' id='Base1' style='width:75px; height:22px;'>";
						echo"	<option></option>";
						
							while($curf=mysql_fetch_row($resultcurrency1)){
								echo"<option ";
									if ($BASE141==$curf[0]) 	echo " selected ";
									echo" value='$curf[0]'>$curf[0] </option>";}
					echo"	</select><span class='style1'>  Base2 </span><select name='BASE241' id='Base241' style='width:75px; height:22px;'>";
								echo"<option></option>";
								while($curf=mysql_fetch_row($resultcurrency2)){
									echo"<option ";
									if ($BASE241==$curf[0]) 	echo " selected ";
									echo" value='$curf[0]'>$curf[0] </option>";}
				echo"		</select>
						</td>
					</tr>";
	    
		
			echo"<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> Base1LessBase2</span></td>
					<td>";
							if($Base1LessBase241==1){
								echo"<input type='radio' name='Base1LessBase241' id='Base1LessBase241' value='1' checked> yes
									<input type='radio' name='Base1LessBase241' id='Base1LessBase241' value='0'> no";}
							else{
								echo"<input type='radio' name='Base1LessBase241' id='Base1LessBase241' value='1'> yes
									<input type='radio' name='Base1LessBase241' id='Base1LessBase241' value='0' checked> no";}
				echo"	</td>
					
					<td align='left'><span class='style1'>Decimal Base</span></td>
					<td align='left'><input type='text' name='DecimalBase41' id='DecimalBase41' value='$DecimalBase41' maxlength='11' style='width:200px;'></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> Decimalbase1 </span></td>
					<td><input type='text' name='Decimalbase141' id='Decimalbase141'value='$Decimalbase141' maxlength='11'  style='font-size:12px; width:200px; '></td>	
					
					<td align='left'><span class='style1'>Decimalbase2</span></td>
					<td align='left'><input type='text' name='Decimalbase241' id='Decimalbase241' value='$Decimalbase241' maxlength='11' style='width:200px;'></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> GVprinteddate_time </span></td>
					<td>";
						if($GVprinteddate_time41==1){
							echo"<input type='radio' name='GVprinteddate_time41' id='GVprinteddate_time41' value='1' checked> yes
									<input type='radio' name='GVprinteddate_time41' id='GVprinteddate_time41' value='0'> no";}
						else{
							echo"<input type='radio' name='GVprinteddate_time41' id='GVprinteddate_time41' value='1'> yes
								<input type='radio' name='GVprinteddate_time41' id='GVprinteddate_time41' value='0' checked> no";}
			echo"	</td>	
					
					<td align='left'><span class='style1'>JVprinteddate_time</span></td>
					<td>";
						if($JVprinteddate_time41==1){
							echo"<input type='radio' name='JVprinteddate_time41' id='JVprinteddate_time41' value='1' checked> yes
									<input type='radio' name='JVprinteddate_time41' id='JVprinteddate_time41' value='0'> no";}
						else{
							echo"<input type='radio' name='JVprinteddate_time41' id='JVprinteddate_time41' value='1'> yes
								<input type='radio' name='JVprinteddate_time41' id='JVprinteddate_time41' value='0' checked> no";}
			echo"	</td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> MainCompany </span></td>
					<td><input type='text' name='MainCompany41' id='MainCompany41'value='$MainCompany41' maxlength='50'  style='font-size:12px; width:200px; '></td>	
					
					<td align='left'><span class='style1'>Background_color</span></td>
					<td align='left'><input type='text' name='Background_color41' id='Background_color41' value='$Background_color41' maxlength='15' style='width:200px;'></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> Header_color </span></td>
					<td><input type='text' name='Header_color41' id='Header_color41'value='$Header_color41' maxlength='14'  style='font-size:12px; width:200px; '></td>	
					
					<td align='left'><span class='style1'>Logo_exist</span></td>
					<td>";
						if($Logo_exist41==1){
							echo"<input type='radio' name='Logo_exist41' id='Logo_exist41' value='1' checked> yes
									<input type='radio' name='Logo_exist41' id='Logo_exist41' value='0'> no";}
						else{
							echo"<input type='radio' name='Logo_exist41' id='Logo_exist41' value='1'> yes
								<input type='radio' name='Logo_exist41' id='Logo_exist41' value='0' checked> no";}
			echo"	</td>
				</tr>
			
				<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> CUSTOML </span></td>
					<td><input type='text' name='CUSTOML41' id='CUSTOML41'value='$CUSTOML41' maxlength='30'  style='font-size:12px; width:200px; '></td>	
					
					<td align='left'><span class='style1'>CUSTOMLMW</span></td>
					<td align='left'><input type='text' name='CUSTOMW41' id='CUSTOMW41' value='$CUSTOMW41' maxlength='30' style='width:200px;'></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> FolioByMonth </span></td>
					<td>";
						if($FolioByMonth41==1){
							echo"<input type='radio' name='FolioByMonth41' id='FolioByMonth41' value='1' checked> yes
									<input type='radio' name='FolioByMonth41' id='FolioByMonth41' value='0'> no";}
						else{
							echo"<input type='radio' name='FolioByMonth41' id='FolioByMonth41' value='1'> yes
								<input type='radio' name='FolioByMonth41' id='FolioByMonth41' value='0' checked> no";}
			echo"	</td>	
					
					<td align='left'><span class='style1'>Clientaccount</span></td>
					<td align='left'><input type='text' name='Clientaccount41' id='Clientaccount41' value='$Clientaccount41' maxlength='10' style='width:200px;'></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> Checkaccount </span></td>
					<td><input type='text' name='Checkaccount41' id='Checkaccount41' value='$Checkaccount41' maxlength='10'  style='font-size:12px; width:200px; '></td>	
					
					<td align='left'><span class='style1'>CreditLimitValue</span></td>
					<td align='left'><input type='number' min='0' name='CreditLimitValue41' id='CreditLimitValue41' value='$CreditLimitValue41' maxlength='11' style='width:200px;'></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> BillAccount</span></td>
					<td><input type='number' min='0' name='BillAccount41' id='BillAccount41' value='$BillAccount41' maxlength='10'style='font-size:12px; width:200px; '></td>	
					
					<td align='left'><span class='style1'>CashAccount</span></td>
					<td align='left'><input type='number' min='0' name='CashAccount41' id='CashAccount41' value='$CashAccount41' maxlength='10' style='width:200px;'></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'>ClientRetailAccount </span></td>
					<td><input type='text'  name='ClientRetailAccount41' id='ClientRetailAccount41' value='$ClientRetailAccount41' maxlength='10'style='font-size:12px; width:200px; '></td>	
					
					<td align='left'><span class='style1'>CheckRetailAccount</span></td>
					<td align='left'><input type='text'  name='CheckRetailAccount41' id='CheckRetailAccount41' value='$CheckRetailAccount41' maxlength='10' style='width:200px;'></td>
				</tr>
			
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'>BillRetailAccount </span></td>
					<td><input type='text'  name='BillRetailAccount41' id='BillRetailAccount41' value='$BillRetailAccount41' maxlength='10'style='font-size:12px; width:200px; '></td>	
					
					<td align='left'><span class='style1'>POSTTOVIEWER</span></td>
					<td>";
						if($POSTTOVIEWER41==1){
							echo"<input type='radio' name='POSTTOVIEWER41' id='POSTTOVIEWER41' value='1' checked> yes
									<input type='radio' name='POSTTOVIEWER41' id='POSTTOVIEWER41' value='0'> no";}
						else{
							echo"<input type='radio' name='POSTTOVIEWER41' id='POSTTOVIEWER41' value='1'> yes
								<input type='radio' name='POSTTOVIEWER41' id='POSTTOVIEWER41' value='0' checked> no";}
			echo"	</td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'>Setup_vatno </span></td>
					<td><input type='text'  name='Setup_vatno41' id='Setup_vatno41' value='$Setup_vatno41' maxlength='20'style='font-size:12px; width:200px; '></td>	
					
					<td align='left'><span class='style1'>Setup_Vatstartdate</span></td>
					<td align='left'><input type='date'  name='Setup_vatstartdate41' id='Setup_vatstartdate41' value='$Setup_vatstartdate41' maxlength='20' style='width:200px;'></td>
				</tr>

			
				<tr bgcolor='#F7F7F7'>
					<td valign='center' align='left'><span class='style1'>Setup_vatpercentage </span></td>
					<td><input type='number'  name='Setup_vatpercentage41' id='Setup_vatpercentage41' value='$Setup_vatpercentage41' maxlength='25'style='font-size:12px; width:200px; '></td>	
					
					<td align='left'><span class='style1'>COMPANY_LOGO1</span>
							<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='file' name='COMPANY_LOGO141' id='COMPANY_LOGO141' style='width:250px;' accept='image/jpeg As image/gif As image/png As image/bmp'></td>
					<td valign='center' align='left' rowspan='1'><img src='LogoFillecompanylogo2.php' alt='Photo'name='$COMPANY_LOGO1412' style='width:250px; height:110px;'></img></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'>SupplierFirstDigit </span></td>
					<td><input type='datetime'  name='SupplierFirstDigit41' id='SupplierFirstDigit41' value='$SupplierFirstDigit41' maxlength='10'style='font-size:12px; width:200px; '></td>	
					
					<td align='left'><span class='style1'>ClientFirstDigit</span></td>
					<td><input type='datetime'  name='ClientFirstDigit41' id='ClientFirstDigit41' value='$ClientFirstDigit41' maxlength='10'style='font-size:12px; width:200px; '></td>	
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'>SalesmenFirstDigit </span></td>
					<td><input type='datetime'  name='SalesmenFirstDigit41' id='SalesmenFirstDigit41' value='$SalesmenFirstDigit41' maxlength='10'style='font-size:12px; width:200px; '></td>	
					
					<td align='left'><span class='style1'>NbrOfDigitInLedger</span></td>
					<td><input type='datetime'  name='NbrOfDigitInLedger41' id='NbrOfDigitInLedger41' value='$NbrOfDigitInLedger41' maxlength='11'style='font-size:12px; width:200px; '></td>	
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'>SupplierLedgerDefault </span></td>
					<td>";
						if($SupplierLedgerDefault41==1){
							echo"<input type='radio' name='SupplierLedgerDefault41' id='SupplierLedgerDefault41' value='1' checked> yes
									<input type='radio' name='SupplierLedgerDefault41' id='SupplierLedgerDefault41' value='0'> no";}
						else{
							echo"<input type='radio' name='SupplierLedgerDefault41' id='SupplierLedgerDefault41' value='1'> yes
								<input type='radio' name='SupplierLedgerDefault41' id='SupplierLedgerDefault41' value='0' checked> no";}
			echo"	</td>	
					
					<td align='left'><span class='style1'>ClientLedgerDefault</span></td>
					<td>";
						if($ClientLedgerDefault41==1){
							echo"<input type='radio' name='ClientLedgerDefault41' id='ClientLedgerDefault41' value='1' checked> yes
									<input type='radio' name='ClientLedgerDefault41' id='ClientLedgerDefault41' value='0'> no";}
						else{
							echo"<input type='radio' name='ClientLedgerDefault41' id='ClientLedgerDefault41' value='1'> yes
								<input type='radio' name='ClientLedgerDefault41' id='ClientLedgerDefault41' value='0' checked> no";}
			echo"	</td>	
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'>SalesmenLedgerdDfault </span></td>
					<td>";
						if($SalesmenLedgerDefault41==1){
							echo"<input type='radio' name='SalesmenLedgerDefault41' id='SalesmenLedgerDefault41' value='1' checked> yes
									<input type='radio' name='SalesmenLedgerDefault41' id='SalesmenLedgerDefault41' value='0'> no";}
						else{
							echo"<input type='radio' name='SalesmenLedgerDefault41' id='SalesmenLedgerDefault41' value='1'> yes
								<input type='radio' name='SalesmenLedgerDefault41' id='SalesmenLedgerDefault41' value='0' checked> no";}
			echo"	</td>	
					
					<td align='left'><span class='style1'>ItemCodeDefault</span></td>
					<td>";
						if($ItemCodeDefault41==1){
							echo"<input type='radio' name='ItemCodeDefault41' id='ItemCodeDefault41' value='1' checked> yes
									<input type='radio' name='ItemCodeDefault41' id='ItemCodeDefault41' value='0'> no";}
						else{
							echo"<input type='radio' name='ItemCodeDefault41' id='ItemCodeDefault41' value='1'> yes
								<input type='radio' name='ItemCodeDefault41' id='ItemCodeDefault41' value='0' checked> no";}
			echo"	</td>	
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'>ItemCodeFirstDigit </span></td>
					<td><input type='datetime'  name='ItemCodeFirstDigit41' id='ItemCodeFirstDigit41' value='$ItemCodeFirstDigit41' maxlength='10'style='font-size:12px; width:200px; '></td>		
					
					<td align='left'><span class='style1'>NbrOfDigitInItem</span></td>
					<td><input type='datetime'  name='NbrOfDigitInItem41' id='NbrOfDigitInItem41' value='$NbrOfDigitInItem41' maxlength='11'style='font-size:12px; width:200px; '></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> DirectStock</span></td>
					<td>";
						if($DirectStock41==1){
							echo"<input type='radio' name='DirectStock41' id='DirectStock41' value='1' checked> yes
									<input type='radio' name='DirectStock41' id='DirectStock41' value='0'> no";}
						else{
							echo"<input type='radio' name='DirectStock41' id='DirectStock41' value='1'> yes
								<input type='radio' name='DirectStock41' id='DirectStock41' value='0' checked> no";}
			echo"	</td>	
					
					<td align='left'><span class='style1'>DirectStock_Debit</span></td>
					<td align='left'><input type='text'  name='DirectStock_Debit41' id='DirectStock_Debit41' value='$DirectStock_Debit41' maxlength='10' style='width:200px;'></td>
				</tr>
					
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> DirectStock_Credit</span></td>
					<td align='left'><input type='text'  name='DirectStock_Credit41' id='DirectStock_Credit41' value='$DirectStock_Credit41' maxlength='10' style='width:200px;'></td>
					
					<td align='left'><span class='style1'>DirectStock_Base</span></td>
					<td align='left'><input type='text'  name='DirectStock_Base41' id='DirectStock_Base41' value='$DirectStock_Base41' maxlength='10' style='width:200px;'></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> PrintedDate_Time</span></td>
					<td>";
						if($PrintedDate_Time41==1){
							echo"<input type='radio' name='PrintedDate_Time41' id='PrintedDate_Time41' value='1' checked> yes
									<input type='radio' name='PrintedDate_Time41' id='PrintedDate_Time41' value='0'> no";}
						else{
							echo"<input type='radio' name='PrintedDate_Time41' id='PrintedDate_Time41' value='1'> yes
								<input type='radio' name='PrintedDate_Time41' id='PrintedDate_Time41' value='0' checked> no";}
			echo"	</td>	
					
					<td align='left'><span class='style1'>CurrencyVatBase</span></td>
					<td align='left'><input type='text'  name='CurrencyVatBase41' id='CurrencyVatBase41' value='$CurrencyVatBase41' maxlength='10' style='width:200px;'></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> NbrOfDigitInItemCode</span></td>
					<td align='left'><input type='text'  name='NbrOfDigitInItemCode41' id='NbrOfDigitInItemCode41' value='$NbrOfDigitInItemCode41' maxlength='10' style='width:200px;'></td>
					
					<td align='left'><span class='style1'>SerialNo_RecordCount</span></td>
					<td align='left'><input type='text'  name='SerialNo_RecordCount41' id='SerialNo_RecordCount41' value='$SerialNo_RecordCount41' maxlength='10' style='width:200px;'></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> Item_NonActive</span></td>
					<td>";
						if($Item_NonActive41==1){
							echo"<input type='radio' name='Item_NonActive41' id='Item_NonActive41' value='1' checked> yes
									<input type='radio' name='Item_NonActive41' id='Item_NonActive41' value='0'> no";}
						else{
							echo"<input type='radio' name='Item_NonActive41' id='Item_NonActive41' value='1'> yes
								<input type='radio' name='Item_NonActive41' id='Item_NonActive41' value='0' checked> no";}
			echo"	</td>	
					
					<td align='left'><span class='style1'>PrintOption</span></td>
					<td>";
						if($PrintOption41==1){
							echo"<input type='radio' name='PrintOption41' id='PrintOption41' value='1' checked> yes
									<input type='radio' name='PrintOption41' id='PrintOption41' value='0'> no";}
						else{
							echo"<input type='radio' name='PrintOption41' id='PrintOption41' value='1'> yes
								<input type='radio' name='PrintOption41' id='PrintOption41' value='0' checked> no";}
			echo"	</td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> Itemcurrency</span></td>
					<td align='left'><input type='text'  name='Itemcurrency41' id='Itemcurrency41' value='$Itemcurrency41' maxlength='6' style='width:200px;'></td>
					
					<td align='left'><span class='style1'>PathArchive</span></td>
					<td align='left'><input type='text'  name='PathArchive41' id='PathArchive41' value='$PathArchive41' maxlength='10' style='width:200px;'></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'>Setup_MinBalancesBase1 </span></td>
					<td><input type='text'  name='Setup_MinBalancesBase141' id='Setup_MinBalancesBase141' value='$Setup_MinBalancesBase141' maxlength='10'style='font-size:12px; width:200px; '></td>	
					
					<td align='left'><span class='style1'>Setup_MinBalancesBase2</span></td>
					<td align='left'><input type='text'  name='Setup_MinBalancesBase241' id='Setup_MinBalancesBase241' value='$Setup_MinBalancesBase241' maxlength='10' style='width:200px;'></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'>DEFAULTL </span></td>
					<td><input type='text'  name='DEFAULTL41' id='DEFAULTL41' value='$DEFAULTL41' maxlength='10'style='font-size:12px; width:200px; '></td>	
					
					<td align='left'><span class='style1'>DEFAULTW</span></td>
					<td align='left'><input type='text'  name='DEFAULTW41' id='DEFAULTW41' value='$DEFAULTW41' maxlength='10' style='width:200px;'></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'>ITEMSEPERATOR </span></td>
					<td><input type='text'  name='ITEMSEPERATOR41' id='ITEMSEPERATOR41' value='$ITEMSEPERATOR41' maxlength='10'style='font-size:12px; width:200px; '></td>	
					
					<td align='left'><span class='style1'>SHOWSLIPNUMBER</span></td>
					<td>";
						if($SHOWSLIPNUMBER41==1){
							echo"<input type='radio' name='SHOWSLIPNUMBER41' id='SHOWSLIPNUMBER41' value='1' checked> yes
									<input type='radio' name='SHOWSLIPNUMBER41' id='SHOWSLIPNUMBER41' value='0'> no";}
						else{
							echo"<input type='radio' name='SHOWSLIPNUMBER41' id='SHOWSLIPNUMBER41' value='1'> yes
								<input type='radio' name='SHOWSLIPNUMBER41' id='SHOWSLIPNUMBER41' value='0' checked> no";}
			echo"	</td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'>PATHDATACOLLECTOR </span></td>
					<td><input type='datetime'  name='PATHDATACOLLECTOR41' id='PATHDATACOLLECTOR41' value='$PATHDATACOLLECTOR41' maxlength='100'style='font-size:12px; width:200px; '></td>	
					
					
					<td align='left'><span class='style1'>REMARKINV</span></td>
					<td align='left' rowspan='1'><textarea  name='ReportMsg41' id='ReportMsg41' maxlength='101' style='width:200px;'>$REMARKINV41</textarea></td>
				</tr>
			
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'>ITEMTARGETDATE </span></td>
					<td>";
						if($ITEMTARGETDATE41==1){
							echo"<input type='radio' name='ITEMTARGETDATE41' id='ITEMTARGETDATE41' value='1' checked> yes
									<input type='radio' name='ITEMTARGETDATE41' id='ITEMTARGETDATE41' value='0'> no";}
						else{
							echo"<input type='radio' name='ITEMTARGETDATE41' id='ITEMTARGETDATE41' value='1'> yes
								<input type='radio' name='ITEMTARGETDATE41' id='ITEMTARGETDATE41' value='0' checked> no";}
			echo"	</td>
					
					<td align='left'><span class='style1'>DIFFOFEXCHPOS</span></td>
					<td align='left'><input type='number' min='0'  name='DIFFOFEXCHPOS41' id='DIFFOFEXCHPOS41' value='$DIFFOFEXCHPOS41' maxlength='10' style='width:200px;'></td>
				</tr>
			
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> DIFFOFEXCHNEG</span></td>
					<td><input type='text'  name='DIFFOFEXCHNEG41' id='DIFFOFEXCHNEG41' value='$DIFFOFEXCHNEG41' maxlength='10'style='font-size:12px; width:200px; '></td>	
					
					<td align='left'><span class='style1'>DiscountAccount</span></td>
					<td><input type='text'  name='DiscountAccount41' id='DiscountAccount41' value='$DiscountAccount41' maxlength='11'style='font-size:12px; width:200px; '></td>	
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'>AfterDecimalRetailBase</span></td>
					<td><input type='text'  name='AfterDecimalRetailBase41' id='AfterDecimalRetailBase41' value='$AfterDecimalRetailBase41' maxlength='6'style='font-size:12px; width:200px; '></td>	
					
					<td align='left'><span class='style1'>AfterDecimalRetailBase1</span></td>
					<td align='left'><input type='text'  name='AfterDecimalRetailbase141' id='AfterDecimalRetailbase141' value='$AfterDecimalRetailbase141' maxlength='150' style='width:200px;'></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'>AfterDecimalRetailBase2</span></td>
					<td><input type='text'  name='AfterDecimalRetailbase241' id='AfterDecimalRetailbase241' value='$AfterDecimalRetailbase241' maxlength='6'style='font-size:12px; width:200px; '></td>	
					
					<td align='left'><span class='style1'>ReportMsg</span></td>
					<td align='left'><textarea  name='ReportMsg41' id='ReportMsg41' maxlength='101' style='width:200px;'>$ReportMsg41</textarea></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'>BeforeDecimalRetailBase</span></td>
					<td><input type='text'  name='BeforeDecimalRetailBase41' id='BeforeDecimalRetailBase41' value='$BeforeDecimalRetailBase41' maxlength='6'style='font-size:12px; width:200px; '></td>	
					
					<td align='left'><span class='style1'>BeforeDecimalRetailBase1</span></td>
					<td><input type='text'  name='BeforeDecimalRetailBase141' id='BeforeDecimalRetailBase141' value='$BeforeDecimalRetailBase141' maxlength='6'style='font-size:12px; width:200px; '></td>	
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'>BeforeDecimalRetailBase2</span></td>
					<td><input type='text'  name='BeforeDecimalRetailBase241' id='BeforeDecimalRetailBase241' value='$BeforeDecimalRetailBase241' maxlength='6'style='font-size:12px; width:200px; '></td>	
					
					<td align='left'><span class='style1'>Warehouse_Code</span></td>
					<td><input type='text'  name='Warehouse_Code41' id='Warehouse_Code41' value='$Warehouse_Code41' maxlength='6'style='font-size:12px; width:200px; '></td>	
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'>BeforeDecimalRetailBase2</span></td>
					<td><input type='text'  name='BeforeDecimalRetailBase241' id='BeforeDecimalRetailBase241' value='$BeforeDecimalRetailBase241' maxlength='6'style='font-size:12px; width:200px; '></td>	
					
					<td align='left'><span class='style1'>Warehouse_Code</span></td>
					<td><input type='text'  name='Warehouse_Code41' id='Warehouse_Code41' value='$Warehouse_Code41' maxlength='6'style='font-size:12px; width:200px; '></td>	
				</tr>
			
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> DigitRetailBase</span></td>
					<td><input type='number' step='any' min='0' name='DigitRetailBase41' id='DigitRetailBase41' value='$DigitRetailBase41'  style='font-size:12px; width:200px; '></td>	
				
					<td align='left'><span class='style1'>DigitRetailBase1</span></td>
					<td align='left'><input type='number' min='0'  max='9'  name='DigitRetailBase141' id='DigitRetailBase141' value='$DigitRetailBase141' maxlength='1' style='width:50px;'></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> DigitRetailBase2</span></td>
					<td><input type='number' step='any' min='0' name='DigitRetailBase241' id='DigitRetailBase241' value='$DigitRetailBase241'  style='font-size:12px; width:200px; '></td>	
				
					<td align='left'><span class='style1'>BeforeDigitRetailBase</span></td>
					<td align='left'><input type='number' min='0'  max='9'  name='BeforeDigitRetailBase41' id='BeforeDigitRetailBase41' value='$BeforeDigitRetailBase41' maxlength='1' style='width:50px;'></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> BeforeDigitRetailBase1</span></td>
					<td><input type='number' step='any' min='0' name='BeforeDigitRetailBase141' id='BeforeDigitRetailBase141' value='$BeforeDigitRetailBase141'  style='font-size:12px; width:200px; '></td>	
				
					<td align='left'><span class='style1'>BeforeDigitRetailBase2</span></td>
					<td align='left'><input type='number' min='0'  max='9'  name='BeforeDigitRetailBase241' id='BeforeDigitRetailBase241' value='$BeforeDigitRetailBase241' maxlength='1' style='width:50px;'></td>
				</tr>
			
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> DigitRetailBase2</span></td>
					<td><input type='number' step='any' min='0' name='DigitRetailBase241' id='DigitRetailBase241' value='$DigitRetailBase241'  style='font-size:12px; width:200px; '></td>	
				
					<td align='left'><span class='style1'>BeforeDigitRetailBase</span></td>
					<td align='left'><input type='number' min='0'  max='9'  name='BeforeDigitRetailBase41' id='BeforeDigitRetailBase41' value='$BeforeDigitRetailBase41' maxlength='1' style='width:50px;'></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> AfterDigitRetailBase</span></td>
					<td><input type='number' step='any' min='0' name='AfterDigitRetailBase41' id='AfterDigitRetailBase41' value='$AfterDigitRetailBase41'  style='font-size:12px; width:200px; '></td>	
				
					<td align='left'><span class='style1'>AfterDigitRetailBase1</span></td>
					<td align='left'><input type='number' min='0'  max='9'  name='AfterDigitRetailBase141' id='AfterDigitRetailBase141' value='$AfterDigitRetailBase141' maxlength='1' style='width:50px;'></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> AfterDigitRetailBase2</span></td>
					<td><input type='number' step='any' min='0' name='AfterDigitRetailBase241' id='AfterDigitRetailBase241' value='$AfterDigitRetailBase241'  style='font-size:12px; width:200px; '></td>	
				
					<td align='left'><span class='style1'>Setup_OfferMemo</span></td>
					<td><textarea step='any' min='0' name='Setup_OfferMemo41' id='Setup_OfferMemo41'  style='font-size:12px; width:200px; '>$Setup_OfferMemo41</textarea></td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> ChkCommissionAcc</span></td>
					<td><input type='text' step='any' min='0' name='ChkCommissionAcc41' id='ChkCommissionAcc41' value='$ChkCommissionAcc41' maxlength='11' style='font-size:12px; width:200px; '></td>	
				
				</tr>
			
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'>Salesttc</span></td>
					<td>";
						if($Salesttc41==1){
							echo"<input type='radio' name='Salesttc41' id='Salesttc41' value='1' checked> yes
									<input type='radio' name='Salesttc41' id='Salesttc41' value='0'> no";}
						else{
							echo"<input type='radio' name='Salesttc41' id='Salesttc41' value='1'> yes
								<input type='radio' name='Salesttc41' id='Salesttc41' value='0' checked> no";}
			echo"	</td>
					<td align='left'><span class='style1'>GROUP_DISPLAYCOLOR</span></td>
							<td>";
								if($GROUP_DISPLAYCOLOR41==1){
									echo"<input type='radio' name='GROUP_DISPLAYCOLOR41' id='GROUP_DISPLAYCOLOR41' value='1' checked> yes
											<input type='radio' name='GROUP_DISPLAYCOLOR41' id='GROUP_DISPLAYCOLOR41' value='0'> no";}
								else{
									echo"<input type='radio' name='GROUP_DISPLAYCOLOR41' id='GROUP_DISPLAYCOLOR41' value='1'> yes
										<input type='radio' name='GROUP_DISPLAYCOLOR41' id='GROUP_DISPLAYCOLOR41' value='0' checked> no";}
			echo"	</td>
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> StmtMessage</span></td>
					<td><textarea step='any' min='0' name='StmtMessage41' id='StmtMessage41'  style='font-size:12px; width:200px; '>$StmtMessage41</textarea></td>	
				
					<td align='left'><span class='style1'>Ndigitacctypeledger</span></td>
					<td><input type='number' step='any' min='0' name='Ndigitacctypeledger41' id='Ndigitacctypeledger41'  value='$Ndigitacctypeledger41' style='font-size:12px; width:200px; '></td>	
				</tr>
			
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> DelinventoryJvTransaction</span></td>
					<td>";
								if($DelinventoryJvTransaction41==1){
									echo"<input type='radio' name='DelinventoryJvTransaction41' id='DelinventoryJvTransaction41' value='1' checked> yes
											<input type='radio' name='DelinventoryJvTransaction41' id='DelinventoryJvTransaction41' value='0'> no";}
								else{
									echo"<input type='radio' name='DelinventoryJvTransaction41' id='DelinventoryJvTransaction41' value='1'> yes
										<input type='radio' name='DelinventoryJvTransaction41' id='DelinventoryJvTransaction41' value='0' checked> no";}
			echo"	</td>
				
					<td align='left'><span class='style1'>Journal_DefaultCur</span></td>
					<td><input type='text' step='any' min='0' name='Journal_DefaultCur41' id='Journal_DefaultCur41' value='$Journal_DefaultCur41' style='font-size:12px; width:200px; '></td>	
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> Supplier_DefaultCur</span></td>
					<td><input type='text' step='any' min='0' name='Supplier_DefaultCur41' id='Supplier_DefaultCur41' value='$Supplier_DefaultCur41'  style='font-size:12px; width:200px; '></td>
				
					<td align='left'><span class='style1'>Supplier_PaymentTerms</span></td>
					<td><input type='number' step='any' min='0' name='Supplier_PaymentTerms41' id='Supplier_PaymentTerms41'  value='$Supplier_PaymentTerms41' style='font-size:12px; width:200px; '></td>	
				</tr>
				
				<tr bgcolor='#F7F7F7'>
					<td align='left'><span class='style1'> Supplier_CreditLimit</span></td>
					<td><input type='number' step='any' min='0' name='Supplier_CreditLimit41' value='$Supplier_CreditLimit41' id='Supplier_CreditLimit41'  style='font-size:12px; width:200px; '></td>
				
					<td align='left'><span class='style1'>Client_DefaultCur </span></td>
					<td align='left'><input type='text'  name='Client_DefaultCur41' id='Client_DefaultCur41' value='$Client_DefaultCur41' maxlength='6' style='width:200px;'></td>
				</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'>Client Payment Terms </span></td>
				<td><input type='number' step='any' min='0'  name='Client_PaymentTerms41' id='Client_PaymentTerms41' value='$Client_PaymentTerms41' maxlength='25'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>Client Credit Limit</span></td>
				<td align='left'><input type='number' step='any' min='0' name='Client_CreditLimit41' id='Client_CreditLimit41' value='$Client_CreditLimit41' maxlength='60' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> Salesman Default Cur </span></td>
				<td ><input type='text'  name='Salesman_DefaultCur41' id='Salesman_DefaultCur41' value='$SalesmanDefaultCur41' maxlength='6' style='width:200px;'></td>
				<td align='left'><span class='style1'>Salesman Credit Limit </span></td>
				<td><input type='number' step='any' min='0'  name='Salesman_CreditLimit41' id='Salesman_CreditLimit41' value='$SalesmanCreditLimit41' style='font-size:12px; width:200px; '></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> Customer_CreditLimit </span></td>
				<td ><input type='text'  name='Customer_CreditLimit41' id='Customer_CreditLimit41' value='$Customer_CreditLimit41' maxlength='6' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> CustomerDefaultCur</span></td>
				<td ><input type='text'  name='Customer_DefaultCur41' id='Customer_DefaultCur41' value='$Customer_DefaultCur41' maxlength='6' style='width:200px;'></td>
				<td align='left'><span class='style1'>Customer Payment Terms</span></td>
				<td align='left'><input type='number'  step='any' min='0' name='Customer_PaymentTerms41' id='Customer_PaymentTerms41' value='$Customer_PaymentTerms41'  style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> Setup_Minbalances</span></td>
				<td align='left'><input type='number'  step='any' min='0' name='Setup_Minbalances41' id='Setup_Minbalances41' value='$Setup_Minbalances41'  style='width:200px;'></td>
				<td align='left'><span class='style1'>Setup_MinBalancesCur</span></td>
				<td align='left'><input type='text'  step='any' min='0' name='Setup_MinBalancesCur41' id='Setup_MinBalancesCur41' value='$Setup_MinBalancesCur41'  style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> LoadingElectricityPath</span></td>
				<td><textarea name='LoadingElectricityPath41' id='LoadingElectricityPath41'  maxlength='103' style='font-size:12px; width:200px; '>$LoadingElectricityPath41</textarea></td>
			
				<td align='left'><span class='style1'>StmtSignature </span></td>
				<td align='left'><textarea  name='StmtSignature41' id='StmtSignature41'  maxlength='151' style='width:200px;'>$StmtSignature41</textarea></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> Setup_PrintJVRef</span></td>
				<td>";
					if($Setup_PrintJVRef41==1){
						echo"<input type='radio' name='Setup_PrintJVRef41' id='Setup_PrintJVRef41' value='1' checked> yes
								<input type='radio' name='Setup_PrintJVRef41' id='Setup_PrintJVRef41' value='0'> no";}
					else{
						echo"<input type='radio' name='Setup_PrintJVRef41' id='Setup_PrintJVRef41' value='1'> yes
							<input type='radio' name='Setup_PrintJVRef41' id='Setup_PrintJVRef41' value='0' checked> no";}
		echo"	</td>
			
				<td align='left'><span class='style1'> Setup_PrintJVType</span></td>
				<td>";
					if($Setup_PrintJVType41==1){
						echo"<input type='radio' name='Setup_PrintJVType41' id='Setup_PrintJVType41' value='1' checked> yes
								<input type='radio' name='Setup_PrintJVType41' id='Setup_PrintJVType41' value='0'> no";}
					else{
						echo"<input type='radio' name='Setup_PrintJVType41' id='Setup_PrintJVType41' value='1'> yes
							<input type='radio' name='Setup_PrintJVType41' id='Setup_PrintJVType41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> Setup_PrintJVFolio</span></td>
				<td>";
					if($Setup_PrintJVFolio41==1){
						echo"<input type='radio' name='Setup_PrintJVFolio41' id='Setup_PrintJVFolio41' value='1' checked> yes
								<input type='radio' name='Setup_PrintJVFolio41' id='Setup_PrintJVFolio41' value='0'> no";}
					else{
						echo"<input type='radio' name='Setup_PrintJVFolio41' id='Setup_PrintJVFolio41' value='1'> yes
							<input type='radio' name='Setup_PrintJVFolio41' id='Setup_PrintJVFolio41' value='0' checked> no";}
		echo"	</td>
			
				<td align='left'><span class='style1'> CalcSellPriceForItems</span></td>
				<td>";
					if($CalcSellPriceForItems41==1){
						echo"<input type='radio' name='CalcSellPriceForItems41' id='CalcSellPriceForItems41' value='1' checked> yes
								<input type='radio' name='CalcSellPriceForItems41' id='CalcSellPriceForItems41' value='0'> no";}
					else{
						echo"<input type='radio' name='CalcSellPriceForItems41' id='CalcSellPriceForItems41' value='1'> yes
							<input type='radio' name='CalcSellPriceForItems41' id='CalcSellPriceForItems41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> SndRec_SenderName</span></td>
				<td><input type='text' step='any' min='0' name='SndRec_SenderName41' id='SndRec_SenderName41' maxlenght:'21' value='$SndRec_SenderName41' style='font-size:12px; width:200px; '></td>	
			
				<td align='left'><span class='style1'> Supplier_ValidateCur</span></td>
				<td>";
					if($Supplier_ValidateCur41==1){
						echo"<input type='radio' name='Supplier_ValidateCur41' id='Supplier_ValidateCur41' value='1' checked> yes
								<input type='radio' name='Supplier_ValidateCur41' id='Supplier_ValidateCur41' value='0'> no";}
					else{
						echo"<input type='radio' name='Supplier_ValidateCur41' id='Supplier_ValidateCur41' value='1'> yes
							<input type='radio' name='Supplier_ValidateCur41' id='Supplier_ValidateCur41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> Client_ValidateCur</span></td>
				<td>";
					if($Client_ValidateCur41==1){
						echo"<input type='radio' name='Client_ValidateCur41' id='Client_ValidateCur41' value='1' checked> yes
								<input type='radio' name='Client_ValidateCur41' id='Client_ValidateCur41' value='0'> no";}
					else{
						echo"<input type='radio' name='Client_ValidateCur41' id='Client_ValidateCur41' value='1'> yes
							<input type='radio' name='Client_ValidateCur41' id='Client_ValidateCur41' value='0' checked> no";}
		echo"	</td>
				<td align='left'><span class='style1'> Report_BelgToGrpByTrans</span></td>
				<td>";
					if($Report_BelgToGrpByTrans41==1){
						echo"<input type='radio' name='Report_BelgToGrpByTrans41' id='Report_BelgToGrpByTrans41' value='1' checked> yes
								<input type='radio' name='Report_BelgToGrpByTrans41' id='Report_BelgToGrpByTrans41' value='0'> no";}
					else{
						echo"<input type='radio' name='Report_BelgToGrpByTrans41' id='Report_BelgToGrpByTrans41' value='1'> yes
							<input type='radio' name='Report_BelgToGrpByTrans41' id='Report_BelgToGrpByTrans41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> DisplayDecimalName</span></td>
				<td>";
					if($DisplayDecimalName41==1){
						echo"<input type='radio' name='DisplayDecimalName41' id='DisplayDecimalName41' value='1' checked> yes
								<input type='radio' name='DisplayDecimalName41' id='DisplayDecimalName41' value='0'> no";}
					else{
						echo"<input type='radio' name='DisplayDecimalName41' id='DisplayDecimalName41' value='1'> yes
							<input type='radio' name='DisplayDecimalName41' id='DisplayDecimalName41' value='0' checked> no";}
		echo"	</td>
			
				<td align='left'><span class='style1'> PosttoItemviewer</span></td>
				<td>";
					if($PosttoItemviewer41==1){
						echo"<input type='radio' name='PosttoItemviewer41' id='PosttoItemviewer41' value='1' checked> yes
								<input type='radio' name='PosttoItemviewer41' id='PosttoItemviewer41' value='0'> no";}
					else{
						echo"<input type='radio' name='PosttoItemviewer41' id='PosttoItemviewer41' value='1'> yes
							<input type='radio' name='PosttoItemviewer41' id='PosttoItemviewer41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> Setup_Tax1Percentage</span></td>
				<td align='left'><input type='number'  step='any' min='0' name='Setup_Tax1Percentage41' id='Setup_Tax1Percentage41' value='$Setup_Tax1Percentage41'  style='width:200px;'></td>
				<td align='left'><span class='style1'>Setup_Tax2Percentage</span></td>
				<td align='left'><input type='number'  step='any' min='0' name='Setup_Tax2Percentage41' id='Setup_Tax2Percentage41' value='$Setup_Tax2Percentage41'  style='width:200px;'></td>
			</tr>
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> Setup_Tax3Percentage</span></td>
				<td align='left'><input type='number'  step='any' min='0' name='Setup_Tax3Percentage41' id='Setup_Tax3Percentage41' value='$Setup_Tax3Percentage41'  style='width:200px;'></td>
				<td align='left'><span class='style1'>Setup_Tax4Percentage</span></td>
				<td align='left'><input type='number'  step='any' min='0' name='Setup_Tax4Percentage41' id='Setup_Tax4Percentage41' value='$Setup_Tax4Percentage41'  style='width:200px;'></td>
			</tr>
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> Setup_Tax5Percentage</span></td>
				<td align='left'><input type='number'  step='any' min='0' name='Setup_Tax5Percentage41' id='Setup_Tax5Percentage41' value='$Setup_Tax5Percentage41'  style='width:200px;'></td>
				<td align='left'><span class='style1'>Setup Tax1 Active</span></td>
				<td>";
					if($Setup_Tax1Active41==1){
						echo"<input type='radio' name='Setup_Tax1Active41' id='Setup_Tax1Active41' value='1' checked> yes
								<input type='radio' name='Setup_Tax1Active41' id='Setup_Tax1Active41' value='0'> no";}
					else{
						echo"<input type='radio' name='Setup_Tax1Active41' id='Setup_Tax1Active41' value='1'> yes
							<input type='radio' name='Setup_Tax1Active41' id='Setup_Tax1Active41' value='0' checked> no";}
		echo"	</td>
			</tr>
			

			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> Setup Tax2 Active </span></td>
				<td>";
					if($Setup_Tax2Active41==1){
						echo"<input type='radio' name='Setup_Tax2Active41' id='Setup_Tax2Active41' value='1' checked> yes
								<input type='radio' name='Setup_Tax2Active41' id='Setup_Tax2Active41' value='0'> no";}
					else{
						echo"<input type='radio' name='Setup_Tax2Active41' id='Setup_Tax2Active41' value='1'> yes
							<input type='radio' name='Setup_Tax2Active41' id='Setup_Tax2Active41' value='0' checked> no";}
		echo"	</td>
				<td align='left'><span class='style1'>Setup  Tax3  Active </span></td>
				<td>";
					if($Setup_Tax3Active41==1){
						echo"<input type='radio' name='Setup_Tax3Active41' id='Setup_Tax3Active41' value='1' checked> yes
								<input type='radio' name='Setup_Tax3Active41' id='Setup_Tax3Active41' value='0'> no";}
					else{
						echo"<input type='radio' name='Setup_Tax3Active41' id='Setup_Tax3Active41' value='1'> yes
							<input type='radio' name='Setup_Tax3Active41' id='Setup_Tax3Active41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> Setup Tax4 Active </span></td>
				<td>";
					if($Setup_Tax4Active41==1){
						echo"<input type='radio' name='Setup_Tax4Active41' id='Setup_Tax4Active41' value='1' checked> yes
								<input type='radio' name='Setup_Tax4Active41' id='Setup_Tax4Active41' value='0'> no";}
					else{
						echo"<input type='radio' name='Setup_Tax4Active41' id='Setup_Tax4Active41' value='1'> yes
							<input type='radio' name='Setup_Tax4Active41' id='Setup_Tax4Active41' value='0' checked> no";}
		echo"	</td>
				<td align='left'><span class='style1'>Setup  Tax5  Active </span></td>
				<td>";
					if($Setup_Tax5Active41==1){
						echo"<input type='radio' name='Setup_Tax5Active41' id='Setup_Tax5Active41' value='1' checked> yes
							<input type='radio' name='Setup_Tax5Active41' id='Setup_Tax5Active41' value='0'> no";}
					else{
						echo"<input type='radio' name='Setup_Tax5Active41' id='Setup_Tax5Active41' value='1'> yes
							<input type='radio' name='Setup_Tax5Active41' id='Setup_Tax5Active41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Setup Tax1 Name </span></td>
				<td><input type='text'  name='Setup_Tax1Name41' id='Setup_Tax1Name41' value='$Setup_Tax1Name41' maxlength='31'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>Setup Tax2 Name </span></td>
				<td align='left'><input type='text'  name='Setup_Tax2Name41' id='Setup_Tax2Name41' value='$Setup_Tax2Name41' maxlength='31' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Setup Tax3 Name </span></td>
				<td><input type='text'  name='Setup_Tax3Name41' id='Setup_Tax3Name41' value='$Setup_Tax3Name41' maxlength='31'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>Setup Tax4 Name </span></td>
				<td align='left'><input type='text'  name='Setup_Tax4Name41' id='Setup_Tax4Name41' value='$Setup_Tax4Name41' maxlength='31' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> Setup Tax5 Name </span></td>
				<td><input type='text'  name='Setup_Tax5Name41' id='Setup_Tax5Name41' value='$Setup_Tax5Name41' maxlength='31'style='font-size:12px; width:200px; '></td>	
				<td align='left'><span class='style1'>DefaultProfitPer </span></td>
				<td align='left'><input type='number'   name='DefaultProfitPer41' id='DefaultProfitPer41' value='$DefaultProfitPer41' maxlength='11' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>	
				<td align='left'><span class='style1'>ProductionApp_AddQty </span></td>
				<td align='left'><input type='number'   name='ProductionApp_AddQty41' id='ProductionApp_AddQty41' value='$ProductionApp_AddQty41' maxlength='11' style='width:200px;'></td>
				<td align='left'><span class='style1'>Supplier_ValidateProject </span></td>
				<td>";
					if($Supplier_ValidateProject41==1){
						echo"<input type='radio' name='Supplier_ValidateProject41' id='Supplier_ValidateProject41' value='1' checked> yes
							<input type='radio' name='Supplier_ValidateProject41' id='Supplier_ValidateProject41' value='0'> no";}
					else{
						echo"<input type='radio' name='Supplier_ValidateProject41' id='Supplier_ValidateProject41' value='1'> yes
							<input type='radio' name='Supplier_ValidateProject41' id='Supplier_ValidateProject41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>	
				<td align='left'><span class='style1'>Client_ValidateProject </span></td>
				<td>";
					if($Client_ValidateProject41==1){
						echo"<input type='radio' name='Client_ValidateProject41' id='Client_ValidateProject41' value='1' checked> yes
							<input type='radio' name='Client_ValidateProject41' id='Client_ValidateProject41' value='0'> no";}
					else{
						echo"<input type='radio' name='Client_ValidateProject41' id='Client_ValidateProject41' value='1'> yes
							<input type='radio' name='Client_ValidateProject41' id='Client_ValidateProject41' value='0' checked> no";}
		echo"	</td>
				<td align='left'><span class='style1'>AddTaxesCurDefault </span></td>
				<td align='left'><input type='number'   name='AddTaxesCurDefault41' id='AddTaxesCurDefault41' value='$AddTaxesCurDefault41' maxlength='11' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'>LastDateLocked  </span></td>
				<td><input type='date' style='width:200px' name='LastDateLocked41' id='LastDateLocked41' value='$LastDateLocked41'></td>

				<td align='left'><span class='style1'>Item_MinQtyState</span></td>
				<td>";
					if($Item_MinQtyState41==1){
						echo"<input type='radio' name='Item_MinQtyState41' id='Item_MinQtyState41' value='1' checked> yes
							<input type='radio' name='Item_MinQtyState41' id='Item_MinQtyState41' value='0'> no";}
					else{
						echo"<input type='radio' name='Item_MinQtyState41' id='Item_MinQtyState41' value='1'> yes
							<input type='radio' name='Item_MinQtyState41' id='Item_MinQtyState41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> StmtOfItemRMaskQty</span></td>
				<td><input type='number'  name='StmtOfItemRMaskQty41' id='StmtOfItemRMaskQty41' value='$StmtOfItemRMaskQty41' maxlength='11'style='font-size:12px; width:200px; '></td>	
				<td align='left'><span class='style1'>ProfitPerItemsRMaskQty</span></td>
				<td align='left'><input type='number'  name='ProfitPerItemsRMaskQty41' id='ProfitPerItemsRMaskQty41' value='$ProfitPerItemsRMaskQty41' maxlength='11' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'>  Inventory R Mask qty</span></td>
				<td><input type='number'  name='InventoryRMaskqty41' id='InventoryRMaskqty41' value='$InventoryRMaskqty41' maxlength='11'style='font-size:12px; width:200px; '></td>	
				<td align='left'><span class='style1'>Client Sales R Mask Qty</span></td>
				<td align='left'><input type='number'  name='ClientSalesRMaskQty41' id='ClientSalesRMaskQty41' value='$ClientSalesRMaskQty41' maxlength='11' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Purchase R Mask Qty </span></td>
				<td><input type='number'  name='PurchaseRMaskQty41' id='PurchaseRMaskQty41' value='$PurchaseRMaskQty41' maxlength='11'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>ListTransactionRMaskQty </span></td>
				<td align='left'><input type='number'  name='ListTransactionRMaskQty41' id='ListTransactionRMaskQty41' value='$ListTransactionRMaskQty41' maxlength='11' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> PackingRMaskQty </span></td>
				<td><input type='number'  name='PackingRMaskQty41' id='PackingRMaskQty41' value='$PackingRMaskQty41' maxlength='11'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>SoldBySalesmanRMaskQty</span></td>
				<td align='left'><input type='number'  name='SoldBySalesmanRMaskQty41' id='SoldBySalesmanRMaskQty41' value='$SoldBySalesmanRMaskQty41' maxlength='11' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> ListofPreProdRMaskQty </span></td>
				<td><input type='number'  name='ListofPreProdRMaskQty41' id='ListofPreProdRMaskQty41' value='$ListofPreProdRMaskQty41' maxlength='11'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>ListOfProductionMaskQty</span></td>
				<td align='left'><input type='number'  name='ListOfProductionMaskQty41' id='ListOfProductionMaskQty41' value='$ListOfProductionMaskQty41' maxlength='11' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> UpdatedMeanCostRMaskQty </span></td>
				<td><input type='number'  name='UpdatedMeanCostRMaskQty41' id='UpdatedMeanCostRMaskQty41' value='$UpdatedMeanCostRMaskQty41' maxlength='11'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>SaleRMaskQty</span></td>
				<td align='left'><input type='number'  name='SaleRMaskQty41' id='SaleRMaskQty41' value='$SaleRMaskQty41' maxlength='11' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> YearlyRMaskQty </span></td>
				<td><input type='number'  name='YearlyRMaskQty41' id='YearlyRMaskQty41' value='$YearlyRMaskQty41' maxlength='11'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>PorderReportMaskQty</span></td>
				<td align='left'><input type='number'  name='PorderReportMaskQty41' id='PorderReportMaskQty41' value='$PorderReportMaskQty41' maxlength='11' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> InventryByEntryNoMaskQty </span></td>
				<td><input type='number'  name='InventryByEntryNoMaskQty41' id='InventryByEntryNoMaskQty41' value='$InventryByEntryNoMaskQty41' maxlength='11'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>ListOfDlvQtyMaskQty</span></td>
				<td align='left'><input type='number'  name='ListOfDlvQtyMaskQty41' id='ListOfDlvQtyMaskQty41' value='$ListOfDlvQtyMaskQty41' maxlength='11' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> SalesOrderRMaskQty </span></td>
				<td><input type='number'  name='SalesOrderRMaskQty41' id='SalesOrderRMaskQty41' value='$SalesOrderRMaskQty41' maxlength='11'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>MaskQty</span></td>
				<td align='left'><input type='number'  name='MaskQty41' id='MaskQty41' value='$MaskQty41' maxlength='11' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'>Setup_StmtOfAccCostcenter  </span></td>
				<td>";
					if($Setup_StmtOfAccCostcenter41==1){
						echo"<input type='radio' name='Setup_StmtOfAccCostcenter41' id='Setup_StmtOfAccCostcenter41' value='1' checked> yes
							<input type='radio' name='Setup_StmtOfAccCostcenter41' id='Setup_StmtOfAccCostcenter41' value='0'> no";}
					else{
						echo"<input type='radio' name='Setup_StmtOfAccCostcenter41' id='Setup_StmtOfAccCostcenter41' value='1'> yes
							<input type='radio' name='Setup_StmtOfAccCostcenter41' id='Setup_StmtOfAccCostcenter41' value='0' checked> no";}
		echo"	</td>

				<td align='left'><span class='style1'>Setup_StmtOfAccProject</span></td>
				<td>";
					if($Setup_StmtOfAccProject41==1){
						echo"<input type='radio' name='Setup_StmtOfAccProject41' id='Setup_StmtOfAccProject41' value='1' checked> yes
							<input type='radio' name='Setup_StmtOfAccProject41' id='Setup_StmtOfAccProject41' value='0'> no";}
					else{
						echo"<input type='radio' name='Setup_StmtOfAccProject41' id='Setup_StmtOfAccProject41' value='1'> yes
							<input type='radio' name='Setup_StmtOfAccProject41' id='Setup_StmtOfAccProject41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> Synchronized </span></td>
				<td>";
					if($Synchronized41==1){
						echo"<input type='radio' name='Synchronized41' id='Synchronized41' value='1' checked> yes
							<input type='radio' name='Synchronized41' id='Synchronized41' value='0'> no";}
					else{
						echo"<input type='radio' name='Synchronized41' id='Synchronized41' value='1'> yes
							<input type='radio' name='Synchronized41' id='Synchronized41' value='0' checked> no";}
		echo"	</td>
				
				
				<td align='left'><span class='style1'>Barcode </span></td>
				<td>";
					if($Barcode41==1){
						echo"<input type='radio' name='Barcode41' id='Barcode41' value='1' checked> yes
							<input type='radio' name='Barcode41' id='Barcode41' value='0'> no";}
					else{
						echo"<input type='radio' name='Barcode41' id='Barcode41' value='1'> yes
							<input type='radio' name='Barcode41' id='Barcode41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> Setup_TranslateLanguage </span></td>
				<td>";
					if($Setup_TranslateLanguage41==1){
						echo"<input type='radio' name='Setup_TranslateLanguage41' id='Setup_TranslateLanguage41' value='1' checked> yes
							<input type='radio' name='Setup_TranslateLanguage41' id='Setup_TranslateLanguage41' value='0'> no";}
					else{
						echo"<input type='radio' name='Setup_TranslateLanguage41' id='Setup_TranslateLanguage41' value='1'> yes
							<input type='radio' name='Setup_TranslateLanguage41' id='Setup_TranslateLanguage41' value='0' checked> no";}
		echo"	</td>
				<td align='left'><span class='style1'>CashReg_SlipBtmMsg</span></td>
				<td align='left' rowspan='1'>
					<textarea step='any' min='0' name='CashReg_SlipBtmMsg41' id='CashReg_SlipBtmMsg41'  style='font-size:12px; width:200px; '>$CashReg_SlipBtmMsg41</textarea>
				</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> DefaultChildCostcenter </span></td>
				<td>";
					if($DefaultChildCostcenter41==1){
						echo"<input type='radio' name='DefaultChildCostcenter41' id='DefaultChildCostcenter41' value='1' checked> yes
							<input type='radio' name='DefaultChildCostcenter41' id='DefaultChildCostcenter41' value='0'> no";}
					else{
						echo"<input type='radio' name='DefaultChildCostcenter41' id='DefaultChildCostcenter41' value='1'> yes
							<input type='radio' name='DefaultChildCostcenter41' id='DefaultChildCostcenter41' value='0' checked> no";}
		echo"	</td>
				
				
				<td align='left'><span class='style1'>DefaultChildProject </span></td>
				<td>";
					if($DefaultChildProject41==1){
						echo"<input type='radio' name='DefaultChildProject41' id='DefaultChildProject41' value='1' checked> yes
							<input type='radio' name='DefaultChildProject41' id='DefaultChildProject41' value='0'> no";}
					else{
						echo"<input type='radio' name='DefaultChildProject41' id='DefaultChildProject41' value='1'> yes
							<input type='radio' name='DefaultChildProject41' id='DefaultChildProject41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> ApplyJournal_JVRef </span></td>
				<td>";
					if($ApplyJournal_JVRef41==1){
						echo"<input type='radio' name='ApplyJournal_JVRef41' id='ApplyJournal_JVRef41' value='1' checked> yes
							<input type='radio' name='ApplyJournal_JVRef41' id='ApplyJournal_JVRef41' value='0'> no";}
					else{
						echo"<input type='radio' name='ApplyJournal_JVRef41' id='ApplyJournal_JVRef41' value='1'> yes
							<input type='radio' name='ApplyJournal_JVRef41' id='ApplyJournal_JVRef41' value='0' checked> no";}
		echo"	</td>
				
				<td align='left'><span class='style1'>ApplyLedger_Deactivate </span></td>
				<td>";
					if($ApplyLedger_Deactivate41==1){
						echo"<input type='radio' name='ApplyLedger_Deactivate41' id='ApplyLedger_Deactivate41' value='1' checked> yes
							<input type='radio' name='ApplyLedger_Deactivate41' id='ApplyLedger_Deactivate41' value='0'> no";}
					else{
						echo"<input type='radio' name='ApplyLedger_Deactivate41' id='ApplyLedger_Deactivate41' value='1'> yes
							<input type='radio' name='ApplyLedger_Deactivate41' id='ApplyLedger_Deactivate41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> Item_EnableDiscPer </span></td>
				<td>";
					if($Item_EnableDiscPer41==1){
						echo"<input type='radio' name='Item_EnableDiscPer41' id='Item_EnableDiscPer41' value='1' checked> yes
							<input type='radio' name='Item_EnableDiscPer41' id='Item_EnableDiscPer41' value='0'> no";}
					else{
						echo"<input type='radio' name='Item_EnableDiscPer41' id='Item_EnableDiscPer41' value='1'> yes
							<input type='radio' name='Item_EnableDiscPer41' id='Item_EnableDiscPer41' value='0' checked> no";}
		echo"	</td>

				<td align='left'><span class='style1'>SQLStockCalculation </span></td>
				<td>";
					if($SQLStockCalculation41==1){
						echo"<input type='radio' name='SQLStockCalculation41' id='SQLStockCalculation41' value='1' checked> yes
							<input type='radio' name='SQLStockCalculation41' id='SQLStockCalculation41' value='0'> no";}
					else{
						echo"<input type='radio' name='SQLStockCalculation41' id='SQLStockCalculation41' value='1'> yes
							<input type='radio' name='SQLStockCalculation41' id='SQLStockCalculation41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> JV_DefaultCostcenter </span></td>
				<td><input type='number'  name='JV_DefaultCostcenter41' id='JV_DefaultCostcenter41' value='$JV_DefaultCostcenter41' maxlength='11'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>JV_DefaultProject</span></td>
				<td align='left'><input type='number'  name='JV_DefaultProject41' id='JV_DefaultProject41' value='$JV_DefaultProject41' maxlength='11' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> UseLanguage </span></td>
				<td>";
					if($UseLanguage41==1){
						echo"<input type='radio' name='UseLanguage41' id='UseLanguage41' value='1' checked> yes
							<input type='radio' name='UseLanguage41' id='UseLanguage41' value='0'> no";}
					else{
						echo"<input type='radio' name='UseLanguage41' id='UseLanguage41' value='1'> yes
							<input type='radio' name='UseLanguage41' id='UseLanguage41' value='0' checked> no";}
		echo"	</td>

				<td align='left'><span class='style1'>AllowDateBiggerSysDate </span></td>
				<td>";
					if($AllowDateBiggerSysDate41==1){
						echo"<input type='radio' name='AllowDateBiggerSysDate41' id='AllowDateBiggerSysDate41' value='1' checked> yes
							<input type='radio' name='AllowDateBiggerSysDate41' id='AllowDateBiggerSysDate41' value='0'> no";}
					else{
						echo"<input type='radio' name='AllowDateBiggerSysDate41' id='AllowDateBiggerSysDate41' value='1'> yes
							<input type='radio' name='AllowDateBiggerSysDate41' id='AllowDateBiggerSysDate41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> Setup_printJvDate </span></td>
				<td>";
					if($Setup_printJvDate41==1){
						echo"<input type='radio' name='Setup_printJvDate41' id='Setup_printJvDate41' value='1' checked> yes
							<input type='radio' name='Setup_printJvDate41' id='Setup_printJvDate41' value='0'> no";}
					else{
						echo"<input type='radio' name='Setup_printJvDate41' id='Setup_printJvDate41' value='1'> yes
							<input type='radio' name='Setup_printJvDate41' id='Setup_printJvDate41' value='0' checked> no";}
		echo"	</td>

				<td align='left'><span class='style1'>JVModeAsLedger </span></td>
				<td>";
					if($JVModeAsLedger41==1){
						echo"<input type='radio' name='JVModeAsLedger41' id='JVModeAsLedger41' value='1' checked> yes
							<input type='radio' name='JVModeAsLedger41' id='JVModeAsLedger41' value='0'> no";}
					else{
						echo"<input type='radio' name='JVModeAsLedger41' id='JVModeAsLedger41' value='1'> yes
							<input type='radio' name='JVModeAsLedger41' id='JVModeAsLedger41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> CashReg_LastClosingDate </span></td>
				<td><input type='date' style='width:200px' name='CashReg_LastClosingDate41' id='CashReg_LastClosingDate41' value='$CashReg_LastClosingDate41'></td>
				<td align='left'><span class='style1'>RMA_In</span></td>
				<td align='left'><input type='text'  name='RMA_In41' id='RMA_In41' value='$RMA_In41' maxlength='15' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> RMA Out </span></td>
				<td><input type='text'  name='RMA_Out41' id='RMA_Out41' value='$RMA_Out41' maxlength='15'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>Salesman Is Ledger </span></td>
				<td>";
					if($Salesman_IsLedger41==1){
						echo"<input type='radio' name='Salesman_IsLedger41' id='Salesman_IsLedger41' value='1' checked> yes
							<input type='radio' name='Salesman_IsLedger41' id='Salesman_IsLedger41' value='0'> no";}
					else{
						echo"<input type='radio' name='Salesman_IsLedger41' id='Salesman_IsLedger41' value='1'> yes
							<input type='radio' name='Salesman_IsLedger41' id='Salesman_IsLedger41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> Ledger_ValidateProject </span></td>
				<td>";
					if($Ledger_ValidateProject41==1){
						echo"<input type='radio' name='Ledger_ValidateProject41' id='Ledger_ValidateProject41' value='1' checked> yes
							<input type='radio' name='Ledger_ValidateProject' id='Ledger_ValidateProject41' value='0'> no";}
					else{
						echo"<input type='radio' name='Ledger_ValidateProject41' id='Ledger_ValidateProject41' value='1'> yes
							<input type='radio' name='Ledger_ValidateProject41' id='Ledger_ValidateProject41' value='0' checked> no";}
		echo"	</td>
				<td align='left'><span class='style1'>UseApproximateQty</span></td>
				<td>";
					if($UseApproximateQty41==1){
						echo"<input type='radio' name='UseApproximateQty41' id='UseApproximateQty41' value='1' checked> yes
							<input type='radio' name='UseApproximateQty41' id='UseApproximateQty41' value='0'> no";}
					else{
						echo"<input type='radio' name='UseApproximateQty41' id='UseApproximateQty41' value='1'> yes
							<input type='radio' name='UseApproximateQty41' id='UseApproximateQty41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> ApproximatePercentage  </span></td>
				<td><input type='number' min='0' name='ApproximatePercentage41' id='ApproximatePercentage41' value='$ApproximatePercentage41' maxlength='11'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>  ApproximateQty </span></td>
				<td align='left'><input type='text'  name='ApproximateQty41' id='ApproximateQty41' value='$ApproximateQty41' maxlength='64' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> LedgerDeactivateInAcc </span></td>
				<td>";
					if($LedgerDeactivateInAcc41==1){
						echo"<input type='radio' name='LedgerDeactivateInAcc41' id='LedgerDeactivateInAcc41' value='1' checked> yes
							<input type='radio' name='LedgerDeactivateInAcc41' id='LedgerDeactivateInAcc41' value='0'> no";}
					else{
						echo"<input type='radio' name='LedgerDeactivateInAcc41' id='LedgerDeactivateInAcc41' value='1'> yes
							<input type='radio' name='LedgerDeactivateInAcc41' id='LedgerDeactivateInAcc41' value='0' checked> no";}
		echo"	</td>
				
				<td align='left'><span class='style1'>PagePath</span></td>
				<td align='left'><textarea  name='PagePath41' id='PagePath41'  maxlength='255' style='width:200px;'>$PagePath41</textarea></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>UsePagePath</span></td>
				<td>";
					if($UsePagePath41==1){
						echo"<input type='radio' name='UsePagePath41' id='UsePagePath41' value='1' checked> yes
							<input type='radio' name='UsePagePath41' id='UsePagePath41' value='0'> no";}
					else{
						echo"<input type='radio' name='UsePagePath41' id='UsePagePath41' value='1'> yes
							<input type='radio' name='UsePagePath41' id='UsePagePath41' value='0' checked> no";}
		echo"	</td>	
				
				<td align='left'><span class='style1'>NbrOfDigitInLedgerSalesmen</span></td>
				<td align='left'><input type='number' step='any' min='0' name='NbrOfDigitInLedgerSalesmen41' id='NbrOfDigitInLedgerSalesmen41' value='$NbrOfDigitInLedgerSalesmen41'  style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> NbrOfDigitInLedgerSupplier  </span></td>
				<td><input type='number'  name='NbrOfDigitInLedgerSupplier41' id='NbrOfDigitInLedgerSupplier41' value='$NbrOfDigitInLedgerSupplier41' maxlength='11'style='font-size:12px; width:200px; '></td>			
				<td align='left'><span class='style1'>Setup_ItemLoad </span></td>
				<td align='left'><textarea  maxlenght='255' name='Setup_ItemLoad41' id='Setup_ItemLoad41' maxlength='255' style='width:200px;'>$Setup_ItemLoad41</textarea></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> Path_LoadSales  </span></td>
				<td align='left'><textarea  name='Path_LoadSales41' id='Path_LoadSales41' maxlength='255' style='width:200px;'>$Path_LoadSales41</textarea></td>		
				<td align='left'><span class='style1'>setup_GCIExp </span></td>
				<td align='left'><textarea   name='setup_GCIExp41' id='setup_GCIExp41' maxlength='250' style='width:200px;'>$setup_GCIExp41</textarea></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> Path_ExportPrjGrpSub  </span></td>
				<td align='left'><textarea   name='Path_ExportPrjGrpSub41' id='Path_ExportPrjGrpSub41' maxlength='255' style='width:200px;'>$Path_ExportPrjGrpSub41</textarea></td>		
				<td align='left'><span class='style1'>Variant_Mode </span></td>
				<td align='left'><input type='number'   name='Variant_Mode41' id='Variant_Mode41' maxlength='11' style='width:200px;'value='$Variant_Mode41'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> Path_LoadSOF  </span></td>
				<td align='left'><textarea   name='Path_LoadSOF41' id='Path_LoadSOF41' maxlength='255' style='width:200px;'>$Path_LoadSOF41</textarea></td>		
				<td align='left'><span class='style1'>DefaultBase </span></td>
				<td align='left'><input type='number'   name='DefaultBase41' id='DefaultBase41' maxlength='11' style='width:200px;'value='$DefaultBase41'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> AccessLabels  </span></td>
				<td><input type='text'  name='AccessLabels41' id='AccessLabels41' value='$AccessLabels41' maxlength='64'style='font-size:12px; width:200px; '></td>	

				<td align='left'><span class='style1'>Iso_Logo</span><br>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='file' name='Iso_Logo41' id='Iso_Logo41' style='width:250px;' accept='image/jpeg As image/gif As image/png As image/bmp'></td>
				<td align='left' rowspan='1'><img src='LogoFilleiso.php' alt='Photo' name='$Iso_Logo411' style='width:250px; height:110px;'></img></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> IsoDescription  </span></td>
				<td><textarea  name='IsoDescription41' id='IsoDescription41'  maxlength='100'style='font-size:12px; width:200px; '>$IsoDescription41</textarea></td>	

				<td align='left'><span class='style1'>grid_color1 </span></td>
				<td align='left'><input type='text'  name='grid_color141' id='grid_color141' value='$grid_color141' maxlength='45' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>grid_color2 </span></td>
				<td align='left'><input type='text'  name='grid_color241' id='grid_color241' value='$grid_color241' maxlength='45' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> setup_branch  </span></td>
				<td align='left'><input type='text'  name='setup_branch41' id='setup_branch41' value='$setup_branch41' maxlength='20' style='width:200px;'></td>

				<td align='left'><span class='style1'>setup_salesjvtax </span></td>
				<td align='left'><input type='text'  name='setup_salesjvtax41' id='setup_salesjvtax41' value='$setup_salesjvtax41' maxlength='20' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> setup_purchasesjvtax  </span></td>
				<td align='left'><input type='text'  name='setup_purchasesjvtax41' id='setup_purchasesjvtax41' value='$setup_purchasesjvtax41' maxlength='10' style='width:200px;'></td>

				<td align='left'><span class='style1'>PrevShowThumbsStatment </span></td>
				<td>";
					if($PrevShowThumbsStatment41==1){
						echo"<input type='radio' name='PrevShowThumbsStatment41' id='PrevShowThumbsStatment41' value='1' checked> yes
							<input type='radio' name='PrevShowThumbsStatment41' id='PrevShowThumbsStatment41' value='0'> no";}
					else{
						echo"<input type='radio' name='PrevShowThumbsStatment41' id='PrevShowThumbsStatment41' value='1'> yes
							<input type='radio' name='PrevShowThumbsStatment41' id='PrevShowThumbsStatment41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> PrevShowThumbsTrialBalance  </span></td>
				<td>";
					if($PrevShowThumbsTrialBalance41==1){
						echo"<input type='radio' name='PrevShowThumbsTrialBalance41' id='PrevShowThumbsTrialBalance41' value='1' checked> yes
							<input type='radio' name='PrevShowThumbsTrialBalance41' id='PrevShowThumbsTrialBalance41' value='0'> no";}
					else{
						echo"<input type='radio' name='PrevShowThumbsTrialBalance41' id='PrevShowThumbsTrialBalance41' value='1'> yes
							<input type='radio' name='PrevShowThumbsTrialBalance41' id='PrevShowThumbsTrialBalance41' value='0' checked> no";}
		echo"	</td>

				<td align='left'><span class='style1'>PrevShowThumbsStatmentofItems </span></td>
				<td>";
					if($PrevShowThumbsStatmentofItems41==1){
						echo"<input type='radio' name='PrevShowThumbsStatmentofItems41' id='PrevShowThumbsStatmentofItems41' value='1' checked> yes
							<input type='radio' name='PrevShowThumbsStatmentofItems41' id='PrevShowThumbsStatmentofItems41' value='0'> no";}
					else{
						echo"<input type='radio' name='PrevShowThumbsStatmentofItems41' id='PrevShowThumbsStatmentofItems41' value='1'> yes
							<input type='radio' name='PrevShowThumbsStatmentofItems41' id='PrevShowThumbsStatmentofItems41' value='0' checked> no";}
		echo"	</td>
			</tr> 
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'> PrevShowThumbsSalesReport  </span></td>
				<td>";
					if($PrevShowThumbsSalesReport41==1){
						echo"<input type='radio' name='PrevShowThumbsSalesReport41' id='PrevShowThumbsSalesReport41' value='1' checked> yes
							<input type='radio' name='PrevShowThumbsSalesReport41' id='PrevShowThumbsSalesReport41' value='0'> no";}
					else{
						echo"<input type='radio' name='PrevShowThumbsSalesReport41' id='PrevShowThumbsSalesReport41' value='1'> yes
							<input type='radio' name='PrevShowThumbsSalesReport41' id='PrevShowThumbsSalesReport41' value='0' checked> no";}
		echo"	</td>

				<td align='left'><span class='style1'>PrevShowThumbsInventoryReport </span></td>
				<td>";
					if($PrevShowThumbsInventoryReport41==1){
						echo"<input type='radio' name='PrevShowThumbsInventoryReport41' id='PrevShowThumbsInventoryReport41' value='1' checked> yes
							<input type='radio' name='PrevShowThumbsInventoryReport41' id='PrevShowThumbsInventoryReport41' value='0'> no";}
					else{
						echo"<input type='radio' name='PrevShowThumbsInventoryReport41' id='PrevShowThumbsInventoryReport41' value='1'> yes
							<input type='radio' name='PrevShowThumbsInventoryReport41' id='PrevShowThumbsInventoryReport41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Setup_TipsMaxAmount</span></td>
				<td><input type='number'  name='Setup_TipsMaxAmount41' id='Setup_TipsMaxAmount41' value='$Setup_TipsMaxAmount41' maxlength='11'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>Setup_SorderMailMsg </span></td>
				<td align='left'><input type='number'  name='Setup_SorderMailMsg41' id='Setup_SorderMailMsg41' maxlength='255' style='width:200px;'>$Setup_SorderMailMsg41</textarea></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'>  CashReg_Weight</span></td>
				<td>";
					if($CashReg_Weight41==1){
						echo"<input type='radio' name='CashReg_Weight41' id='CashReg_Weight41' value='1' checked> yes
							<input type='radio' name='CashReg_Weight41' id='CashReg_Weight41' value='0'> no";}
					else{
						echo"<input type='radio' name='CashReg_Weight41' id='CashReg_Weight41' value='1'> yes
							<input type='radio' name='CashReg_Weight41' id='CashReg_Weight41' value='0' checked> no";}
		echo"	</td>
				
				
				<td align='left'><span class='style1'>CashReg Start Barcode</span></td>
				<td align='left'><input type='number' min='0' name='CashReg_StartBarcode41' id='CashReg_StartBarcode41' value='$CashReg_StartBarcode41' maxlength='11' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CashReg End Barcode  </span></td>
				<td><input type='number'  name='CashReg_EndBarcode41' id='CashReg_EndBarcode41' value='$CashReg_EndBarcode41' maxlength='11'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>CashReg Start Qty </span></td>
				<td align='left'><input type='text'  name='CashReg_StartQty41' id='CashReg_StartQty41' value='$CashReg_StartQty41' maxlength='20' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CashReg End Qty </span></td>
				<td><input type='number' step='any' min='0'  name='CashReg_EndQty41' id='CashReg_EndQty41' value='$CashReg_EndQty41' style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>setup_plu </span></td>
				<td><textarea name='Setup_plu41' id='setup_plu41' maxlength='100' style='font-size:12px; width:200px; '>$setup_plu41</textarea></td>	
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>setup_ItemDtGrid </span></td>
				<td><input type='number' step='any' min='0'  name='setup_ItemDtGrid41' id='setup_ItemDtGrid41' value='$setup_ItemDtGrid41' style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>CashReg_Price </span></td>
				<td>";
					if($CashReg_Price41==1){
						echo"<input type='radio' name='CashReg_Price41' id='CashReg_Price41' value='1' checked> yes
							<input type='radio' name='CashReg_Price41' id='CashReg_Price41' value='0'> no";}
					else{
						echo"<input type='radio' name='CashReg_Price41' id='CashReg_Price41' value='1'> yes
							<input type='radio' name='CashReg_Price41' id='CashReg_Price41' value='0' checked> no";}
		echo"	</td>	
			</tr>
			
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CashReg_StartPrice </span></td>
				<td><input type='number' step='any' min='0'  name='CashReg_StartPrice41' id='CashReg_StartPrice41' value='$CashReg_StartPrice41' style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>CashReg_EndPrice </span></td>
				<td><input type='number' step='any' min='0'  name='CashReg_EndPrice41' id='CashReg_EndPrice41' value='$CashReg_EndPrice41' style='font-size:12px; width:200px; '></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CashReg_DispLedMsg </span></td>
				<td><input type='text' step='any' min='0'  name='CashReg_DispLedMsg41' id='CashReg_DispLedMsg41' maxlength='20' value='$CashReg_DispLedMsg41' style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>companyseq_id </span></td>
				<td><input type='number' step='any' min='0'  name='companyseq_id41' id='companyseq_id41' value='$companyseq_id41' style='font-size:12px; width:200px; '></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>maxperpage </span></td>
				<td><input type='number' step='any' min='0'  name='maxperpage41' id='maxperpage41' maxlength='20' value='$maxperpage41' style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>Setup_LogoWidth </span></td>
				<td><input type='number' step='any' min='0'  name='Setup_LogoWidth41' id='Setup_LogoWidth41' value='$Setup_LogoWidth41' style='font-size:12px; width:200px; '></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Setup_LogoHeight </span></td>
				<td><input type='number' step='any' min='0'  name='Setup_LogoHeight41' id='Setup_LogoHeight41' maxlength='20' value='$Setup_LogoHeight41' style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>show_companylogo </span></td>
				<td>";
					if($show_companylogo41==1){
						echo"<input type='radio' name='show_companylogo41' id='show_companylogo41' value='1' checked> yes
							<input type='radio' name='show_companylogo41' id='show_companylogo41' value='0'> no";}
					else{
						echo"<input type='radio' name='show_companylogo41' id='show_companylogo41' value='1'> yes
							<input type='radio' name='show_companylogo41' id='show_companylogo41' value='0' checked> no";}
		echo"	</td>	
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'>show_companyname </span></td>
				<td>";
					if($show_companyname41==1){
						echo"<input type='radio' name='show_companyname41' id='show_companyname41' value='1' checked> yes
							<input type='radio' name='show_companyname41' id='show_companyname41' value='0'> no";}
					else{
						echo"<input type='radio' name='show_companyname41' id='show_companyname41' value='1'> yes
							<input type='radio' name='show_companyname41' id='show_companyname41' value='0' checked> no";}
		echo"	</td>	
			</tr>
			
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>show_printdatetime </span></td>
				<td>";
					if($show_printdatetime41==1){
						echo"<input type='radio' name='show_printdatetime41' id='show_printdatetime41' value='1' checked> yes
							<input type='radio' name='show_printdatetime41' id='show_printdatetime41' value='0'> no";}
					else{
						echo"<input type='radio' name='show_printdatetime41' id='show_printdatetime41' value='1'> yes
							<input type='radio' name='show_printdatetime41' id='show_printdatetime41' value='0' checked> no";}
		echo"	</td>	
		
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>show_companymemo </span></td>
				<td>";
					if($show_companymemo41==1){
						echo"<input type='radio' name='show_companymemo41' id='show_companymemo41' value='1' checked> yes
							<input type='radio' name='show_companymemo41' id='show_companymemo41' value='0'> no";}
					else{
						echo"<input type='radio' name='show_companymemo41' id='show_companymemo41' value='1'> yes
							<input type='radio' name='show_companymemo41' id='show_companymemo41' value='0' checked> no";}
		echo"	</td>	
				
				<td align='left'><span class='style1'>show_user </span></td>
				<td>";
					if($show_user41==1){
						echo"<input type='radio' name='show_user41' id='show_user41' value='1' checked> yes
							<input type='radio' name='show_user41' id='show_user41' value='0'> no";}
					else{
						echo"<input type='radio' name='show_user41' id='show_user41' value='1'> yes
							<input type='radio' name='show_user41' id='show_user41' value='0' checked> no";}
		echo"	</td>	
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>cashreg_colortheme </span></td>
				<td><input type='text' step='any' min='0'  name='cashreg_colortheme41' id='cashreg_colortheme41' maxlength='20' value='$cashreg_colortheme41' style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>Company_NameF </span></td>
				<td><input type='text' step='any' min='0'  name='Company_NameF41' id='Company_NameF41'  maxlength='60' value='$Company_NameF41' style='font-size:12px; width:200px; '></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Company_MemoF </span></td>
				<td><textarea step='any' min='0'  name='Company_MemoF41' id='Company_MemoF41' maxlength='255'  style='font-size:12px; width:200px; '>$Comapny_MemoF41</textarea></td>	
				
				<td align='left'><span class='style1'>Company_Capital </span></td>
				<td><input type='number' step='any' min='0'  name='Company_Capital41' id='Company_Capital41'  maxlength='60' value='$Company_Capital41' style='font-size:12px; width:200px; '></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Company_CapitalF </span></td>
				<td><textarea step='any' min='0'  name='Company_CapitalF41' id='Company_CapitalF41' maxlength='100'  style='font-size:12px; width:200px; '>$Company_CapitalF41</textarea></td>	
				
				<td align='left'><span class='style1'>Setup_MultiLangPrint </span></td>
				<td>";
					if($Setup_MultiLangPrint41==1){
						echo"<input type='radio' name='Setup_MultiLangPrint41' id='Setup_MultiLangPrint41' value='1' checked> yes
							<input type='radio' name='Setup_MultiLangPrint41' id='Setup_MultiLangPrint41' value='0'> no";}
					else{
						echo"<input type='radio' name='Setup_MultiLangPrint41' id='Setup_MultiLangPrint41' value='1'> yes
							<input type='radio' name='Setup_MultiLangPrint41' id='Setup_MultiLangPrint41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>report_color1 </span></td>
				<td><input type='text' step='any' min='0'  name='report_color141' id='report_color141' value='$report_color141' maxlength='45'  style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>report_color2 </span></td>
				<td><input type='number' step='any' min='0'  name='report_color241' id='report_color241'  maxlength='45' value='$report_color241' style='font-size:12px; width:200px; '></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>VATSufixLength </span></td>
				<td><input type='number' step='any' min='0'  name='VATSufixLength41' id='VATSufixLength41' value='$VATSufixLength41' maxlength='11'  style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>CashReg_BgColorOffer </span></td>
				<td><input type='text' step='any' min='0'  name='CashReg_BgColorOffer41' id='CashReg_BgColorOffer41'  maxlength='20' value='$CashReg_BgColorOffer41' style='font-size:12px; width:200px; '></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CashReg_BgColorQty </span></td>
				<td><input type='number' step='any' min='0'  name='CashReg_BgColorQty41' id='CashReg_BgColorQty41' value='$CashReg_BgColorQty41' maxlength='20'  style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>CashReg_BgColorOrderQty</span></td>
				<td><input type='text' step='any' min='0'  name='CashReg_BgColorOrderQty41' id='CashReg_BgColorOrderQty41'  maxlength='20' value='$CashReg_BgColorOrderQty41' style='font-size:12px; width:200px; '></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CashReg_BgColorZeroPrice </span></td>
				<td><input type='number' step='any' min='0'  name='CashReg_BgColorZeroPrice41' id='CashReg_BgColorZeroPrice41' value='$CashReg_BgColorZeroPrice41' maxlength='20'  style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>CashReg_BgColorZeroQty</span></td>
				<td><input type='text' step='any' min='0'  name='CashReg_BgColorZeroQty41' id='CashReg_BgColorZeroQty41'  maxlength='20' value='$CashReg_BgColorZeroQty41' style='font-size:12px; width:200px; '></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CashReg_BgColorHasDiscount </span></td>
				<td><input type='number' step='any' min='0'  name='CashReg_BgColorHasDiscount41' id='CashReg_BgColorHasDiscount41' value='$CashReg_BgColorHasDiscount41' maxlength='20'  style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>CashReg_RoundDivisor</span></td>
				<td><input type='number' step='any' min='0'  name='CashReg_RoundDivisor41' id='CashReg_RoundDivisor41'  maxlength='20' value='$CashReg_RoundDivisor41' style='font-size:12px; width:200px; '></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Setup_SlipFooter </span></td>
				<td><textarea step='any' min='0'  name='Setup_SlipFooter41' id='Setup_SlipFooter41' maxlength='255'  style='font-size:12px; width:200px; '>$Setup_SlipFooter41</textarea></td>	
				
				<td align='left'><span class='style1'>Setup_GenerateJvNoAmount</span></td>
				<td>";
					if($Setup_GenerateJvNoAmount41==1){
						echo"<input type='radio' name='Setup_GenerateJvNoAmount41' id='Setup_GenerateJvNoAmount41' value='1' checked> yes
							<input type='radio' name='Setup_GenerateJvNoAmount41' id='Setup_GenerateJvNoAmount41' value='0'> no";}
					else{
						echo"<input type='radio' name='Setup_GenerateJvNoAmount41' id='Setup_GenerateJvNoAmount41' value='1'> yes
							<input type='radio' name='Setup_GenerateJvNoAmount41' id='Setup_GenerateJvNoAmount41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CashReg_ApplyColorOffer </span></td>
				<td>";
					if($CashReg_ApplyColorOffer41==1){
						echo"<input type='radio' name='CashReg_ApplyColorOffer41' id='CashReg_ApplyColorOffer41' value='1' checked> yes
							<input type='radio' name='CashReg_ApplyColorOffer41' id='CashReg_ApplyColorOffer41' value='0'> no";}
					else{
						echo"<input type='radio' name='CashReg_ApplyColorOffer41' id='CashReg_ApplyColorOffer41' value='1'> yes
							<input type='radio' name='CashReg_ApplyColorOffer41' id='CashReg_ApplyColorOffer41' value='0' checked> no";}
		echo"	</td>
				
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CashReg_ApplyColorOrder </span></td>
				<td>";
					if($CashReg_ApplyColorOrder41==1){
						echo"<input type='radio' name='CashReg_ApplyColorOrder41' id='CashReg_ApplyColorOrder41' value='1' checked> yes
							<input type='radio' name='CashReg_ApplyColorOrder41' id='CashReg_ApplyColorOrder41' value='0'> no";}
					else{
						echo"<input type='radio' name='CashReg_ApplyColorOrder41' id='CashReg_ApplyColorOrder41' value='1'> yes
							<input type='radio' name='CashReg_ApplyColorOrder41' id='CashReg_ApplyColorOrder41' value='0' checked> no";}
		echo"	</td>
				
				<td align='left'><span class='style1'>CashReg_ApplyColorZero</span></td>
				<td>";
					if($CashReg_ApplyColorQty41==1){
						echo"<input type='radio' name='CashReg_ApplyColorQty41' id='CashReg_ApplyColorQty41' value='1' checked> yes
							<input type='radio' name='CashReg_ApplyColorQty41' id='CashReg_ApplyColorQty41' value='0'> no";}
					else{
						echo"<input type='radio' name='CashReg_ApplyColorQty41' id='CashReg_ApplyColorQty41' value='1'> yes
							<input type='radio' name='CashReg_ApplyColorQty41' id='CashReg_ApplyColorQty41' value='0' checked> no";}
		echo"	</td>
			</tr> 
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CashReg_ApplyColorOrderQty </span></td>
				<td>";
					if($CashReg_ApplyColorOrderQty41==1){
						echo"<input type='radio' name='CashReg_ApplyColorOrderQty41' id='CashReg_ApplyColorOrderQty41' value='1' checked> yes
							<input type='radio' name='CashReg_ApplyColorOrderQty41' id='CashReg_ApplyColorOrderQty41' value='0'> no";}
					else{
						echo"<input type='radio' name='CashReg_ApplyColorOrderQty41' id='CashReg_ApplyColorOrderQty41' value='1'> yes
							<input type='radio' name='CashReg_ApplyColorOrderQty41' id='CashReg_ApplyColorOrderQty41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CashReg_ApplyColorZeroPrice </span></td>
				<td>";
					if($CashReg_ApplyColorZeroPrice41==1){
						echo"<input type='radio' name='CashReg_ApplyColorZeroPrice41' id='CashReg_ApplyColorZeroPrice41' value='1' checked> yes
							<input type='radio' name='CashReg_ApplyColorZeroPrice41' id='CashReg_ApplyColorZeroPrice41' value='0'> no";}
					else{
						echo"<input type='radio' name='CashReg_ApplyColorZeroPrice41' id='CashReg_ApplyColorZeroPrice41' value='1'> yes
							<input type='radio' name='CashReg_ApplyColorZeroPrice41' id='CashReg_ApplyColorZeroPrice41' value='0' checked> no";}
		echo"	</td>
				
				<td align='left'><span class='style1'>CashReg_ApplyColorZeroQty</span></td>
				<td>";
					if($CashReg_ApplyColorZeroQty41==1){
						echo"<input type='radio' name='CashReg_ApplyColorZeroQty41' id='CashReg_ApplyColorZeroQty41' value='1' checked> yes
							<input type='radio' name='CashReg_ApplyColorZeroQty41' id='CashReg_ApplyColorZeroQty41' value='0'> no";}
					else{
						echo"<input type='radio' name='CashReg_ApplyColorZeroQty41' id='CashReg_ApplyColorZeroQty41' value='1'> yes
							<input type='radio' name='CashReg_ApplyColorZeroQty41' id='CashReg_ApplyColorZeroQty41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CashReg_ApplyColorHasDiscount </span></td>
				<td>";
					if($CashReg_ApplyColorHasDiscount41==1){
						echo"<input type='radio' name='CashReg_ApplyColorHasDiscount41' id='CashReg_ApplyColorHasDiscount41' value='1' checked> yes
							<input type='radio' name='CashReg_ApplyColorHasDiscount41' id='CashReg_ApplyColorHasDiscount41' value='0'> no";}
					else{
						echo"<input type='radio' name='CashReg_ApplyColorHasDiscount41' id='CashReg_ApplyColorHasDiscount41' value='1'> yes
							<input type='radio' name='CashReg_ApplyColorHasDiscount41' id='CashReg_ApplyColorHasDiscount41' value='0' checked> no";}
		echo"	</td>
				
				<td align='left'><span class='style1'>Setup_LicenseNo</span></td>
				<td>";
					if($Setup_LicenseNo41==1){
						echo"<input type='radio' name='Setup_LicenseNo41' id='Setup_LicenseNo41' value='1' checked> yes
							<input type='radio' name='Setup_LicenseNo41' id='Setup_LicenseNo41' value='0'> no";}
					else{
						echo"<input type='radio' name='Setup_LicenseNo41' id='Setup_LicenseNo41' value='1'> yes
							<input type='radio' name='Setup_LicenseNo41' id='Setup_LicenseNo41' value='0' checked> no";}
		echo"	</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Setup_ClientSerialNo </span></td>
				<td>";
					if($Setup_ClientSerialNo41==1){
						echo"<input type='radio' name='Setup_ClientSerialNo41' id='Setup_ClientSerialNo41' value='1' checked> yes
							<input type='radio' name='Setup_ClientSerialNo41' id='Setup_ClientSerialNo41' value='0'> no";}
					else{
						echo"<input type='radio' name='Setup_ClientSerialNo41' id='Setup_ClientSerialNo41' value='1'> yes
							<input type='radio' name='Setup_ClientSerialNo41' id='Setup_ClientSerialNo41' value='0' checked> no";}
		echo"	</td>
				
				<td align='left'><span class='style1'>discount_amount</span></td>
				<td><input type='number' step='any' min='0'  name='discount_amount41' id='discount_amount41'  maxlength='20' value='$discount_amount41' style='font-size:12px; width:200px; '></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>keyboardfocus </span></td>
				<td>";
					if($keyboardfocus41==1){
						echo"<input type='radio' name='keyboardfocus41' id='keyboardfocus41' value='1' checked> yes
							<input type='radio' name='keyboardfocus41' id='keyboardfocus41' value='0'> no";}
					else{
						echo"<input type='radio' name='keyboardfocus41' id='keyboardfocus41' value='1'> yes
							<input type='radio' name='keyboardfocus41' id='keyboardfocus41' value='0' checked> no";}
		echo"	</td>
			
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Setup_TransShowLedger </span></td>
				<td>";
					if($Setup_TransShowLedger41==1){
						echo"<input type='radio' name='Setup_TransShowLedger41' id='Setup_TransShowLedger41' value='1' checked> yes
							<input type='radio' name='Setup_TransShowLedger41' id='Setup_TransShowLedger41' value='0'> no";}
					else{
						echo"<input type='radio' name='Setup_TransShowLedger41' id='Setup_TransShowLedger41' value='1'> yes
							<input type='radio' name='Setup_TransShowLedger41' id='Setup_TransShowLedger41' value='0' checked> no";}
		echo"	</td>
				
				<td align='left'><span class='style1'>category_order</span></td>
				<td><input type='number' step='any' min='0'  name='category_order41' id='category_order41'  maxlength='64' value='$category_order41' style='font-size:12px; width:200px; '></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'>category_length </span></td>
				<td><input type='number' step='any' min='0'  name='category_length41' id='category_length41'  maxlength='64' value='$category_length41' style='font-size:12px; width:200px; '></td>
				
				<td align='left'><span class='style1'>group_order</span></td>
				<td><input type='number' step='any' min='0'  name='group_order41' id='group_order41'  maxlength='64' value='$group_order41' style='font-size:12px; width:200px; '></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'>group_length </span></td>
				<td><input type='number' step='any' min='0'  name='group_length41' id='group_length41'  maxlength='64' value='$group_length41' style='font-size:12px; width:200px; '></td>
				
				<td align='left'><span class='style1'>subgroup_order</span></td>
				<td><input type='number' step='any' min='0'  name='subgroup_order41' id='subgroup_order41'  maxlength='64' value='$subgroup_order41' style='font-size:12px; width:200px; '></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'>subgroup_length </span></td>
				<td><input type='number' step='any' min='0'  name='subgroup_length41' id='subgroup_length41'  maxlength='64' value='$subgroup_length41' style='font-size:12px; width:200px; '></td>
				
				<td align='left'><span class='style1'>remaining_length</span></td>
				<td><input type='number' step='any' min='0'  name='remaining_length41' id='remaining_length41'  maxlength='64' value='$remaining_length41' style='font-size:12px; width:200px; '></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'>delivery_maxrecords </span></td>
				<td><input type='number' step='any' min='0'  name='delivery_maxrecords41' id='delivery_maxrecords41'  maxlength='64' value='$delivery_maxrecords41' style='font-size:12px; width:200px; '></td>
				
				<td align='left'><span class='style1'>journal_setup</span></td>
				<td><textarea step='any' min='0'  name='journal_setup41' id='journal_setup41'  maxlength='200' style='font-size:12px; width:200px; '>$journal_setup41</textarea></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'>
				<td align='left'><span class='style1'>serialNb_quantity_setup </span></td>
				<td>";
					if($serialNb_quantity_setup41==1){
						echo"<input type='radio' name='serialNb_quantity_setup41' id='serialNb_quantity_setup41' value='1' checked> yes
							<input type='radio' name='serialNb_quantity_setup41' id='serialNb_quantity_setup41' value='0'> no";}
					else{
						echo"<input type='radio' name='serialNb_quantity_setup41' id='serialNb_quantity_setup41' value='1'> yes
							<input type='radio' name='serialNb_quantity_setup41' id='serialNb_quantity_setup41' value='0' checked> no";}
		echo"	</td>
				
				<td></td>
			</tr>";
		
echo"		</table>	
		</div>
	</div>";
	
}

if($Tabnumber=='11'){
		//Tab= Purchase Setup Tab here
   echo"<div class='tabbertab'>
			<h2 title='purshasesetup'>Purshase Setup </h2>";
	echo"	<div id='datagrid-d1' style='width:1088px; height:2275px; margin-top:5px; border:0px solid gray;'>";
				
		echo"  	<table border='0' cellpadding='0' cellspacing='10' align='left' valign='center' style='padding-left:40px;width:1000px; height=820' >
					<col width=120>
					<col width=200>
					<col width=120> 
					<col width=200>
					<col width=250>";
				
			echo"	
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Warehouse </span></td>
						<td><input type='text'  name='Warehouse31' id='Warehouse31' value='$Warehouse31' maxlength='15'style='font-size:12px; width:200px; '></td>	
						
						<td align='left'><span class='style1'>  Project </span></td>
						<td align='left'><input type='text'  name='Project31' id='Project31' value='$Project31' maxlength='15' style='width:200px;'></td>
					</tr>
			
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Costcenter </span></td>
						<td><input type='text'  name='Costcenter31' id='Costcenter31' value='$Costcenter31' maxlength='15'style='font-size:12px; width:200px; '></td>	
						
						<td align='left'><span class='style1'>PaymentMode</span></td>
						<td align='left'><input  type='number' min='0' step='0.01' name='PaymentMode31' id='PaymentMode31' value='$PaymentMode31'  style='width:200px;'></td>
				
					</tr>
			
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Charges</span></td>
						<td>";
							if($Charges31==1){
								echo"<input type='radio' name='Charges31' id='Charges31' value='1' checked> yes
									<input type='radio' name='Charges31' id='Charges31' value='0'> no";}
							else{
								echo"<input type='radio' name='Charges31' id='Charges31' value='1'> yes
									<input type='radio' name='Charges31' id='Charges31' value='0' checked> no";}
								
				echo"	</td>
						<td align='left'><span class='style1'>SupplierCur</span></td>
						<td align='left'><input type='text'  name='SupplierCur31' id='SupplierCur31' value='$SupplierCur31' maxlength='6' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>SupplierAccount</span></td>
						<td align='left'><input type='text'  name='SupplierAccount31' id='SupplierAccount31' value='$SupplierAccount31' maxlength='6' style='width:200px;'></td>
					
						<td align='left'><span class='style1'>FreightCur</span></td>
						<td align='left'><input type='text'  name='FreightCur31' id='FreightCur31' value='$FreightCur31' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>FreightCurDefault</span></td>
						<td>";
							if($FreightCurDefault31==1){
								echo"<input type='radio' name='FreightCurDefault31' id='FreightCurDefault31' value='1' checked> yes
									<input type='radio' name='FreightCurDefault31' id='FreightCurDefault31' value='0'> no";}
							else{
								echo"<input type='radio' name='FreightCurDefault31' id='FreightCurDefault31' value='1'> yes
									<input type='radio' name='FreightCurDefault31' id='FreightCurDefault31' value='0' checked> no";}
								
				echo"	</td>
					
						<td align='left'><span class='style1'>FreightDebitAccount</span></td>
						<td align='left'><input type='text'  name='FreightDebitAccount31' id='FreightDebitAccount31' value='$FreightDebitAccount31' maxlength='10' style='width:200px;'></td>
					</tr>
					
			
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>FreightCreditAccount</span></td>
						<td align='left'><input type='text'  name='FreightCreditAccount31' id='FreightCreditAccount31' value='$FreightCreditAccount31' maxlength='10' style='width:200px;'></td>
						<td align='left'><span class='style1'>Chargeaccount</span></td>
						<td align='left'><input type='text'  name='Chargeaccount31' id='Chargeaccount31' value='$Chargeaccount31' maxlength='10' style='width:200px;'></td>
					</tr>
					<tr>
						<td align='left'><span class='style1'>ChargeaccountCur</span></td>
						<td align='left'><input type='text'  name='ChargeaccountCur31' id='ChargeaccountCur31' value='$ChargeaccountCur31' maxlength='10' style='width:200px;'></td>
						<td align='left'><span class='style1'>ChargeaccountCurDefault</span></td>
						<td>";
									if($ChargeaccountCurDefault31==1){
										echo"<input type='radio' name='ChargeaccountCurDefault31' id='ChargeaccountCurDefault31' value='1' checked> yes
											<input type='radio' name='ChargeaccountCurDefault31' id='ChargeaccountCurDefault31' value='0'> no";}
									else{
										echo"<input type='radio' name='ChargeaccountCurDefault31' id='ChargeaccountCurDefault31' value='1'> yes
											<input type='radio' name='ChargeaccountCurDefault31' id='ChargeaccountCurDefault31' value='0' checked> no";}
										
						echo"	</td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CommissionsCur</span></td>
						<td align='left'><input type='text'  name='CommissionsCur31' id='CommissionsCur31' value='$CommissionsCur31' maxlength='10' style='width:200px;'></td>
					
						<td align='left'><span class='style1'>CommissionsCurDefault</span></td>
						<td>";
									if($CommissionsCurDefault31==1){
										echo"<input type='radio' name='CommissionsCurDefault31' id='CommissionsCurDefault31' value='1' checked> yes
											<input type='radio' name='CommissionsCurDefault31' id='CommissionsCurDefault31' value='0'> no";}
									else{
										echo"<input type='radio' name='CommissionsCurDefault31' id='CommissionsCurDefault31' value='1'> yes
											<input type='radio' name='CommissionsCurDefault31' id='CommissionsCurDefault31' value='0' checked> no";}
										
						echo"	</td>
					</tr>
					
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CommissionsDebitAccount</span></td>
						<td align='left'><input type='text'  name='CommissionsDebitAccount31' id='CommissionsDebitAccount31' value='$CommissionsDebitAccount31' maxlength='10' style='width:200px;'></td>
					
						<td align='left'><span class='style1'>CommissionsCreditAccount</span></td>
						<td align='left'><input type='text'  name='CommissionsCreditAccount31' id='CommissionsCreditAccount31' value='$CommissionsCreditAccount31' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>InsuranceCur</span></td>
						<td align='left'><input type='text'  name='InsuranceCur31' id='InsuranceCur31' value='$InsuranceCur31' maxlength='10' style='width:200px;'></td>
					
						<td align='left'><span class='style1'>InsuranceCurDefault</span></td>
						<td>";
									if($InsuranceCurDefault31==1){
										echo"<input type='radio' name='InsuranceCurDefault31' id='InsuranceCurDefault31' value='1' checked> yes
											<input type='radio' name='InsuranceCurDefault31' id='InsuranceCurDefault31' value='0'> no";}
									else{
										echo"<input type='radio' name='InsuranceCurDefault31' id='InsuranceCurDefault31' value='1'> yes
											<input type='radio' name='InsuranceCurDefault31' id='InsuranceCurDefault31' value='0' checked> no";}
										
						echo"	</td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>InsuranceDebitAccount</span></td>
						<td align='left'><input type='text'  name='InsuranceDebitAccount31' id='InsuranceDebitAccount31' value='$InsuranceDebitAccount31' maxlength='10' style='width:200px;'></td>
					
						<td align='left'><span class='style1'>InsuranceCreditAccount</span></td>
						<td align='left'><input type='text'  name='InsuranceCreditAccount31' id='InsuranceCreditAccount31' value='$InsuranceCreditAccount31' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>ClearingCur</span></td>
						<td align='left'><input type='text'  name='ClearingCur31' id='ClearingCur31' value='$ClearingCur31' maxlength='6' style='width:200px;'></td>
						<td align='left'><span class='style1'>ClearingCurDefault</span></td>
						<td>";
									if($ClearingCurDefault31==1){
										echo"<input type='radio' name='ClearingCurDefault31' id='ClearingCurDefault31' value='1' checked> yes
											<input type='radio' name='ClearingCurDefault31' id='ClearingCurDefault31' value='0'> no";}
									else{
										echo"<input type='radio' name='ClearingCurDefault31' id='ClearingCurDefault31' value='1'> yes
											<input type='radio' name='ClearingCurDefault31' id='ClearingCurDefault31' value='0' checked> no";}
										
						echo"	</td>
					</tr>
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>ClearingDebitAccount</span></td>
						<td align='left'><input type='text'  name='ClearingDebitAccount31' id='ClearingDebitAccount31' value='$ClearingDebitAccount31' maxlength='10' style='width:200px;'></td>
						<td align='left'><span class='style1'>ClearingCreditAccount</span></td>
						<td align='left'><input type='text'  name='ClearingCreditAccount31' id='ClearingCreditAccount31' value='$ClearingCreditAccount31' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>TransportCur</span></td>
						<td align='left'><input type='text'  name='TransportCur31' id='TransportCur31' value='$TransportCur31' maxlength='6' style='width:200px;'></td>
						<td align='left'><span class='style1'>TransportCurDefault</span></td>
						<td>";
									if($TransportCurDefault31==1){
										echo"<input type='radio' name='TransportCurDefault31' id='TransportCurDefault31' value='1' checked> yes
											<input type='radio' name='TransportCurDefault31' id='TransportCurDefault31' value='0'> no";}
									else{
										echo"<input type='radio' name='TransportCurDefault31' id='TransportCurDefault31' value='1'> yes
											<input type='radio' name='TransportCurDefault31' id='TransportCurDefault31' value='0' checked> no";}
										
						echo"	</td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>TransportDebitAccount</span></td>
						<td align='left'><input type='text'  name='TransportDebitAccount31' id='TransportDebitAccount31' value='$TransportDebitAccount31' maxlength='10' style='width:200px;'></td>
					
						<td align='left'><span class='style1'>TransportCreditAccount</span></td>
						<td align='left'><input type='text'  name='TransportCreditAccount31' id='TransportCreditAccount31' value='$TransportCreditAccount31' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>OtherCur</span></td>
						<td align='left'><input type='text'  name='OtherCur31' id='OtherCur31' value='$OtherCur31' maxlength='10' style='width:200px;'></td>
					
						<td align='left'><span class='style1'>OtherCurDefault</span></td>
						<td>";
									if($OtherCurDefault31==1){
										echo"<input type='radio' name='OtherCurDefault31' id='OtherCurDefault31' value='1' checked> yes
											<input type='radio' name='OtherCurDefault31' id='OtherCurDefault31' value='0'> no";}
									else{
										echo"<input type='radio' name='OtherCurDefault31' id='OtherCurDefault31' value='1'> yes
											<input type='radio' name='OtherCurDefault31' id='OtherCurDefault31' value='0' checked> no";}
										
						echo"	</td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>OtherDebitAccount</span></td>
						<td align='left'><input type='text'  name='OtherDebitAccount31' id='OtherDebitAccount31' value='$OtherDebitAccount31' maxlength='10' style='width:200px;'></td>
					
						<td align='left'><span class='style1'>OtherCreditAccount</span></td>
						<td align='left'><input type='text'  name='OtherCreditAccount31' id='OtherCreditAccount31' value='$OtherCreditAccount31' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>DebitCur</span></td>
						<td align='left'><input type='text'  name='DebitCur31' id='DebitCur31' value='$DebitCur31' maxlength='6' style='width:200px;'></td>
					
						<td align='left'><span class='style1'>DebitCurdefault</span></td>
						 <td>";
									if($DebitCurdefault31==1){
										echo"<input type='radio' name='DebitCurdefault31' id='DebitCurdefault31' value='1' checked> yes
											<input type='radio' name='DebitCurdefault31' id='DebitCurdefault31' value='0'> no";}
									else{
										echo"<input type='radio' name='DebitCurdefault31' id='DebitCurdefault31' value='1'> yes
											<input type='radio' name='DebitCurdefault31' id='DebitCurdefault31' value='0' checked> no";}
										
						echo"	</td>
						
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>DebitAccount</span></td>
						<td align='left'><input type='text'  name='DebitAccount31' id='DebitAccount31' value='$DebitAccount31' maxlength='10' style='width:200px;'></td>
					
						<td align='left'><span class='style1'>DebitCurReturn</span></td>
						<td align='left'><input type='text'  name='DebitCurReturn31' id='DebitCurReturn31' value='$DebitCurReturn31' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>DebitCurReturnDefault</span></td>
						<td>";
									if($DebitCurReturnDefault31==1){
										echo"<input type='radio' name='DebitCurReturnDefault31' id='DebitCurReturnDefault31' value='1' checked> yes
											<input type='radio' name='DebitCurReturnDefault31' id='DebitCurReturnDefault31' value='0'> no";}
									else{
										echo"<input type='radio' name='DebitCurReturnDefault31' id='DebitCurReturnDefault31' value='1'> yes
											<input type='radio' name='DebitCurReturnDefault31' id='DebitCurReturnDefault31' value='0' checked> no";}
										
						echo"	</td>
					
					
						<td align='left'><span class='style1'>DebitAccountReturn</span></td>
						<td align='left'><input type='text'  name='DebitAccountReturn31' id='DebitAccountReturn31' value='$DebitAccountReturn31' maxlength='10' style='width:200px;'></td>
						
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CashCur</span></td>
						<td align='left'><input type='text'  name='CashCur31' id='CashCur31' value='$CashCur31' maxlength='10' style='width:200px;'></td>
					
						<td align='left'><span class='style1'>CashCurDefault</span></td>
						<td>";
									if($CashCurDefault31==1){
										echo"<input type='radio' name='CashCurDefault31' id='CashCurDefault31' value='1' checked> yes
											<input type='radio' name='CashCurDefault31' id='CashCurDefault31' value='0'> no";}
									else{
										echo"<input type='radio' name='CashCurDefault31' id='CashCurDefault31' value='1'> yes
											<input type='radio' name='CashCurDefault31' id='CashCurDefault31' value='0' checked> no";}
										
						echo"	</td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CashAccount</span></td>
						<td align='left'><input type='text'  name='CashAccount31' id='CashAccount31' value='$CashAccount31' maxlength='10' style='width:200px;'></td>
					
						<td align='left'><span class='style1'>CheckCur</span></td>
						<td align='left'><input type='text'  name='CheckCur31' id='CheckCur31' value='$CheckCur31' maxlength='6' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CheckCurDefault</span></td>
						<td>";
									if($CheckCurDefault31==1){
										echo"<input type='radio' name='CheckCurDefault31' id='CheckCurDefault31' value='1' checked> yes
											<input type='radio' name='CheckCurDefault31' id='CheckCurDefault31' value='0'> no";}
									else{
										echo"<input type='radio' name='CheckCurDefault31' id='CheckCurDefault31' value='1'> yes
											<input type='radio' name='CheckCurDefault31' id='CheckCurDefault31' value='0' checked> no";}
										
						echo"	</td>
					
						<td align='left'><span class='style1'>CheckAccount</span></td>
						<td align='left'><input type='text'  name='CheckAccount31' id='CheckAccount31' value='$CheckAccount31' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>CustomsDebitAccount</span></td>
						<td align='left'><input type='text'  name='CustomsDebitAccount31' id='CustomsDebitAccount31' value='$CustomsDebitAccount31' maxlength='10' style='width:200px;'></td>
						<td><span class='style1'>CustomsCreditAccount</span></td>
						<td align='left'><input type='text'  name='CustomsCreditAccount31' id='CustomsCreditAccount31' value='$CustomsCreditAccount31' maxlength='10' style='width:200px;'></td>
					</tr>
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>CustomsCur</span></td>
						<td align='left'><input type='text'  name='CustomsCur31' id='CustomsCur31' value='$CustomsCur31' maxlength='6' style='width:200px;'></td>
						<td align='left'><span class='style1'>CustomsCurDefault</span></td>
						<td>";
							if($CustomsCurDefault31==1){
								echo"<input type='radio' name='CustomsCurDefault31' id='CustomsCurDefault31' value='1' checked> yes
									<input type='radio' name='CustomsCurDefault31' id='CustomsCurDefault31' value='0'> no";}
							else{
								echo"<input type='radio' name='CustomsCurDefault31' id='CustomsCurDefault31' value='1'> yes
									<input type='radio' name='CustomsCurDefault31' id='CustomsCurDefault31' value='0' checked> no";}
										
				echo"	</td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>VatAccount</span></td>
						<td align='left'><input type='text'  name='VatAccount31' id='VatAccount31' value='$VatAccount31' maxlength='10' style='width:200px;'></td>
					
						<td align='left'><span class='style1'>CreditAccountReturn</span></td>
						<td align='left'><input type='text'  name='CreditAccountReturn31' id='CreditAccountReturn31' value='$CreditAccountReturn31' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>CreditCurReturnDefault</span></td>
						<td>";
							if($CreditCurReturnDefault31==1){
								echo"<input type='radio' name='CreditCurReturnDefault31' id='CreditCurReturnDefault31' value='1' checked> yes
									<input type='radio' name='CreditCurReturnDefault31' id='CreditCurReturnDefault31' value='0'> no";}
							else{
								echo"<input type='radio' name='CreditCurReturnDefault31' id='CreditCurReturnDefault31' value='1'> yes
									<input type='radio' name='CreditCurReturnDefault31' id='CreditCurReturnDefault31' value='0' checked> no";}
										
				echo"	</td>
						<td align='left'><span class='style1'>DiscountAccount</span></td>
						<td align='left'><input type='text'  name='DiscountAccount31' id='DiscountAccount31' value='$DiscountAccount31' maxlength='6' style='width:200px;'></td>				
					</tr>
					
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>Barcode</span></td>
						<td>";
							if($Barcode31==1){
								echo"<input type='radio' name='Barcode31' id='Barcode31' value='1' checked> yes
									<input type='radio' name='Barcode31' id='Barcode31' value='0'> no";}
							else{
								echo"<input type='radio' name='Barcode31' id='Barcode31' value='1'> yes
									<input type='radio' name='Barcode31' id='Barcode31' value='0' checked> no";}
										
				echo"	</td>
						<td align='left'><span class='style1'>PURCHASETTC</span></td>
						<td>";
							if($PURCHASETTC31==1){
								echo"<input type='radio' name='PURCHASETTC31' id='PURCHASETTC31' value='1' checked> yes
									<input type='radio' name='PURCHASETTC31' id='PURCHASETTC31' value='0'> no";}
							else{
								echo"<input type='radio' name='PURCHASETTC31' id='PURCHASETTC31' value='1'> yes
									<input type='radio' name='PURCHASETTC31' id='PURCHASETTC31' value='0' checked> no";}
										
				echo"	</td>			
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>DebitAccountVAT</span></td>
						<td align='left'><input type='text'  name='DebitAccountVAT31' id='DebitAccountVAT31' value='$DebitAccountVAT31' maxlength='10' style='width:200px;'></td>
						<td align='left'><span class='style1'>DirectStockDebit</span></td>
						<td align='left'><input type='text'  name='DirectStockDebit31' id='DirectStockDebit31' value='$DirectStockDebit31' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>Directstockcredit</span></td>
						<td align='left'><input type='text'  name='Directstockcredit31' id='Directstockcredit31' value='$Directstockcredit31' maxlength='10' style='width:200px;'></td>
						<td align='left'><span class='style1'>DirectStockCurrency_Code</span></td>
						<td align='left'><input type='text'  name='DirectStockCurrency_Code31' id='DirectStockCurrency_Code31' value='$DirectStockCurrency_Code31' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>TipsAccount</span></td>
						<td align='left'><input type='text'  name='TipsAccount31' id='TipsAccount31' value='$TipsAccount31' maxlength='10' style='width:200px;'></td>
						<td align='left'><span class='style1'>TipsMaxBase1</span></td>
						<td align='left'><input type='text'  name='TipsMaxBase131' id='TipsMaxBase131' value='$TipsMaxBase131' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>Purchasejv_chargedebit</span></td>
						<td align='left'><input type='text'  name='Purchasejv_chargedebit31' id='Purchasejv_chargedebit31' value='$Purchasejv_chargedebit31' maxlength='11' style='width:200px;'></td>
						<td align='left'><span class='style1'>Purchasejv_chargecredit</span></td>
						<td align='left'><input type='text'  name='Purchasejv_chargecredit31' id='Purchasejv_chargecredit31' value='$Purchasejv_chargecredit31' maxlength='11' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Module_Color</span></td>
						<td>";
							if($Module_Color31==1){
								echo"<input type='radio' name='Module_Color31' id='Module_Color31' value='1' checked> yes
									<input type='radio' name='Module_Color31' id='Module_Color31' value='0'> no";}
							else{
								echo"<input type='radio' name='Module_Color31' id='Module_Color31' value='1'> yes
									<input type='radio' name='Module_Color31' id='Module_Color31' value='0' checked> no";}
										
				echo"	</td>
						<td align='left'><span class='style1'>PurchaseJV_DefaultCur</span></td>
						<td align='left'><input type='text'  name='PurchaseJV_DefaultCur31' id='PurchaseJV_DefaultCur31' value='$PurchaseJV_DefaultCur31' maxlength='7' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>PurchaseJV_VatAccount</span></td>
						<td align='left'><input type='text'  name='PurchaseJV_VatAccount31' id='PurchaseJV_VatAccount31' value='$PurchaseJV_VatAccount31' maxlength='11' style='width:200px;'></td>
						<td align='left'><span class='style1'>WITHPRICEDEFAULT</span></td>
						<td>";
							if($WITHPRICEDEFAULT31==1){
								echo"<input type='radio' name='WITHPRICEDEFAULT31' id='WITHPRICEDEFAULT31' value='1' checked> yes
									<input type='radio' name='WITHPRICEDEFAULT31' id='WITHPRICEDEFAULT31' value='0'> no";}
							else{
								echo"<input type='radio' name='WITHPRICEDEFAULT31' id='WITHPRICEDEFAULT31' value='1'> yes
									<input type='radio' name='WITHPRICEDEFAULT31' id='WITHPRICEDEFAULT31' value='0' checked> no";}
										
				echo"	</td>
					</tr>
					
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>GenerateCharges</span></td>
						<td>";
							if($GenerateCharges31==1){
								echo"<input type='radio' name='GenerateCharges31' id='GenerateCharges31' value='1' checked> yes
									<input type='radio' name='GenerateCharges31' id='GenerateCharges31' value='0'> no";}
							else{
								echo"<input type='radio' name='GenerateCharges31' id='GenerateCharges31' value='1'> yes
									<input type='radio' name='GenerateCharges31' id='GenerateCharges31' value='0' checked> no";}	
				echo"	</td>
					</tr>
						<td align='left'><span class='style1'>PurchaseDefaultType</span></td>
						<td align='left'><input type='text'  name='PurchaseDefaultType31' id='PurchaseDefaultType31' value='$PurchaseDefaultType31' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>IsoDescription</span></td>
						<td align='left'><textarea name='IsoDescription31' id='IsoDescription31' maxlength='250' rows='4' style='width:200px;'>$IsoDescription31</textarea></td></tr>
						<td align='left'><span class='style1'>Purchase_Acctax1</span></td>
						<td align='left'><input type='text'  name='Purchase_Acctax131' id='Purchase_Acctax131' value='$Purchase_Acctax131' maxlength='11' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Purchase_Acctax2</span></td>
						<td align='left'><input type='text'  name='Purchase_Acctax231' id='Purchase_Acctax231' value='$Purchase_Acctax231' maxlength='11' style='width:200px;'></td>
					
						<td align='left'><span class='style1'>Purchase_Acctax3</span></td>
						<td align='left'><input type='text'  name='Purchase_Acctax331' id='Purchase_Acctax331' value='$Purchase_Acctax331' maxlength='11' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Purchase_Acctax4</span></td>
						<td align='left'><input type='text'  name='Purchase_Acctax431' id='Purchase_Acctax431' value='$Purchase_Acctax431' maxlength='11' style='width:200px;'></td>
					
						<td align='left'><span class='style1'>Purchase_Acctax5</span></td>
						<td align='left'><input type='text'  name='Purchase_Acctax531' id='Purchase_Acctax531' value='$Purchase_Acctax531' maxlength='11' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Synchronized</span></td>
						<td>";
							if($Synchronized31==1){
								echo"<input type='radio' name='Synchronized31' id='Synchronized31' value='1' checked> yes
									<input type='radio' name='Synchronized31' id='Synchronized31' value='0'> no";}
							else{
								echo"<input type='radio' name='Synchronized31' id='Synchronized31' value='1'> yes
									<input type='radio' name='Synchronized31' id='Synchronized31' value='0' checked> no";}	
				echo"	</td>	
						
						<td align='left'><span class='style1'>DisplayPurchaseType</span></td>
						<td>";
							if($DisplayPurchaseType31==1){
								echo"<input type='radio' name='DisplayPurchaseType31' id='DisplayPurchaseType31' value='1' checked> yes
									<input type='radio' name='DisplayPurchaseType31' id='DisplayPurchaseType31' value='0'> no";}
							else{
								echo"<input type='radio' name='DisplayPurchaseType31' id='DisplayPurchaseType31' value='1'> yes
									<input type='radio' name='DisplayPurchaseType31' id='DisplayPurchaseType31' value='0' checked> no";}	
				echo"	</td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>DefaultPrice_FobORLast</span></td>
						<td>";
							if($DefaultPrice_FobORLast31==1){
								echo"<input type='radio' name='DefaultPrice_FobORLast31' id='DefaultPrice_FobORLast31' value='1' checked> yes
									<input type='radio' name='DefaultPrice_FobORLast31' id='DefaultPrice_FobORLast31' value='0'> no";}
							else{
								echo"<input type='radio' name='DefaultPrice_FobORLast31' id='DefaultPrice_FobORLast31' value='1'> yes
									<input type='radio' name='DefaultPrice_FobORLast31' id='DefaultPrice_FobORLast31' value='0' checked> no";}	
				echo"	</td>	
						
						<td align='left'><span class='style1'>VATAccountNonStock</span></td>
						<td align='left'><input type='text'  name='VATAccountNonStock31' id='VATAccountNonStock31' value='$VATAccountNonStock31' maxlength='11' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>ShowCostCentLayout</span></td>
						<td>";
							if($ShowCostCentLayout31==1){
								echo"<input type='radio' name='ShowCostCentLayout31' id='ShowCostCentLayout31' value='1' checked> yes
									<input type='radio' name='ShowCostCentLayout31' id='ShowCostCentLayout31' value='0'> no";}
							else{
								echo"<input type='radio' name='ShowCostCentLayout31' id='ShowCostCentLayout31' value='1'> yes
									<input type='radio' name='ShowCostCentLayout31' id='ShowCostCentLayout31' value='0' checked> no";}	
				echo"	</td>	
						
						<td align='left'><span class='style1'>VatAccount2</span></td>
						<td align='left'><input type='text'  name='VatAccount231' id='VatAccount231' value='$VatAccount231' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>VatAccount3</span></td>
						<td align='left'><input type='text'  name='VatAccount331' id='VatAccount331' value='$VatAccount331' maxlength='10' style='width:200px;'></td>	
						
						<td align='left'><span class='style1'>VATAccountNonStock2</span></td>
						<td align='left'><input type='text'  name='VATAccountNonStock231' id='VATAccountNonStock231' value='$VATAccountNonStock231' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>VATAccountNonStock3</span></td>
						<td align='left'><input type='text'  name='VATAccountNonStock331' id='VATAccountNonStock331' value='$VATAccountNonStock331' maxlength='10' style='width:200px;'></td>	
						
						<td align='left'><span class='style1'>DebitAccount2</span></td>
						<td align='left'><input type='text'  name='DebitAccount231' id='DebitAccount231' value='$DebitAccount231' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>DebitAccount3</span></td>
						<td align='left'><input type='text'  name='DebitAccount331' id='DebitAccount331' value='$DebitAccount331' maxlength='10' style='width:200px;'></td>	
						
						<td align='left'><span class='style1'>DebitAccountVat2</span></td>
						<td align='left'><input type='text'  name='DebitAccountVat231' id='DebitAccountVat231' value='$DebitAccountVat231' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>DebitAccountVat3</span></td>
						<td align='left'><input type='text'  name='DebitAccountVat331' id='DebitAccountVat331' value='$DebitAccountVat331' maxlength='10' style='width:200px;'></td>	
						
						<td align='left'><span class='style1'>DebitAccountNonStock</span></td>
						<td align='left'><input type='text'  name='DebitAccountNonStock31' id='DebitAccountNonStock31' value='$DebitAccountNonStock31' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>DebitAccountNonStock2</span></td>
						<td align='left'><input type='text'  name='DebitAccountNonStock231' id='DebitAccountNonStock231' value='$DebitAccountNonStock231' maxlength='10' style='width:200px;'></td>	
						
						<td align='left'><span class='style1'>DebitAccountNonStock3</span></td>
						<td align='left'><input type='text'  name='DebitAccountNonStock331' id='DebitAccountNonStock331' value='$DebitAccountNonStock331' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>DebitAccountVATNonStock</span></td>
						<td align='left'><input type='text'  name='DebitAccountVATNonStock31' id='DebitAccountVATNonStock31' value='$DebitAccountVATNonStock31' maxlength='10' style='width:200px;'></td>	
						
						<td align='left'><span class='style1'>DebitAccountVATNonStock2</span></td>
						<td align='left'><input type='text'  name='DebitAccountVATNonStock231' id='DebitAccountVATNonStock231' value='$DebitAccountVATNonStock231' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>DebitAccountVATNonStock3</span></td>
						<td align='left'><input type='text'  name='DebitAccountVATNonStock331' id='DebitAccountVATNonStock331' value='$DebitAccountVATNonStock331' maxlength='10' style='width:200px;'></td>	
						
						<td align='left'><span class='style1'>VATAccountRefundable</span></td>
						<td align='left'><input type='text'  name='VATAccountRefundable31' id='VATAccountRefundable31' value='$VATAccountRefundable31' maxlength='10' style='width:200px;'></td>
					</tr> 
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>DebitAccountVatRefundable</span></td>
						<td align='left'><input type='text'  name='DebitAccountVatRefundable31' id='DebitAccountVatRefundable31' value='$DebitAccountVatRefundable31' maxlength='10' style='width:200px;'></td>	
					</tr> 
					
					<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>ShowItemSellingPrice</span></td>
						<td>";
							if($ShowItemSellingPrice31==1){
								echo"<input type='radio' name='ShowItemSellingPrice31' id='ShowItemSellingPrice31' value='1' checked> yes
									<input type='radio' name='ShowItemSellingPrice31' id='ShowItemSellingPrice31' value='0'> no";}
							else{
								echo"<input type='radio' name='ShowItemSellingPrice31' id='ShowItemSellingPrice31' value='1'> yes
									<input type='radio' name='ShowItemSellingPrice31' id='ShowItemSellingPrice31' value='0' checked> no";}	
				echo"	</td>	
						
						<td align='left'><span class='style1'>porder_termsconditions</span></td>
						<td align='left'><textarea name='porder_termsconditions31' id='porder_termsconditions31' maxlength='1000' rows='4' style='width:200px;'>$porder_termsconditions31</textarea></td></tr>
					</tr>";
		echo"</table>";	
echo"	</div>";      
echo"</div>";      
}

if($Tabnumber=='10'){			
		//Tab= salessetup table
		 echo"	<div class='tabbertab'>
					<h2 title='salessetup2'>Sales Setup</h2>";
			echo"	<div id='datagrid-d1' style='width:1088px; min-height:2280px; margin-top:5px; border:0px solid gray;'>";
						//conteny of 
					echo"  <table border='0' cellpadding='0' cellspacing='10' align='left' valign='center' style='padding-left:40px;width:1000px; min-height=820' >
								<col width=120>
								<col width=200> 
								<col width=120> 
								<col width=200> 
								<col width=250>";
						
					echo"	
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Warehouse </span></td>
								<td><input type='text'  name='Warehouse2' id='Warehouse2' value='$Warehouse2' maxlength='15'style='font-size:12px; width:200px; '></td>	
								
								<td align='left'><span class='style1'>  Project </span></td>
								<td align='left'><input type='text'  name='Project2' id='Project2' value='$Project2' maxlength='15' style='width:200px;'></td>
							</tr>
								
							<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>Costcenter</span></td>
								<td align='left'><input type='text'  name='Costcenter2' id='Costcenter2' value='$Costcenter2' maxlength='15' style='width:200px;'></td>
								
								<td align='left'><span class='style1'>PaymentMode</span></td>
								<td align='left'><input  type='number' min='0' step='0.01' name='PaymentMode2' id='PaymentMode2' value='$PaymentMode2'  style='width:200px;'></td>
							</tr>
			
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>ClientCur</span></td>
								<td><input  type='number' min='0' step='0.01' name='ClientCur2' id='ClientCur2' value='$ClientCur2'  style='width:200px;'></td>
								
								<td align='left'><span class='style1'>Client Account</span></td>
								<td align='left'><input type='text'  name='ClientAccount2' id='ClientAccount2' value='$ClientAccount2' maxlength='10' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CreditCur</span></td>
								<td align='left'><input type='text'  name='CreditCur2' id='CreditCur2' value='$CreditCur2' maxlength='6' style='width:200px;'></td>
							
								<td align='left'><span class='style1'>CreditCurdefault</span></td>
								<td>";
									if($CreditCurdefault2==1){
										echo"<input type='radio' name='CreditCurdefault2' id='CreditCurdefault2' value='1' checked> yes
											<input type='radio' name='CreditCurdefault2' id='CreditCurdefault2' value='0'> no";}
									else{
										echo"<input type='radio' name='CreditCurdefault2' id='CreditCurdefault2' value='1'> yes
											<input type='radio' name='CreditCurdefault2' id='CreditCurdefault2' value='0' checked> no";}
								
						echo"	</td>
							</tr>

							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Credit Account</span></td>
								<td align='left'><input type='text'  name='CreditAccount2' id='CreditAccount2' value='$CreditAccount2' maxlength='10' style='width:200px;'></td>
							
								<td align='left'><span class='style1'>CashCur</span></td>
								<td align='left'><input type='text'  name='CashCur2' id='CashCur2' value='$CashCur2' maxlength='10' style='width:200px;'></td>
							</tr>

							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CashCurDefault</span></td>
								<td>";
									if($CashCurDefault2==1){
										echo"<input type='radio' name='CashCurDefault2' id='CashCurDefault2' value='1' checked> yes
											<input type='radio' name='CashCurDefault2' id='CashCurDefault2' value='0'> no";}
									else{
										echo"<input type='radio' name='CashCurDefault2' id='CashCurDefault2' value='1'> yes
											<input type='radio' name='CashCurDefault2' id='CashCurDefault2' value='0' checked> no";}
									
						echo"	</td>
							
								<td align='left'><span class='style1'>Cash Account</span></td>
								<td align='left'><input type='text'  name='CashAccount2' id='CashAccount2' value='$CashAccount2' maxlength='6' style='width:200px;'></td>
							</tr>

							<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>CheckCur</span></td>
								<td><input type='text'  name='CheckCur2' id='CheckCur2' value='$CheckCur2' maxlength='6' style='width:200px;'>
							
								<td align='left'><span class='style1'>CheckCurDefault</span></td>
								<td>";
									if($CheckCurDefault2==1){
										echo"<input type='radio' name='CheckCurDefault2' id='CheckCurDefault2' value='1' checked> yes
											<input type='radio' name='CheckCurDefault2' id='CheckCurDefault2' value='0'> no";}
									else{
										echo"<input type='radio' name='CheckCurDefault2' id='CheckCurDefault2' value='1'> yes
											<input type='radio' name='CheckCurDefault2' id='CheckCurDefault2' value='0' checked> no";}
									
						echo"	</td>
							
							</tr>
							
							<tr bgcolor='#F7F7F7'>	
								<td align='left'><span class='style1'>CheckAccount</span></td>
								<td align='left'><input type='text'  name='CheckAccount2' id='CheckAccount2' value='$CheckAccount2' maxlength='10' style='width:200px;'></td>
								
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'>TipsAccount</span></td>
								<td align='left'><input type='text'  name='TipsAccount2' id='TipsAccount2' value='$TipsAccount2' maxlength='6' style='width:200px;'></td>
							
								<td align='left'><span class='style1'>VatAccount</span></td>
								<td align='left'><input type='text'  name='VatAccount2' id='VatAccount2' value='$VatAccount2' maxlength='10' style='width:200px;'></td>
							</tr>

							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CreditAccountReturn</span></td>
								<td align='left'><input type='text'  name='CreditAccountReturn2' id='CreditAccountReturn2' value='$CreditAccountReturn2' maxlength='10' style='width:200px;'></td>
							
								<td align='left'><span class='style1'>CreditCurReturnDefault</span></td>
								<td>";
									if($CreditCurReturnDefault2==1){
										echo"<input type='radio' name='CreditCurReturnDefault2' id='CreditCurReturnDefault2' value='1' checked> yes
											<input type='radio' name='CreditCurReturnDefault2' id='CreditCurReturnDefault2' value='0'> no";}
									else{
										echo"<input type='radio' name='CreditCurReturnDefault2' id='CreditCurReturnDefault2' value='1'> yes
											<input type='radio' name='CreditCurReturnDefault2' id='CreditCurReturnDefault2' value='0' checked> no";}
						echo"	</td>
							</tr>

							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'>CreditCurReturn</span></td>
								<td align='left'><input type='text'  name='CreditCurReturn2' id='CreditCurReturn2' value='$CreditCurReturn2' maxlength='10' style='width:200px;'></td>
							
								<td align='left'><span class='style1'>CHARGES</span></td>
								<td>";
									if($CHARGES2==1){
										echo"<input type='radio' name='CHARGES2' id='CHARGES2' value='1' checked> yes
											<input type='radio' name='CHARGES2' id='CHARGES2' value='0'> no";}
									else{
										echo"<input type='radio' name='CHARGES2' id='CHARGES2' value='1'> yes
											<input type='radio' name='CHARGES2' id='CHARGES2' value='0' checked> no";}
						echo"	</td>
							</tr>

							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'>DiscountAccount</span></td>
								<td align='left'><input type='text'  name='DiscountAccount2' id='DiscountAccount2' value='$DiscountAccount2' maxlength='10' style='width:200px;'></td>
						
								<td align='left'><span class='style1'>Creditaccountvat</span></td>
								<td align='left'><input type='text'  name='Creditaccountvat2' id='Creditaccountvat2' value='$Creditaccountvat2' maxlength='10' style='width:200px;'></td>
							</tr>

							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'>DirectStockDebit</span></td>
								<td align='left'><input type='text'  name='DirectStockDebit2' id='DirectStockDebit2' value='$DirectStockDebit2' maxlength='6' style='width:200px;'></td>
							
								<td align='left'><span class='style1'>DirectStockCredit</span></td>
								<td align='left'><input  type='number' min='0' step='0.01' name='DirectStockCredit2' id='DirectStockCredit2' value='$DirectStockCredit2'  style='width:200px;'></td>
							</tr>

							<tr bgcolor='#F7F7F7'>	
								<td align='left'><span class='style1'>DEBITACC</span></td>
								<td><input type='text'  name='DEBITACC2' id='DEBITACC2' value='$DEBITACC2' maxlength='10' style='width:200px;'></td>
							
								<td align='left'><span class='style1'>CustomsCurDefault</span></td>
								<td>";
									if($CustomsCurDefault2==1){
										echo"<input type='radio' name='CustomsCurDefault2' id='CustomsCurDefault2' value='1' checked> yes
											<input type='radio' name='CustomsCurDefault2' id='CustomsCurDefault2' value='0'> no";}
									else{
										echo"<input type='radio' name='CustomsCurDefault2' id='CustomsCurDefault2' value='1'> yes
											<input type='radio' name='CustomsCurDefault2' id='CustomsCurDefault2' value='0' checked> no";}
						echo"	</td>
							</tr>

							<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>customsAccount</span></td>
								<td><input type='text'  name='CustomsAccount2' id='CustomsAccount2' value='$CustomsAccount2' maxlength='6' style='width:200px;'></td>
							
								<td align='left'><span class='style1'>CustomsCur</span></td>
								<td><input type='text'  name='CustomsCur2' id='CustomsCur2' value='$CustomsCur2' maxlength='6' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>BillsAccount</span></td>
								<td><input type='text'  name='BillsAccount2' id='BillsAccount2' value='$BillsAccount2' maxlength='6' style='width:200px;'></td>
							
								<td align='left'><span class='style1'>BillsCur</span></td>
								<td><input type='text'  name='BillsCur2' id='BillsCur2' value='$BillsCur2' maxlength='6' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>BillsCurDefault</span></td>
								<td>";
									if($BillsCurDefault2==1){
										echo"<input type='radio' name='BillsCurDefault2' id='BillsCurDefault2' value='1' checked> yes
											<input type='radio' name='BillsCurDefault2' id='BillsCurDefault2' value='0'> no";}
									else{
										echo"<input type='radio' name='BillsCurDefault2' id='BillsCurDefault2' value='1'> yes
											<input type='radio' name='BillsCurDefault2' id='BillsCurDefault2' value='0' checked> no";}
						echo"	</td>
							
								<td align='left'><span class='style1'>DEBITcUR</span></td>
								<td>";
									if($DEBITcUR2==1){
										echo"<input type='radio' name='DEBITcUR2' id='DEBITcUR2' value='1' checked> yes
											<input type='radio' name='DEBITcUR2' id='DEBITcUR2' value='0'> no";}
									else{
										echo"<input type='radio' name='DEBITcUR2' id='DEBITcUR2' value='1'> yes
											<input type='radio' name='DEBITcUR2' id='DEBITcUR2' value='0' checked> no";}
						echo"	</td>
							</tr> 
							
							<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>DebitCurDefault</span></td>
								<td>";
									if($DebitCurDefault2==1){
										echo"<input type='radio' name='DebitCurDefault2' id='DebitCurDefault2' value='1' checked> yes
											<input type='radio' name='DebitCurDefault2' id='DebitCurDefault2' value='0'> no";}
									else{
										echo"<input type='radio' name='DebitCurDefault2' id='DebitCurDefault2' value='1'> yes
											<input type='radio' name='DebitCurDefault2' id='DebitCurDefault2' value='0' checked> no";}
						echo"	</td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>TipsMaxBase1</span></td>
								<td><input type='text'  name='TipsMaxBase12' id='TipsMaxBase12' value='$TipsMaxBase12' maxlength='6' style='width:200px;'></td>
							
								<td align='left'><span class='style1'>WithPriceDefault</span></td>
								<td>";
									if($WithPriceDefault2==1){
										echo"<input type='radio' name='WithPriceDefault2' id='WithPriceDefault2' value='1' checked> yes
											<input type='radio' name='WithPriceDefault2' id='WithPriceDefault2' value='0'> no";}
									else{
										echo"<input type='radio' name='WithPriceDefault2' id='WithPriceDefault2' value='1'> yes
											<input type='radio' name='WithPriceDefault2' id='WithPriceDefault2' value='0' checked> no";}
						echo"	</td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>PrintPreview</span></td>
								<td>";
									if($PrintPreview2==1){
										echo"<input type='radio' name='PrintPreview2' id='PrintPreview2' value='1' checked> yes
											<input type='radio' name='PrintPreview2' id='PrintPreview2' value='0'> no";}
									else{
										echo"<input type='radio' name='PrintPreview2' id='PrintPreview2' value='1'> yes
											<input type='radio' name='PrintPreview2' id='PrintPreview2' value='0' checked> no";}
						echo"	</td>
							
								<td align='left'><span class='style1'>CREDITVATRETURN</span></td>
								<td><input type='text'  name='CREDITVATRETURN2' id='CREDITVATRETURN2' value='$CREDITVATRETURN2' maxlength='6' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>SALESTTC</span></td>
								<td>";
									if($SALESTTC2==1){
										echo"<input type='radio' name='SALESTTC2' id='SALESTTC2' value='1' checked> yes
											<input type='radio' name='SALESTTC2' id='SALESTTC2' value='0'> no";}
									else{
										echo"<input type='radio' name='SALESTTC2' id='SALESTTC2' value='1'> yes
											<input type='radio' name='SALESTTC2' id='SALESTTC2' value='0' checked> no";}
						echo"	</td>
							
								<td align='left'><span class='style1'>DirectStockCurrencyCode</span></td>
								<td><input type='text'  name='DirectStockCurrency_Code2' id='DirectStockCurrency_Code2' value='$DirectStockCurrency_Code2' maxlength='6' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>SalesSetup</span></td>
								<td>";
									if($SalesSetup2==1){
										echo"<input type='radio' name='SalesSetup2' id='SalesSetup2' value='1' checked> yes
											<input type='radio' name='SalesSetup2' id='SalesSetup2' value='0'> no";}
									else{
										echo"<input type='radio' name='SalesSetup2' id='SalesSetup2' value='1'> yes
											<input type='radio' name='SalesSetup2' id='SalesSetup2' value='0' checked> no";}
						echo"	</td>
							
								<td align='left'><span class='style1'>Setup_LedgerNumber</span></td>
								<td><input type='text'  name='Setup_LedgerNumber2' id='Setup_LedgerNumber2' value='$Setup_LedgerNumber2' maxlength='6' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>SalesJV_PrintedDateTime</span></td>
								<td>";
									if($SalesJV_PrintedDateTime2==1){
										echo"<input type='radio' name='SalesJV_PrintedDateTime2' id='SalesJV_PrintedDateTime2' value='1' checked> yes
											<input type='radio' name='SalesJV_PrintedDateTime2' id='SalesJV_PrintedDateTime2' value='0'> no";}
									else{
										echo"<input type='radio' name='SalesJV_PrintedDateTime2' id='SalesJV_PrintedDateTime2' value='1'> yes
											<input type='radio' name='SalesJV_PrintedDateTime2' id='SalesJV_PrintedDateTime2' value='0' checked> no";}
						echo"	</td>
							
								<td align='left'><span class='style1'>SalesJV_PrintFolio</span></td>
								<td>";
									if($SalesJV_PrintFolio2==1){
										echo"<input type='radio' name='SalesJV_PrintFolio2' id='SalesJV_PrintFolio2' value='1' checked> yes
											<input type='radio' name='SalesJV_PrintFolio2' id='SalesJV_PrintFolio2' value='0'> no";}
									else{
										echo"<input type='radio' name='SalesJV_PrintFolio2' id='SalesJV_PrintFolio2' value='1'> yes
											<input type='radio' name='SalesJV_PrintFolio2' id='SalesJV_PrintFolio2' value='0' checked> no";}
						echo"	</td>
							</tr>
							

							<tr bgcolor='#F7F7F7'>
								<td align='left' valign='top'><span class='style1'>Sale_Remark</span></td>
								<td align='left'><textarea name='Sale_Remark2' id='Sale_Remark2' maxlength='250' rows='4' style='width:200px;'>$Sale_Remark2</textarea></td></tr>
					
								<td align='left'><span class='style1'>SalesJV_DefaultCur</span></td>
								<td align='left'><input type='text'  name='SalesJV_DefaultCur2' id='SalesJV_DefaultCur2' value='$SalesJV_DefaultCur2' maxlength='10' style='width:200px;'></td>
					
							</tr>

						<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>Sale_PrinterLPTPort</span></td>
							<td align='left'><input type='text'  name='Sale_PrinterLPTPort2' id='Sale_PrinterLPTPort2' value='$Sale_PrinterLPTPort2' maxlength='10' style='width:200px;'></td>
					
							<td align='left'><span class='style1'>SALE_PrintBottomLabel</span></td>
							<td align='left'><textarea name='SALE_PrintBottomLabel2' id='SALE_PrintBottomLabel2' maxlength='250' rows='4' style='width:200px;'>$SALE_PrintBottomLabel2</textarea></td></tr>
						</tr>

						<tr bgcolor='#F7F7F7'>	
								<td align='left'><span class='style1'>Sale_DisplayLedDefault</span></td>
								<td>";
									if($Sale_DisplayLedDefault2==1){
										echo"<input type='radio' name='Sale_DisplayLedDefault2' id='Sale_DisplayLedDefault2' value='1' checked> yes
											<input type='radio' name='Sale_DisplayLedDefault2' id='Sale_DisplayLedDefault2' value='0'> no";}
									else{
										echo"<input type='radio' name='Sale_DisplayLedDefault2' id='Sale_DisplayLedDefault2' value='1'> yes
											<input type='radio' name='Sale_DisplayLedDefault2' id='Sale_DisplayLedDefault2' value='0' checked> no";}
						echo"	</td>
					
							<td align='left'><span class='style1'>Sale_COMPortDefault</span></td>
							<td align='left'><input type='text'  name='Sale_COMPortDefault2' id='Sale_COMPortDefault2' value='$Sale_COMPortDefault2' maxlength='10' style='width:200px;'></td>
						</tr>

						<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>SalesJV_VatAccount</span></td>
							<td align='left'><input type='text'  name='SalesJV_VatAccount2' id='SalesJV_VatAccount2' value='$SalesJV_VatAccount2' maxlength='10' style='width:200px;'></td>
					
							<td align='left'><span class='style1'>Sale_CalculateWeight</span></td>
							<td>";
									if($Sale_CalculateWeight2==1){
										echo"<input type='radio' name='Sale_CalculateWeight2' id='Sale_CalculateWeight2' value='1' checked> yes
											<input type='radio' name='Sale_CalculateWeight2' id='Sale_CalculateWeight2' value='0'> no";}
									else{
										echo"<input type='radio' name='Sale_CalculateWeight2' id='Sale_CalculateWeight2' value='1'> yes
											<input type='radio' name='Sale_CalculateWeight2' id='Sale_CalculateWeight2' value='0' checked> no";}
					echo"	</td>
						</tr>

						<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>SalesJV_MaxDiscountPer</span></td>
							<td><input type='text'  name='SalesJV_MaxDiscountPer2' id='SalesJV_MaxDiscountPer2' value='$SalesJV_MaxDiscountPer2' maxlength='10' style='width:200px;'></td>
						
							<td align='left'><span class='style1'>Sales_MaxDiscountPer</span></td>
							<td><input type='text'  name='Sales_MaxDiscountPer2' id='Sales_MaxDiscountPer2' value='$Sales_MaxDiscountPer2' maxlength='10' style='width:200px;'></td>
						</tr>

						<tr bgcolor='#F7F7F7'>	
							<td align='left'><span class='style1'>Sale_Acctax1</span></td>
							<td><input type='text'  name='Sale_Acctax12' id='Sale_Acctax12' value='$Sale_Acctax12' maxlength='10' style='width:200px;'></td>
							<td align='left'><span class='style1'>Sale_Acctax2</span></td>
							<td><input type='text'  name='Sale_Acctax22' id='Sale_Acctax22' value='$Sale_Acctax22' maxlength='10' style='width:200px;'></td>
						</tr>
						
						<tr bgcolor='#F7F7F7'>	
							<td align='left'><span class='style1'>Sale_Acctax3</span></td>
							<td><input type='text'  name='Sale_Acctax32' id='Sale_Acctax32' value='$Sale_Acctax32' maxlength='10' style='width:200px;'></td>
							<td align='left'><span class='style1'>Sale_Acctax4</span></td>
							<td><input type='text'  name='Sale_Acctax42' id='Sale_Acctax42' value='$Sale_Acctax42' maxlength='10' style='width:200px;'></td>
						</tr>
						
						<tr bgcolor='#F7F7F7'>	
							<td align='left'><span class='style1'>Sale_Acctax5</span></td>
							<td><input type='text'  name='Sale_Acctax52' id='Sale_Acctax52' value='$Sale_Acctax52' maxlength='10' style='width:200px;'></td>
							<td align='left'><span class='style1'>PromotionAccount</span></td>
							<td><input type='text'  name='PromotionAccount2' id='PromotionAccount2' value='$PromotionAccount2' maxlength='10' style='width:200px;'></td>
						</tr>
						
						<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>DiscountFromItemGroup</span></td>
							<td>";
									if($DiscountFromItemGroup2==1){
										echo"<input type='radio' name='DiscountFromItemGroup2' id='DiscountFromItemGroup2' value='1' checked> yes
											<input type='radio' name='DiscountFromItemGroup2' id='DiscountFromItemGroup2' value='0'> no";}
									else{
										echo"<input type='radio' name='DiscountFromItemGroup2' id='DiscountFromItemGroup2' value='1'> yes
											<input type='radio' name='DiscountFromItemGroup2' id='DiscountFromItemGroup2' value='0' checked> no";}
					echo"	</td>
							<td align='left'><span class='style1'>Sale_ExchangeSellPrice</span></td>
							<td>";
									if($Sale_ExchangeSellPrice2==1){
										echo"<input type='radio' name='Sale_ExchangeSellPrice2' id='Sale_ExchangeSellPrice2' value='1' checked> yes
											<input type='radio' name='Sale_ExchangeSellPrice2' id='Sale_ExchangeSellPrice2' value='0'> no";}
									else{
										echo"<input type='radio' name='Sale_ExchangeSellPrice2' id='Sale_ExchangeSellPrice2' value='1'> yes
											<input type='radio' name='Sale_ExchangeSellPrice2' id='Sale_ExchangeSellPrice2' value='0' checked> no";}
					echo"	</td>
						</tr>
						
						<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Synchronized</span></td>
							<td>";
									if($Synchronized2==1){
										echo"<input type='radio' name='Synchronized2' id='Synchronized2' value='1' checked> yes
											<input type='radio' name='Synchronized2' id='Synchronized2' value='0'> no";}
									else{
										echo"<input type='radio' name='Synchronized2' id='Synchronized2' value='1'> yes
											<input type='radio' name='Synchronized2' id='Synchronized2' value='0' checked> no";}
					echo"	</td>
						
							<td align='left'><span class='style1'>Barcode</span></td>
							<td align='left'><input type='text'  name='Barcode2' id='Barcode2' value='$Barcode2' maxlength='10' style='width:200px;'></td>
						</tr>
			
			
						<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>DisplayTransferInDR</span></td>
							<td>";
									if($DisplayTransferInDR2==1){
										echo"<input type='radio' name='DisplayTransferInDR2' id='DisplayTransferInDR2' value='1' checked> yes
											<input type='radio' name='DisplayTransferInDR2' id='DisplayTransferInDR2' value='0'> no";}
									else{
										echo"<input type='radio' name='DisplayTransferInDR2' id='DisplayTransferInDR2' value='1'> yes
											<input type='radio' name='DisplayTransferInDR2' id='DisplayTransferInDR2' value='0' checked> no";}
					echo"	</td>
						
							<td align='left'><span class='style1'>NoneStandardBarcode</span></td>
							<td>";
									if($NoneStandardBarcode2==1){
										echo"<input type='radio' name='NoneStandardBarcode2' id='NoneStandardBarcode2' value='1' checked> yes
											<input type='radio' name='NoneStandardBarcode2' id='NoneStandardBarcode2' value='0'> no";}
									else{
										echo"<input type='radio' name='NoneStandardBarcode2' id='NoneStandardBarcode2' value='1'> yes
											<input type='radio' name='NoneStandardBarcode2' id='NoneStandardBarcode2' value='0' checked> no";}
					echo"	</td>
						</tr>
						
						<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>AutoGenerateSizeMeasure</span></td>
							<td>";
									if($AutoGenerateSizeMeasure2==1){
										echo"<input type='radio' name='AutoGenerateSizeMeasure2' id='AutoGenerateSizeMeasure2' value='1' checked> yes
											<input type='radio' name='AutoGenerateSizeMeasure2' id='AutoGenerateSizeMeasure2' value='0'> no";}
									else{
										echo"<input type='radio' name='AutoGenerateSizeMeasure2' id='AutoGenerateSizeMeasure2' value='1'> yes
											<input type='radio' name='AutoGenerateSizeMeasure2' id='AutoGenerateSizeMeasure2' value='0' checked> no";}
					echo"	</td>
						
							<td align='left'><span class='style1'>EnableDeliveryConfirmed</span></td>
							<td>";
									if($EnableDeliveryConfirmed2==1){
										echo"<input type='radio' name='EnableDeliveryConfirmed2' id='EnableDeliveryConfirmed2' value='1' checked> yes
											<input type='radio' name='EnableDeliveryConfirmed2' id='EnableDeliveryConfirmed2' value='0'> no";}
									else{
										echo"<input type='radio' name='EnableDeliveryConfirmed2' id='EnableDeliveryConfirmed2' value='1'> yes
											<input type='radio' name='EnableDeliveryConfirmed2' id='EnableDeliveryConfirmed2' value='0' checked> no";}
					echo"	</td>
						</tr>
				
						<tr bgcolor='#F7F7F7'> 
							<td align='left'><span class='style1'>PackingXNbrOfUnit</span></td>
						<td>";
								if($packingXNbrOfUnit2==1){
									echo"<input type='radio' name='packingXNbrOfUnit2' id='packingXNbrOfUnit2' value='1' checked> yes
											<input type='radio' name='packingXNbrOfUnit2' id='packingXNbrOfUnit2' value='0'> no";}
								else{
									echo"<input type='radio' name='packingXNbrOfUnit2' id='packingXNbrOfUnit2' value='1'> yes
										<input type='radio' name='packingXNbrOfUnit2' id='packingXNbrOfUnit2' value='0' checked> no";}
				echo"	</td>	
						
							<td align='left'><span class='style1'>EnablePricePerUnit</span></td>
							<td>";
									if($EnablePricePerUnit2==1){
										echo"<input type='radio' name='EnablePricePerUnit2' id='EnablePricePerUnit2' value='1' checked> yes
											<input type='radio' name='EnablePricePerUnit2' id='EnablePricePerUnit2' value='0'> no";}
									else{
										echo"<input type='radio' name='EnablePricePerUnit2' id='EnablePricePerUnit2' value='1'> yes
											<input type='radio' name='EnablePricePerUnit2' id='EnablePricePerUnit2' value='0' checked> no";}
					echo"	</td>
						</tr>
						
						<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Sale_SequentialRefViaCST</span></td>
							<td>";
									if($Sale_SequentialRefViaCST2==1){
										echo"<input type='radio' name='Sale_SequentialRefViaCST2' id='Sale_SequentialRefViaCST2' value='1' checked> yes
											<input type='radio' name='Sale_SequentialRefViaCST2' id='Sale_SequentialRefViaCST2' value='0'> no";}
									else{
										echo"<input type='radio' name='Sale_SequentialRefViaCST2' id='Sale_SequentialRefViaCST2' value='1'> yes
											<input type='radio' name='Sale_SequentialRefViaCST2' id='Sale_SequentialRefViaCST2' value='0' checked> no";}
					echo"	</td>
						
							<td align='left'><span class='style1'>Sale_SeperateLines</span></td>
							<td>";
									if($Sale_SeperateLines2==1){
										echo"<input type='radio' name='Sale_SeperateLines2' id='Sale_SeperateLines2' value='1' checked> yes
											<input type='radio' name='Sale_SeperateLines2' id='Sale_SeperateLines2' value='0'> no";}
									else{
										echo"<input type='radio' name='Sale_SeperateLines2' id='Sale_SeperateLines2' value='1'> yes
											<input type='radio' name='Sale_SeperateLines2' id='Sale_SeperateLines2' value='0' checked> no";}
					echo"	</td>
						</tr>
						
						<tr bgcolor='#F7F7F7'>
							<td align='left'><span class='style1'>Sale_changeClient</span></td>
							<td>";
									if($Sale_changeClient2==1){
										echo"<input type='radio' name='Sale_changeClient2' id='Sale_changeClient2' value='1' checked> yes
											<input type='radio' name='Sale_changeClient2' id='Sale_changeClient2' value='0'> no";}
									else{
										echo"<input type='radio' name='Sale_changeClient2' id='Sale_changeClient2' value='1'> yes
											<input type='radio' name='Sale_changeClient2' id='Sale_changeClient2' value='0' checked> no";}
					echo"	</td>
						</tr>
			
						<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Sale_CLAAccount</span></td>
							<td><input type='text'  name='Sale_CLAAccount21' id='Sale_CLAAccount21' value='$Sale_CLAAccount21' maxlength='10' style='width:200px;'></td>
						
							<td align='left'><span class='style1'>Sale_DCTAccount</span></td>
							<td align='left'><input type='text'  name='Sale_DCTAccount21' id='Sale_DCTAccount21' value='$Sale_DCTAccount21' maxlength='10' style='width:200px;'></td>				
						</tr>
						
						<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Sale_AWAccount</span></td>
							<td><input type='text'  name='Sale_AWAccount21' id='Sale_AWAccount21' value='$Sale_AWAccount21' maxlength='10' style='width:200px;'></td>
						
							<td align='left'><span class='style1'>Sale_TRPAccount</span></td>
							<td align='left'><input type='text'  name='Sale_TRPAccount21' id='Sale_TRPAccount21' value='$Sale_TRPAccount21' maxlength='10' style='width:200px;'></td>				
						</tr>
						
						<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>ExportDiscPerJV</span></td>
							<td>";
									if($ExportDiscPerJV2==1){
										echo"<input type='radio' name='ExportDiscPerJV2' id='ExportDiscPerJV2' value='1' checked> yes
											<input type='radio' name='ExportDiscPerJV2' id='ExportDiscPerJV2' value='0'> no";}
									else{
										echo"<input type='radio' name='ExportDiscPerJV2' id='ExportDiscPerJV2' value='1'> yes
											<input type='radio' name='ExportDiscPerJV2' id='ExportDiscPerJV2' value='0' checked> no";}
					echo"	</td>
						
							<td align='left'><span class='style1'>Sales_DiscountAcc</span></td>
							<td align='left'><input type='text'  name='Sales_DiscountAcc21' id='Sales_DiscountAcc21' value='$Sales_DiscountAcc21' maxlength='10' style='width:200px;'></td>				
						</tr>
						
						<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>LoadItems</span></td>
							<td>";
									if($LoadItems2==1){
										echo"<input type='radio' name='LoadItems2' id='LoadItems2' value='1' checked> yes
											<input type='radio' name='LoadItems2' id='LoadItems2' value='0'> no";}
									else{
										echo"<input type='radio' name='LoadItems2' id='LoadItems2' value='1'> yes
											<input type='radio' name='LoadItems2' id='LoadItems2' value='0' checked> no";}
					echo"	</td>
							<td align='left'><span class='style1'>CheckQuantity</span></td>
							<td>";
									if($CheckQuantity2==1){
										echo"<input type='radio' name='CheckQuantity2' id='CheckQuantity2' value='1' checked> yes
											<input type='radio' name='CheckQuantity2' id='CheckQuantity2' value='0'> no";}
									else{
										echo"<input type='radio' name='CheckQuantity2' id='CheckQuantity2' value='1'> yes
											<input type='radio' name='CheckQuantity2' id='CheckQuantity2' value='0' checked> no";}
					echo"	</td>
						</tr>
			
						<tr bgcolor='#F7F7F7'>
							<td align='left'><span class='style1'>TransportAccount</span></td>
							<td align='left'><input type='text'  name='TransportAccount2' id='TransportAccount2' value='$TransportAccount2' maxlength='10' style='width:200px;'></td>
							<td align='left'><span class='style1'>ExportTransportToJV</span></td>
							<td>";
									if($ExportTransportToJV2==1){
										echo"<input type='radio' name='ExportTransportToJV2' id='ExportTransportToJV2' value='1' checked> yes
											<input type='radio' name='ExportTransportToJV2' id='ExportTransportToJV2' value='0'> no";}
									else{
										echo"<input type='radio' name='ExportTransportToJV2' id='ExportTransportToJV2' value='1'> yes
											<input type='radio' name='ExportTransportToJV2' id='ExportTransportToJV2' value='0' checked> no";}
					echo"	</td>
						</tr>
						
						<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>Sale_CLAACcount2</span></td>
							<td align='left'><input type='text'  name='Sale_CLAACcount22' id='Sale_CLAACcount22' value='$Sale_CLAACcount22' maxlength='10' style='width:200px;'></td>
							<td align='left'><span class='style1'>Sale_DCTAccount2</span></td>
							<td align='left'><input type='text'  name='Sale_DCTAccount22' id='Sale_DCTAccount22' value='$Sale_DCTAccount22' maxlength='10' style='width:200px;'></td>
						</tr>
						<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>Sale_TRPAccount2</span></td>
							<td align='left'><input type='text'  name='Sale_TRPAccount22' id='Sale_TRPAccount22' value='$Sale_TRPAccount22' maxlength='10' style='width:200px;'></td>
						</tr>
						
						<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>Sale_AWAccount2</span></td>
							<td align='left'><input type='text'  name='Sale_AWAccount22' id='Sale_AWAccount22' value='$Sale_AWAccount22' maxlength='10' style='width:200px;'></td>
							<td align='left'><span class='style1'>Sales_DiscountAcc2</span></td>
							<td align='left'><input type='text'  name='Sales_DiscountAcc22' id='Sales_DiscountAcc22' value='$Sales_DiscountAcc22' maxlength='10' style='width:200px;'></td>
						</tr>
			
						<tr bgcolor='#F7F7F7'><td align='left' valign='top'><span class='style1'>IsoDescription</span></td>
							<td align='left'><textarea name='IsoDescription2' id='IsoDescription2' maxlength='500'  rows='4' style='width:200px;'>$IsoDescription2</textarea></td></tr>
							<td align='left' valign='top'><span class='style1'>IsoDlvDescription</span></td>
							<td align='left'><textarea name='IsoDlvDescription2' id='IsoDlvDescription2' maxlength='500'  rows='4' style='width:200px;'>$IsoDlvDescription2	</textarea></td></tr>
						</tr>
						
						<tr bgcolor='#F7F7F7'>
							<td align='left'><span class='style1'>Delivery_packPrice</span></td>
								<td>";
									if($Delivery_packPrice2==1){
										echo"<input type='radio' name='Delivery_packPrice2' id='Delivery_packPrice2' value='1' checked> yes
											<input type='radio' name='Delivery_packPrice2' id='Delivery_packPrice2' value='0'> no";}
									else{
										echo"<input type='radio' name='Delivery_packPrice2' id='Delivery_packPrice2' value='1'> yes
											<input type='radio' name='Delivery_packPrice2' id='Delivery_packPrice2' value='0' checked> no";}
					echo"	</td>
							<td align='left'><span class='style1'>show_QtySorder</span></td>
							<td>";
									if($show_QtySorder2==1){
										echo"<input type='radio' name='show_QtySorder2' id='show_QtySorder2' value='1' checked> yes
											<input type='radio' name='show_QtySorder2' id='show_QtySorder2' value='0'> no";}
									else{
										echo"<input type='radio' name='show_QtySorder2' id='show_QtySorder2' value='1'> yes
											<input type='radio' name='show_QtySorder2' id='show_QtySorder2' value='0' checked> no";}
					echo"	</td>
						</tr>
						
			
					<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>BonusAccount</span></td>
						<td align='left'><input  type='text' name='BonusAccount2' id='BonusAccount2' value='$BonusAccount2'  style='width:200px;'></td>
						<td align='left'><span class='style1'>ExportBonusToJV</span></td>
						<td>";
									if($ExportBonusToJV2==1){
										echo"<input type='radio' name='ExportBonusToJV2' id='ExportBonusToJV2' value='1' checked> yes
											<input type='radio' name='ExportBonusToJV2' id='ExportBonusToJV2' value='0'> no";}
									else{
										echo"<input type='radio' name='ExportBonusToJV2' id='ExportBonusToJV2' value='1'> yes
											<input type='radio' name='ExportBonusToJV2' id='ExportBonusToJV2' value='0' checked> no";}
					echo"	</td>
					</tr>
						
					<tr bgcolor='#F7F7F7'>	
						<td align='left'><span class='style1'>InvoiceComment</span></td>
						<td align='left'><textarea name='InvoiceComment2' id='InvoiceComment2' maxlength='500'  rows='4' style='width:200px;'>$InvoiceComment2</textarea></td></tr>
						<td align='left'><span class='style1'>WaybillComment</span></td>
						<td align='left'><textarea name='WaybillComment2' id='WaybillComment2' maxlength='500'  rows='4' style='width:200px;'>$WaybillComment2</textarea></td></tr>
					</tr>
			
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>Sale_MinPendingQty</span></td>
						<td align='left'><input  type='number' min='0' step='0.01' name='Sale_MinPendingQty2' id='Sale_MinPendingQty2' value='$Sale_MinPendingQty2'  style='width:200px;'></td>
						<td align='left'><span class='style1'>Sale_MaxExceedQty</span></td>
						<td align='left'><input type='text'  name='Sale_MaxExceedQty2' id='Sale_MaxExceedQty2' value='$Sale_MaxExceedQty2' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>Sale_MarginPer</span></td>
						<td align='left'><input  type='number' min='0' step='0.01' name='Sale_MarginPer2' id='Sale_MarginPer2' value='$Sale_MarginPer2'  style='width:200px;'></td>
						<td align='left'><span class='style1'>VATAccountNonStock</span></td>
						<td align='left'><input type='text'  name='VATAccountNonStock2' id='VATAccountNonStock2' value='$VATAccountNonStock2' maxlength='10' style='width:200px;'></td>
					</tr>
			
					<tr bgcolor='#F7F7F7'>
						<td align='left' valign='top'><span class='style1'>SorderComment</span></td>
						<td align='left'><textarea name='SorderComment2' id='SorderComment2' maxlength='500'  rows='4' style='width:200px;'>$SorderComment2</textarea></td></tr>			
						<td align='left'><span class='style1'>PrintDeliveryByWarehouse</span></td>
						<td>";
									if($PrintDeliveryByWarehouse2==1){
										echo"<input type='radio' name='PrintDeliveryByWarehouse2' id='PrintDeliveryByWarehouse2' value='1' checked> yes
											<input type='radio' name='PrintDeliveryByWarehouse2' id='PrintDeliveryByWarehouse2' value='0'> no";}
									else{
										echo"<input type='radio' name='PrintDeliveryByWarehouse2' id='PrintDeliveryByWarehouse2' value='1'> yes
											<input type='radio' name='PrintDeliveryByWarehouse2' id='PrintDeliveryByWarehouse2' value='0' checked> no";}
					echo"	</td>			
					</tr>
			
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>PriceDecimalBase</span></td>
						<td><input type='text'  name='PriceDecimalBase2' id='PriceDecimalBase2' value='$PriceDecimalBase2' maxlength='10' style='width:200px;'></td>
						<td align='left'><span class='style1'>ShowCostCentLayout</span></td>
						<td>";
								if($ShowCostCentLayout2==1){
									echo"<input type='radio' name='ShowCostCentLayout2' id='ShowCostCentLayout2' value='1' checked> yes
											<input type='radio' name='ShowCostCentLayout2' id='ShowCostCentLayout2' value='0'> no";}
								else{
									echo"<input type='radio' name='ShowCostCentLayout2' id='ShowCostCentLayout2' value='1'> yes
										<input type='radio' name='ShowCostCentLayout2' id='ShowCostCentLayout2' value='0' checked> no";}
				echo"	</td>	
					</tr>
					
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>VatAccountPOS</span></td>
						<td><input type='text'  name='VatAccountPOS2' id='VatAccountPOS2' value='$VatAccountPOS2' maxlength='10' style='width:200px;'></td>
						<td align='left'><span class='style1'>VATAccountNonStockPOS</span></td>
						<td><input type='text'  name='VATAccountNonStockPOS2' id='VATAccountNonStockPOS2' value='$VATAccountNonStockPOS2' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>CreditAccountNonStock</span></td>
						<td><input type='text'  name='CreditAccountNonStock2' id='CreditAccountNonStock2' value='$CreditAccountNonStock2' maxlength='10' style='width:200px;'></td>
						<td align='left'><span class='style1'>CreditAccountVATNonStock</span></td>
						<td><input type='text'  name='CreditAccountVATNonStock2' id='CreditAccountVATNonStock2' value='$CreditAccountVATNonStock2' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>CreditReturnNonStock</span></td>
						<td><input type='text'  name='CreditReturnNonStock2' id='CreditReturnNonStock2' value='$CreditReturnNonStock2' maxlength='10' style='width:200px;'></td>
						<td align='left'><span class='style1'>CreditVATReturnNonStock</span></td>
						<td><input type='text'  name='CreditVATReturnNonStock2' id='CreditVATReturnNonStock2' value='$CreditVATReturnNonStock2' maxlength='10' style='width:200px;'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'>VatAccountRefundable</span></td>
						<td><input type='text'  name='VatAccountRefundable2' id='VatAccountRefundable2' value='$VatAccountRefundable2' maxlength='10' style='width:200px;'></td>
						<td align='left'><span class='style1'>CreditAccountVATRefundable</span></td>
						<td><input type='text'  name='CreditAccountVATRefundable2' id='CreditAccountVATRefundable2' value='$CreditAccountVATRefundable2' maxlength='10' style='width:200px;'></td>
					</tr>";
			
echo"	</table>
	</div>
</div>";  
				
}


if($Tabnumber=='4'){	
		// Tab= Transfersetup
		
		 echo"	<div class='tabbertab'>
					<h2 title='transfersetup'>Transfer Setup</h2>";
		echo"		<div id='datagrid-d1' style='width:1088px; height:1000px; margin-top:5px; border:0px solid gray;'>";
			
			echo"  		<table border='0' cellpadding='0' cellspacing='10' align='left' valign='center' style='padding-left:40px;width:1000px; height=820' >
							<col width=120>
							<col width=200>
							<col width=120>
							<col width=200>
							<col width=250>
							
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> DebitAccount </span></td>
								<td><input type='text'  name='DebitAccount3' id='DebitAccount3' value='$DebitAccount3' maxlength='10'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>  CreditAccount </span></td>
								<td align='left'><input type='text'  name='CreditAccount3' id='CreditAccount3' value='$CreditAccount3' maxlength='10' style='width:200px;'></td>
							</tr>
			
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> CurrencyBase </span></td>
								<td><input type='number'  min='0' name='CurrencyBase3' id='CurrencyBase3' value='$CurrencyBase3' maxlength='11'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>  DefaultCur </span></td>
								<td align='left'><input type='text'  name='DefaultCur3' id='DefaultCur3' value='$DefaultCur3' maxlength='6' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Warehouse </span></td>
								<td><input type='text' name='Warehouse3' value='$CreditAccount3'></td>
								
								<td align='left'><span class='style1'>  WarehouseFG </span></td>
								<td><input type='text' name='WarehouseFG3' value='$WarehouseFG3'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> IsoDescription </span></td>
								<td><input type='text' name='IsoDescription3' value='$IsoDescription3'></td>
								
								<td align='left'><span class='style1'>  ShowItemSelling1Base1 </span></td>
								<td>";
									if($ShowItemSelling1Base13==1){
								echo"	<input type='radio' name='ShowItemSelling1Base13' value='1' checked> yes
										<input type='radio' name='ShowItemSelling1Base13' value='0'  > no";}
									else {
								echo "	<input type='radio' name='ShowItemSelling1Base13' value='1' > yes 
										<input type='radio' name='ShowItemSelling1Base13' value='0' checked > no";}
								echo "</td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Synchronized </span></td>
								<td>";
									if($Synchronized3==1){
								echo"	<input type='radio' name='Synchronized3' value='1' checked> yes
										<input type='radio' name='Synchronized3' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Synchronized3' value='1' > yes 
										<input type='radio' name='Synchronized3' value='0' checked > no ";}
								echo "</td>
								
								<td align='left'><span class='style1'>  Barcode </span></td>
								<td>";
									if($Barcode3==1){
								echo"	<input type='radio' name='Barcode3' value='1' checked> yes
										<input type='radio' name='Barcode3' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Barcode3' value='1' > yes 
										<input type='radio' name='Barcode3' value='0' checked > no";}
						echo "  </td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> ShowCostCentLayout </span></td>
								<td>";
									if($ShowCostCentLayout3==1){
								echo"	<input type='radio' name='ShowCostCentLayout3' value='1' checked> yes
										<input type='radio' name='ShowCostCentLayout3' value='0'  > no";}
									else {
								echo "	<input type='radio' name='ShowCostCentLayout3' value='1' > yes 
										<input type='radio' name='ShowCostCentLayout3' value='0' checked > no";}
							echo "	</td>
								
								<td align='left'><span class='style1'>  EnablePricePerUnit </span></td>
								<td>";
									if($EnablePricePerUnit3==1){
								echo"	<input type='radio' name='EnablePricePerUnit3' value='1' checked> yes
										<input type='radio' name='EnablePricePerUnit3' value='0'  > no";}
									else {
								echo "	<input type='radio' name='EnablePricePerUnit3' value='1' > yes 
										<input type='radio' name='EnablePricePerUnit3' value='0' checked > no";}
							echo "</td>
							</tr>
						
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'>  WithPricedefault </span></td>
								<td>";
									if($WithPricedefault3==1){
								echo"	<input type='radio' name='WithPricedefault3' value='1' checked> yes
										<input type='radio' name='WithPricedefault3' value='0'  > no";}
									else {
								echo "	<input type='radio' name='WithPricedefault3' value='1' > yes 
										<input type='radio' name='WithPricedefault3' value='0' checked > no";}
							echo "</td>
								
								<td align='left'><span class='style1'>  DirectStockAccPerWH </span></td>
								<td>";
									if($DirectStockAccPerWH3==1){
								echo"	<input type='radio' name='DirectStockAccPerWH3' value='1' checked> yes
										<input type='radio' name='DirectStockAccPerWH3' value='0'  > no";}
									else {
								echo "	<input type='radio' name='DirectStockAccPerWH3' value='1' > yes 
										<input type='radio' name='DirectStockAccPerWH3' value='0' checked > no";}
							echo "	</td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'>  NoneStandardBarcode </span></td>
								<td>";
									if($NoneStandardBarcode3==1){
								echo"	<input type='radio' name='NoneStandardBarcode3' value='1' checked> yes
										<input type='radio' name='NoneStandardBarcode3' value='0'  > no";}
									else {
								echo "	<input type='radio' name='NoneStandardBarcode3' value='1' > yes 
										<input type='radio' name='NoneStandardBarcode3' value='0' checked > no ";}
								echo "</td>
								
								<td align='left'><span class='style1'>  ExportVariation </span></td>
								<td>";
									if($ExportVariation3==1){
								echo"	<input type='radio' name='ExportVariation3' value='1' checked> yes
										<input type='radio' name='ExportVariation3' value='0'  > no";}
									else {
								echo "	<input type='radio' name='ExportVariation3' value='1' > yes 
										<input type='radio' name='ExportVariation3' value='0' checked > no ";}
							echo "	</td>
							</tr>
						</tr>";
echo"				</table>";
echo"			</div>";      
echo"		</div>";  
}


if($Tabnumber=='5'){	
		// Tab= Transsetup
		
		 echo"	<div class='tabbertab'>
					<h2 title='transsetup'>Trans Setup</h2>";
		echo"		<div id='datagrid-d1' style='width:1088px; height:1000px; margin-top:5px; border:0px solid gray;'>";
			
			echo"  		<table border='0' cellpadding='0' cellspacing='10' align='left' valign='center' style='padding-left:40px;width:1094px; height=820' >
							<col width=120>
							<col width=200>
							<col width=120>
							<col width=200>
							<col width=250>
							
							<tr>
								<td></td><td></td><td></td><td></td>
								<td align='right'>
									<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='Updatetranssetup()' ><span><span>Save</span></span></button>
								</td>
							</tr>
							
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> VAT Account </span></td>
								<td><input type='text'  name='VatAccount51' id='VatAccount51' value='$VatAccount51' maxlength='10'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>  AUX Account </span></td>
								<td align='left'><input type='text'  name='AUXAccount51' id='AUXAccount51' value='$AUXAccount51' maxlength='10' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Debit Account From </span></td>
								<td><input type='text'  name='DEBITACCOUNTFROM51' id='DEBITACCOUNTFROM51' value='$DEBITACCOUNTFROM51' maxlength='10'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>  Debit Account TO </span></td>
								<td align='left'><input type='text'  name='DEBITACCOUNTTO51' id='DEBITACCOUNTTO51' value='$DEBITACCOUNTTO51' maxlength='10' style='width:200px;'></td>
							</tr>
								
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Credit Account From </span></td>
								<td><input type='text'  name='CREDITACCOUNTFROM51' id='CREDITACCOUNTFROM51' value='$CREDITACCOUNTFROM51' maxlength='10'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>  Credit Account TO </span></td>
								<td align='left'><input type='text'  name='CREDITACCOUNTTO51' id='CREDITACCOUNTTO51' value='$CREDITACCOUNTTO51' maxlength='10' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Defualt Currency </span></td>
								<td><input type='text' name='DEFAULTCUR51' value='$DEFAULTCUR51' id='DEFAULTCUR51' maxlength='10' style='width:200px;'></td>
								
								<td align='left'><span class='style1'>  Voucher PrintFolio </span></td>
								<td>";
									if($Voucher_PrintFolio51==1){
								echo"	<input type='radio' name='Voucher_PrintFolio51' value='1' checked> yes
										<input type='radio' name='Voucher_PrintFolio51' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Voucher_PrintFolio51' value='1' > yes 
										<input type='radio' name='Voucher_PrintFolio51' value='0' checked > no";}
								echo "</td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
							
								<td align='left'><span class='style1'>  Voucher PrintJVRef </span></td>
								<td>";
									if($Voucher_PrintJVRef51==1){
								echo"	<input type='radio' name='Voucher_PrintJVRef51' value='1' checked> yes
										<input type='radio' name='Voucher_PrintJVRef51' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Voucher_PrintJVRef51' value='1' > yes 
										<input type='radio' name='Voucher_PrintJVRef51' value='0' checked > no";}
								echo "</td>
								
								<td align='left'><span class='style1'>  Voucher Print Date and Time </span></td>
								<td>";
									if($Voucher_PrintDateTime51==1){
								echo"	<input type='radio' name='Voucher_PrintDateTime51' value='1' checked> yes
										<input type='radio' name='Voucher_PrintDateTime51' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Voucher_PrintDateTime51' value='1' > yes 
										<input type='radio' name='Voucher_PrintDateTime51' value='0' checked > no";}
								echo "</td>
								
							</tr>
							
							<tr bgcolor='#F7F7F7'>
							
								<td align='left'><span class='style1'>  Voucher Auto Calc Amount </span></td>
								<td>";
									if($Voucher_AutoCalcAmnt51==1){
								echo"	<input type='radio' name='Voucher_AutoCalcAmnt51' value='1' checked> yes
										<input type='radio' name='Voucher_AutoCalcAmnt51' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Voucher_AutoCalcAmnt51' value='1' > yes 
										<input type='radio' name='Voucher_AutoCalcAmnt51' value='0' checked > no";}
								echo "</td>
								
								<td align='left'><span class='style1'>  Voucher Show Description </span></td>
								<td>";
									if($Voucher_ShowDescription251==1){
								echo"	<input type='radio' name='Voucher_ShowDescription251' value='1' checked> yes
										<input type='radio' name='Voucher_ShowDescription251' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Voucher_ShowDescription251' value='1' > yes 
										<input type='radio' name='Voucher_ShowDescription251' value='0' checked > no";}
								echo "</td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
							
								<td align='left'><span class='style1'>  Separate Accounts </span></td>
								<td>";
									if($SeparateAccounts51==1){
								echo"	<input type='radio' name='SeparateAccounts51' value='1' checked> yes
										<input type='radio' name='SeparateAccounts51' value='0'  > no";}
									else {
								echo "	<input type='radio' name='SeparateAccounts51' value='1' > yes 
										<input type='radio' name='SeparateAccounts51' value='0' checked > no";}
								echo "</td>
								
								<td align='left'><span class='style1'> Synchronized </span></td>
								<td>";
									if($Synchronized51==1){
								echo"	<input type='radio' name='Synchronized51' value='1' checked> yes
										<input type='radio' name='Synchronized51' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Synchronized51' value='1' > yes 
										<input type='radio' name='Synchronized51' value='0' checked > no";}
								echo "</td>
							</tr>
							
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Deafualt Costcenter </span></td>
								<td><input type='text'  name='DefaultCostcenter51' id='DefaultCostcenter51' value='$DefaultCostcenter51' maxlength='10'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>  Debit Project  </span></td>
								<td align='left'><input type='text'  name='DefaultProject51' id='DefaultProject51' value='$DefaultProject51' maxlength='10' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Iso Description </span></td>
								<td><textarea name='IsoDescription51' id='IsoDescription51' maxlength='10'style='font-size:12px; width:200px; '>$IsoDescription51</textarea></td>

								<td align='left'><span class='style1'>  JournalType  </span></td>
								<td align='left'>";

echo"								<input type='text' name='JournalType51' id='JournalType51' value='$JournalType51' style='width:200px' readonly>
								</td>
							</tr>";
							
							echo "<tr height='25px'>&nbsp;</tr>";
							$styleborder="align='center' style='border-right:1px solid gray; border-left:1px solid gray; border-top:1px solid gray; border-bottom:1px solid gray;'";
						 	//table fetch
echo"						<tr>
								<td colspan='5'>
									<div style='overflow:scroll;height:200px;width:1035px;border:0px solid #000000;'>
										<table border='0'  align='center'  class='tablecontent' cellpadding='0' cellspacing='0' >
											<col width='50'><col width='100'>
											<col width='100'><col width='100'><col width='100'>
											<col width='120'><col width='100'><col width='100'>
											<col width='150'><col width='150'><col width='180'>
											<col width='180'><col width='150'><col width='150'>
											<col width='120'><col width='150'><col width='150'>
											<col width='120'><col width='120'>
											<tr  height='50px' style='font-size:18px; border:1px solid gray; font-family:inherit; background-color:aqua; font-weight:bold;'>
												<td $styleborder>&nbsp;</td>
												<td $styleborder>VAT Acc</td>
												<td $styleborder>AUX Acc</td>
												<td $styleborder>Debit Acc From</td>
												<td $styleborder>Debit Acc To</td>
												<td $styleborder>Credit Acc From</td>
												<td $styleborder>Credit Acc To</td>
												<td $styleborder>Default Cur</td>
												<td $styleborder>Voucher Print Folio</td>
												<td $styleborder>Voucher Print JV Ref</td>
												<td $styleborder>Voucher Print Datetime</td>
												<td $styleborder>Voucher Auto Calc Amount</td>
												<td $styleborder>Voucher Show Desc</td>
												<td $styleborder>Separate Account</td>
												<td $styleborder>Synchronized</td>
												<td $styleborder>Defualt Costcenter</td>
												<td $styleborder>Default Project</td>
												<td $styleborder>Iso Description</td>
												<td $styleborder>Journal Type</td>
											</tr>";
												$querygetrecords="select * from transsetup";
												$resultrecords=mysql_query($querygetrecords,$connection);
												while($rowstrans=mysql_fetch_array($resultrecords)){
													
echo"										<tr align='center' height='15px'  style='font-weight:bold; font-size:15px; font-family:initial;'>
												<td valign=center align='center'>
													<img src='img/button_edit.png' name='rownumtrans' onclick='edittrans(\"".$rowstrans[17]."\")' title='Edit Record' style='cursor: pointer;'>
												</td>
												<td>$rowstrans[0]</td>
												<td>$rowstrans[1]</td>
												<td>$rowstrans[2]</td>
												<td>$rowstrans[3]</td>
												<td>$rowstrans[4]</td>
												<td>$rowstrans[5]</td>
												<td>$rowstrans[6]</td>
												<td>$rowstrans[7]</td>
												<td>$rowstrans[8]</td>
												<td>$rowstrans[9]</td>
												<td>$rowstrans[10]</td>
												<td>$rowstrans[11]</td>
												<td>$rowstrans[12]</td>
												<td>$rowstrans[13]</td>
												<td>$rowstrans[14]</td>
												<td>$rowstrans[15]</td>
												<td>$rowstrans[16]</td>
												<td>$rowstrans[17]</td>
											</tr>";
													}
																		
echo"									</table>
									</div>
								</td>
							</tr> ";
echo "					</tr>";
echo"				</table>";
echo"			</div>";      
echo"		</div>";      	

}



if($Tabnumber=='6'){
		// Tab= Transactionsetup
		
		 echo"	<div class='tabbertab'>
					<h2 title='transactionsetup'>Transaction Setup</h2>";
		echo"		<div id='datagrid-d1' style='width:1088px; height:1000px; margin-top:5px; border:0px solid gray;'>";
			
			echo"  		<table border='0' cellpadding='0' cellspacing='10' align='left' valign='center' style='padding-left:40px;width:1094px; height=820' >
							<col width=120>
							<col width=200>
							<col width=120>
							<col width=200>
							<col width=250>
							
							<tr>
								<td></td><td></td><td></td><td></td>
								<td align='right'>
									<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='Updatetransactionsetup()' ><span><span>Save</span></span></button>
								</td>
							</tr>
							
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Journal Type</span></td>
								<td><input type='text'  name='Journal_type81' id='Journal_type81' value='$Journal_type81' maxlength='10'style='font-size:12px; width:200px; ' ></td>	
								<td align='left'><span class='style1'>  Trans RMAcc </span></td>
								<td align='left'><input type='text'  name='Trans_RMAcc81' id='Trans_RMAcc81' value='$Trans_RMAcc81' maxlength='10' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Trans RM Vat Acc </span></td>
								<td><input type='text'  name='Trans_RMVatAcc81' id='Trans_RMVatAcc81' value='$Trans_RMVatAcc81' maxlength='10'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>  Trans Non RMAcc </span></td>
								<td align='left'><input type='text'  name='Trans_NonRMAcc81' id='Trans_NonRMAcc81' value='$Trans_NonRMAcc81' maxlength='10' style='width:200px;'></td>
							</tr>
								
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Trans NON VAT Acc </span></td>
								<td><input type='text'  name='Trans_NonRMVatAcc81' id='Trans_NonRMVatAcc81' value='$Trans_NonRMVatAcc81' maxlength='10'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>  Trans RMTTC Inc Acc</span></td>
								<td align='left'><input type='text'  name='Trans_RMTTCIncAcc81' id='Trans_RMTTCIncAcc81' value='$Trans_RMTTCIncAcc81' maxlength='10' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Trans NON RMTTC Inc Acc</span></td>
								<td><input type='text'  name='Trans_NonRMTTCIncAcc81' id='Trans_NonRMTTCIncAcc81' value='$Trans_NonRMTTCIncAcc81' maxlength='10'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>  Trans Currency</span></td>
								<td align='left'><input type='text'  name='Trans_Currency81' id='Trans_Currency81' value='$Trans_Currency81' maxlength='6' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								
								<td align='left'><span class='style1'>  Trans Default Currency </span></td>
								<td>";
									if($Trans_DefaultCur81==1){
								echo"	<input type='radio' name='Trans_DefaultCur81' value='1' checked> yes
										<input type='radio' name='Trans_DefaultCur81' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Trans_DefaultCur81' value='1' > yes 
										<input type='radio' name='Trans_DefaultCur81' value='0' checked > no";}
								echo "</td>
								
								<td align='left'><span class='style1'> Trans DirectStkDBt </span></td>
								<td><input type='text'  name='Trans_DirectStkDbt81' id='Trans_DirectStkDbt81' value='$Trans_DirectStkDbt81' maxlength='10'style='font-size:12px; width:200px; '></td>	
							</tr>
							
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Trans Direct StkCrd </span></td>
								<td><input type='text'  name='Trans_DirectStkCrd81' id='Trans_DirectStkCrd81' value='$Trans_DirectStkCrd81' maxlength='10'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>  Trans Direct StkCur</span></td>
								<td align='left'><input type='text'  name='Trans_DirectStkCur81' id='Trans_DirectStkCur81' value='$Trans_DirectStkCur81' maxlength='6' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Group Code </span></td>
								<td><input type='text'  name='Group_code81' id='Group_code81' value='$Group_code81' maxlength='16'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>  Synchronized </span></td>
								<td>";
									if($Synchronized81==1){
								echo"	<input type='radio' name='Synchronized81' value='1' checked> yes
										<input type='radio' name='Synchronized81' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Synchronized81' value='1' > yes 
										<input type='radio' name='Synchronized81' value='0' checked > no";}
								echo "</td>
							</tr>
							
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> CEP Credit Acc</span></td>
								<td><input type='text'  name='CEP_CreditAcc81' id='CEP_CreditAcc81' value='$CEP_CreditAcc81' maxlength='10'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>  Trans Waste Debit Acc</span></td>
								<td align='left'><input type='text'  name='Trans_wasteDebitAcc81' id='Trans_wasteDebitAcc81' value='$Trans_wasteDebitAcc81' maxlength='10' style='width:200px;'></td>
							</tr>
							
								
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Trans Waste Credit Acc</span></td>
								<td><input type='text'  name='Trans_wasteCreditAcc81' id='Trans_wasteCreditAcc81' value='$Trans_wasteCreditAcc81' maxlength='10'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>  Trans Waste Difference Acc</span></td>
								<td align='left'><input type='text'  name='Trans_wasteDifferenceAcc81' id='Trans_wasteDifferenceAcc81' value='$Trans_wasteDifferenceAcc81' maxlength='10' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Trans Discount Acc</span></td>
								<td><input type='text'  name='Trans_DiscountAcc81' id='Trans_DiscountAcc81' value='$Trans_DiscountAcc81' maxlength='10'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>  Trans Promotion Acc</span></td>
								<td align='left'><input type='text'  name='Trans_PromotionAcc81' id='Trans_PromotionAcc81' value='$Trans_PromotionAcc81' maxlength='10' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Iso Description</span></td>
								<td><textarea name='IsoDescription81' id='IsoDescription81' maxlength='100'style='font-size:12px; width:200px; '>$IsoDescription81</textarea></td>	
								<td align='left'><span class='style1'>  Trans VAT Account</span></td>
								<td align='left'><input type='text'  name='Trans_VATAccount81' id='Trans_VATAccount81' value='$Trans_VATAccount81' maxlength='10' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Trans Purchase Promotion Acc</span></td>
								<td><input type='text' name='trans_Purchasepromotionacc81' id='trans_Purchasepromotionacc81' value='$trans_Purchasepromotionacc81' maxlength='10'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>  Trans Tips Acct</span></td>
								<td align='left'><input type='text'  name='Trans_TipsAcc81' id='Trans_TipsAcc81' value='$Trans_TipsAcc81' maxlength='10' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Trans Export</span></td>
								<td><input type='text' name='trans_export81' id='trans_export81' value='$trans_export81' maxlength='10'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'></span></td>
								<td><input type='hidden'  name='Auto81' id='Auto81' value='$Auto81' maxlength='10'style='font-size:12px; width:200px; ' ></td>	
							</tr>
							
							";
							
							echo "<tr height='25px'>&nbsp;</tr>";
							$styleborder="align='center' style='border-right:1px solid gray; border-left:1px solid gray; border-top:1px solid gray; border-bottom:1px solid gray;'";
						 	//table fetch
echo"						<tr>
								<td colspan='5'>
									<div style='overflow:scroll;height:457px;width:1035px;border:0px solid #000000;'>
										<table border='0'  align='center'  class='tablecontent' cellpadding='0' cellspacing='0' >
											<col width='50'><col width='100'><col width='100'>
											<col width='100'><col width='100'><col width='100'>
											<col width='120'><col width='150'><col width='100'>
											<col width='150'><col width='150'><col width='180'>
											<col width='180'><col width='150'><col width='150'>
											<col width='120'><col width='150'><col width='150'>
											<col width='120'><col width='120'><col width='150'>
											<col width='180'><col width='150'><col width='150'>
											<col width='150'><col width='150'>
											<tr  height='50px' style='font-size:18px; border:1px solid gray; font-family:inherit; background-color:aqua; font-weight:bold;'>
												<td $styleborder>&nbsp;</td>
												<td $styleborder>Journal Type</td>
												<td $styleborder>Trans RM Acc</td>
												<td $styleborder>Tans RMVat Acc</td>
												<td $styleborder>Trans NON RMAcc</td>
												<td $styleborder>Trans NONRMVatAcc</td>
												<td $styleborder>Trans RMTTCInc Acc</td>
												<td $styleborder>Trans NonRMttcIncAcc</td>
												<td $styleborder>Trans Currency</td>
												<td $styleborder>Trans Default Cur</td>
												<td $styleborder>Trans Direct STK DBT</td>
												<td $styleborder>Trans Direct STK CRD</td>
												<td $styleborder>Trans Direct STK CUR</td>
												<td $styleborder>Group Code</td>
												<td $styleborder>Synchronized</td>
												<td $styleborder>CEP_CreditACC</td>
												<td $styleborder>Trans Waste Debit Acc</td>
												<td $styleborder>Trans Waste Credit Acc</td>
												<td $styleborder>Trans Discount Acc</td>
												<td $styleborder>Trans Promotion Acc</td>
												<td $styleborder>ISO Description</td>
												<td $styleborder>Trans VATAccount</td>
												<td $styleborder>Trans Purchasepromotion Acc</td>
												<td $styleborder>Trans Purchase Discount Acc</td>
												<td $styleborder>Trans Trips</td>
												<td $styleborder>Trans Export</td>
												
											</tr>";
												$querygetrecords1="select * from transactionsetup";
												$resultrecords1=mysql_query($querygetrecords1,$connection);
												while($rowstrans1=mysql_fetch_array($resultrecords1)){
													
echo"										<tr align='center' height='15px'  style='font-weight:bold; font-size:15px; font-family:initial;'>
												<td valign=center align='center'>
													<img src='img/button_edit.png' name='rownumtrans' onclick='edittransaction(\"".$rowstrans1[0]."\")' title='Edit Record' style='cursor: pointer;'>
												</td>
												<td>$rowstrans1[1]</td>
												<td>$rowstrans1[2]</td>
												<td>$rowstrans1[3]</td>
												<td>$rowstrans1[4]</td>
												<td>$rowstrans1[5]</td>
												<td>$rowstrans1[6]</td>
												<td>$rowstrans1[7]</td>
												<td>$rowstrans1[8]</td>
												<td>$rowstrans1[9]</td>
												<td>$rowstrans1[10]</td>
												<td>$rowstrans1[11]</td>
												<td>$rowstrans1[12]</td>
												<td>$rowstrans1[13]</td>
												<td>$rowstrans1[14]</td>
												<td>$rowstrans1[15]</td>
												<td>$rowstrans1[16]</td>
												<td>$rowstrans1[17]</td>
												<td>$rowstrans1[18]</td>
												<td>$rowstrans1[19]</td>
												<td>$rowstrans1[20]</td>
												<td>$rowstrans1[21]</td>
												<td>$rowstrans1[22]</td>
												<td>$rowstrans1[23]</td>
												<td>$rowstrans1[24]</td>
												<td>$rowstrans1[25]</td>
												<td>$rowstrans1[26]</td>
												<td>$rowstrans1[27]</td>
											</tr>";
													}				
echo"									</table>
									</div>
								</td>
							</tr> ";
echo "					</tr>";
echo"				</table>";
echo"			</div>";      
echo"		</div>"; 

}


if($Tabnumber=='8'){			
		// Tab= SendReceive Setup
		 echo"	<div class='tabbertab'>
					<h2 title='sendreceive setup'>Send Receive Setup</h2>";
		echo"		<div id='datagrid-d1' style='width:1088px; height:1000px; margin-top:5px; border:0px solid gray;'>";
			
			echo"  		<table border='0' cellpadding='0' cellspacing='10' align='left' valign='center' style='padding-left:40px;width:1094px; height=820' >
							<col width=120>
							<col width=200>
							<col width=120>
							<col width=200>
							<col width=250>
							
							<tr>
								<td></td><td></td><td></td><td></td>
								<td align='right'>
									<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='updatesreceivesetup()' ><span><span>Save</span></span></button>
								</td>
							</tr>
							
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Table Name </span></td>
								<td><input type='text'  name='Table_Name61' id='Table_Name61' value='$Table_Name61' maxlength='10'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>  Send Receive Type </span></td>
								<td>";
									if($SendReceive_Type61==1){
								echo"	<input type='radio' name='SendReceive_Type61' value='1' checked> yes
										<input type='radio' name='SendReceive_Type61' value='0'  > no";}
									else {
								echo "	<input type='radio' name='SendReceive_Type61' value='1' > yes 
										<input type='radio' name='SendReceive_Type61' value='0' checked > no";}
								echo "</td>
							</tr>
							
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Snd Recorde </span></td>
								<td><input type='number'  name='SndRec_Id61' id='SndRec_Id61' value='$SndRec_Id61' maxlength='10'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>  Master Table</span></td>
								<td align='left'><input type='text'  name='Master_Table61' id='Master_Table61' value='$Master_Table61' maxlength='10' style='width:200px;'></td>
							</tr>
								
							<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Master Field </span></td>
								<td><input type='text'  name='Master_Field61' id='Master_Field61' value='$Master_Field61' maxlength='10'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>  Table Secondary Field</span></td>
								<td align='left'><input type='text'  name='Table_SecondaryKey61' id='Table_SecondaryKey61' value='$Table_SecondaryKey61' maxlength='10' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Table Primary Key </span></td>
								<td><input type='text' name='Table_PrimaryKey61' value='$Table_PrimaryKey61' id='Table_PrimaryKey61' maxlength='10' style='width:200px;'></td>
								
								<td align='left'><span class='style1'> Field Name </span></td>
								<td><input type='text' name='Field_name61' id='Field_name61' value='$Field_name61'  maxlength='102' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
							
								<td align='left'><span class='style1'>  Sendreceive Old Batch </span></td>
								<td>";
									if($SndRec_OldBatch61==1){
								echo"	<input type='radio' name='SndRec_OldBatch61' value='1' checked> yes
										<input type='radio' name='SndRec_OldBatch61' value='0'  > no";}
									else {
								echo "	<input type='radio' name='SndRec_OldBatch61' value='1' > yes 
										<input type='radio' name='SndRec_OldBatch61' value='0' checked > no";}
								echo "</td>
								
								<td align='left'><span class='style1'>  Synchronized </span></td>
								<td>";
									if($Synchronized61==1){
								echo"	<input type='radio' name='Synchronized61' value='1' checked> yes
										<input type='radio' name='Synchronized61' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Synchronized61' value='1' > yes 
										<input type='radio' name='Synchronized61' value='0' checked > no";}
								echo "</td>
								
							</tr>
							
							<tr bgcolor='#F7F7F7'>
							
								<td align='left'><span class='style1'> Table Alias </span></td>
								<td><input type='text' name='Table_Alias61' value='$Table_Alias61' id='Table_Alias61' maxlength='2' style='width:200px;'></td>
								
								<td align='left'><span class='style1'>Master Alias</span></td>
								<td><input type='text' name='Master_Alias61' id='Master_Alias61' value='$Master_Alias61' maxlength='2' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
							
								<td align='left'><span class='style1'> Station Name</span></td>
								<td><input type='text' name='Station_Name61' value='$Station_Name61' id='Station_Name61' maxlength='20' style='width:200px;'></td>
								
								<td align='left'><span class='style1'>Table Primary</span></td>
								<td><input type='text' name='Table_Primary61' id='Table_Primary61' value='$Table_Primary61' maxlength='50' style='width:200px;'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
							
								<td align='left'><span class='style1'> Primary Alias</span></td>
								<td><input type='text' name='Primary_Alias61' value='$Primary_Alias61' id='Primary_Alias61' maxlength='2' style='width:200px;'></td>
								
								<td align='left'><span class='style1'>Table level</span></td>
								<td><input type='number' name='Table_Level61' id='Table_Level61' value='$Table_Level61' maxlength='11' style='width:200px;'></td>
							</tr>
							
							</tr>";
echo "					</tr>";
echo"				</table>";
echo"			</div>";      
echo"		</div>";   
}




if($Tabnumber=='7'){
			// Tab= Synchro Setup
		 echo"	<div class='tabbertab'>
					<h2 title='Synchro Setup'>Synchro Setup</h2>";
		echo"		<div id='datagrid-d1' style='width:1088px; height:1000px; margin-top:5px; border:0px solid gray;'>";
			
			echo"  		<table border='0' cellpadding='0' cellspacing='10' align='left' valign='center' style='padding-left:40px;width:1094px; height=820' >
							<col width=120>
							<col width=200>
							<col width=120>
							<col width=200>
							<col width=250>
							
							<tr>
								<td></td><td></td><td></td><td></td>
								<td align='right'>
									<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='updatesynchrosetup()' ><span><span>Save</span></span></button>
								</td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Synchro STP</span></td>
								<td><input type='number'  name='SynchroStp_Id71' id='SynchroStp_Id71' value='$SynchroStp_Id71' maxlength='10'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>Table Name</span></td>
								<td><input type='text'  name='Table_Name71' id='Table_Name71' value='$Table_Name71' maxlength='10'style='font-size:12px; width:200px; '></td>	
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Master Table</span></td>
								<td><input type='text'  name='Master_Table71' id='Master_Table71' value='$Master_Table71' maxlength='10'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>Master Field</span></td>
								<td><input type='text'  name='Master_Field71' id='Master_Field71' value='$Master_Field71' maxlength='10'style='font-size:12px; width:200px; '></td>	
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'>Table Secondary Key</span></td>
								<td><input type='text'  name='Table_SecondaryKey71' id='Table_SecondaryKey71' value='$Table_SecondaryKey71' maxlength='10'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>Table Primary Key</span></td>
								<td><input type='text'  name='Table_PrimaryKey71' id='Table_PrimaryKey71' value='$Table_PrimaryKey71' maxlength='10'style='font-size:12px; width:200px; '></td>	
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Field Name</span></td>
								<td><input type='text'  name='Field_name71' id='Field_name71' value='$Field_name71' maxlength='10'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'> Status Is Updated</span></td>
								<td>";
									if($Status_IsUpdate71==1){
								echo"	<input type='radio' name='Status_IsUpdate71' value='1' checked> yes
										<input type='radio' name='Status_IsUpdate71' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Status_IsUpdate71' value='1' > yes 
										<input type='radio' name='Status_IsUpdate71' value='0' checked > no";}
								echo "</td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Status Is Insert</span></td>
								<td>";
									if($Status_IsInsert71==1){
								echo"	<input type='radio' name='Status_IsInsert71' value='1' checked> yes
										<input type='radio' name='Status_IsInsert71' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Status_IsInsert71' value='1' > yes 
										<input type='radio' name='Status_IsInsert71' value='0' checked > no";}
								echo "</td>
								<td align='left'><span class='style1'> Status Is Deleted</span></td>
								<td>";
									if($Status_IsDelete71==1){
								echo"	<input type='radio' name='Status_IsDelete71' value='1' checked> yes
										<input type='radio' name='Status_IsDelete71' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Status_IsDelete71' value='1' > yes 
										<input type='radio' name='Status_IsDelete71' value='0' checked > no";}
								echo "</td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'>Table Primary</span></td>
								<td><input type='text'  name='Table_Primary71' id='Table_Primary71' value='$Table_Primary71' maxlength='50'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>Table Alias</span></td>
								<td><input type='text'  name='Table_Alias71' id='Table_Alias71' value='$Table_Alias71' maxlength='1'style='font-size:12px; width:200px; '></td>	
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'>Master Alias</span></td>
								<td><input type='text'  name='Master_Alias71' id='Master_Alias71' value='$Master_Alias71' maxlength='1'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>Primary Alias</span></td>
								<td><input type='text'  name='Primary_Alias71' id='Primary_Alias71' value='$Primary_Alias71' maxlength='1'style='font-size:12px; width:200px; '></td>	
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'>Primary Field</span></td>
								<td><input type='text'  name='Primary_Field71' id='Primary_Field71' value='$Primary_Field71' maxlength='50'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>Table Level</span></td>
								<td><input type='number'  name='Table_Level71' id='Table_Level71' value='$Table_Level71' maxlength='11'style='font-size:12px; width:200px; '></td>	
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Synchronized</span></td>
								<td>";
									if($Synchronized71==1){
								echo"	<input type='radio' name='Synchronized71' value='1' checked> yes
										<input type='radio' name='Synchronized71' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Synchronized71' value='1' > yes 
										<input type='radio' name='Synchronized71' value='0' checked > no";}
								echo "</td>
							</tr>
							";
echo"					</table>";
echo"				</div>";      
echo"			</div>";      
}



if($Tabnumber=='12'){
	// Tab= Production Setup
		
		 echo"	<div class='tabbertab'>
					<h2 title='production setup'>Production Setup</h2>";
		echo"		<div id='datagrid-d1' style='width:1088px; height:1000px; margin-top:5px; border:0px solid gray;'>";
			echo"  		<table border='0' cellpadding='0' cellspacing='10' align='left' valign='center' style='padding-left:40px;width:1094px; height=820' >
							<col width=250>
							<col width=200>
							<col width=250>
							<col width=200>
							<col width=250>
							
							<tr>
								<td></td><td></td><td></td><td></td>
								<td align='right'>
									<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='Updateproductionsetup()' ><span><span>Save</span></span></button>
								</td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Currency Code </span></td>
								<td><input type='text'  name='Currency_code10' id='Currency_code10' value='$Currency_code10' maxlength='6'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'> Project Code</span></td>
								<td><input type='text'  name='Project_code10' id='Project_code10' value='$Project_code10' maxlength='15'style='font-size:12px; width:200px; '></td>	
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Costcenter Code</span></td>
								<td><input type='number'  name='Costcenter_code10' id='Costcenter_code10' value='$Costcenter_code10' maxlength='15'style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>Warehouse Code</span></td>
								<td><input type='text'  name='Warehouse_code10' id='Warehouse_code10' value='$Warehouse_code10' maxlength='15'style='font-size:12px; width:200px; '></td>	
							</tr>
							
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Display Barcode</span></td>
								<td>";
									if($DISPLAYBARCODE10==1){
								echo"	<input type='radio' name='DISPLAYBARCODE10' value='1' checked> yes
										<input type='radio' name='DISPLAYBARCODE10' value='0'  > no";}
									else {
								echo "	<input type='radio' name='DISPLAYBARCODE10' value='1' > yes 
										<input type='radio' name='DISPLAYBARCODE10' value='0' checked > no";}
								echo "</td>
								<td align='left'><span class='style1'> Credit Account</span></td>
								<td><input type='text'  name='CreditAccount10' id='CreditAccount10' value='$CreditAccount10' maxlength='11' style='font-size:12px; width:200px; '></td>	
							</tr>
							
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Debit Account </span></td>
								<td><input type='number'  name='DebitAccount10' id='DebitAccount10' value='$DebitAccount10' maxlength='11' style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>Currency Base</span></td>
								<td><input type='text'  name='Currencybase10' id='Currencybase10' value='$Currencybase10' maxlength='7' style='font-size:12px; width:200px; '></td>	
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Setup Default Unit Recipe </span></td>
								<td><input type='number'  name='Setup_DefaultUnitRecipe10' id='Setup_DefaultUnitRecipe10' value='$Setup_DefaultUnitRecipe10' maxlength='16' style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>Setup Name Of RMW</span></td>
								<td><input type='text'  name='Setup_NameOfRMW10' id='Setup_NameOfRMW10' value='$Setup_NameOfRMW10' maxlength='16' style='font-size:12px; width:200px; '></td>	
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Setup NameOfRMC </span></td>
								<td><input type='number'  name='Setup_NameOfRMC10' id='Setup_NameOfRMC10' value='$Setup_NameOfRMC10' maxlength='16' style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>Setup Name Of MAchine OnD</span></td>
								<td><input type='text'  name='Setup_NameOfMachineOND10' id='Setup_NameOfMachineOND10' value='$Setup_NameOfMachineOND10' maxlength='16' style='font-size:12px; width:200px; '></td>	
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Setup Name Of Paper Machine </span></td>
								<td><input type='number'  name='Setup_NameOfPaperMachine10' id='Setup_NameOfPaperMachine10' value='$Setup_NameOfPaperMachine10' maxlength='16' style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>Setup Default Pulper</span></td>
								<td><input type='text'  name='Setup_DefaultPulper10' id='Setup_DefaultPulper10' value='$Setup_DefaultPulper10' maxlength='12' style='font-size:12px; width:200px; '></td>	
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Setup WH of Carton Product</span></td>
								<td><input type='number'  name='Setup_WHofCartonProduct10' id='Setup_WHofCartonProduct10' value='$Setup_WHofCartonProduct10' maxlength='16' style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>Setup NbofHours Shift</span></td>
								<td><input type='number'  name='Setup_NbOfHoursShiftCh10' id='Setup_NbOfHoursShiftCh10' value='$Setup_NbOfHoursShiftCh10' maxlength='12' style='font-size:12px; width:200px; '></td>	
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Setup Begining Shift Ch</span></td>
								<td><input type='number'  name='Setup_BeginingShiftCh10' id='Setup_BeginingShiftCh10' value='$Setup_BeginingShiftCh10' maxlength='16' style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>Setup Default WH CHemical</span></td>
								<td><input type='number'  name='Setup_DefaultWHChemical10' id='Setup_DefaultWHChemical10' value='$Setup_DefaultWHChemical10' maxlength='12' style='font-size:12px; width:200px; '></td>	
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Setup Begining Shift Ch</span></td>
								<td><input type='number'  name='Setup_BeginingShiftCh10' id='Setup_BeginingShiftCh10' value='$Setup_BeginingShiftCh10' maxlength='16' style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>Setup Default WH CHemical</span></td>
								<td><input type='number'  name='Setup_DefaultWHChemical10' id='Setup_DefaultWHChemical10' value='$Setup_DefaultWHChemical10' maxlength='12' style='font-size:12px; width:200px; '></td>	
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Setup Max Bobine Reference</span></td>
								<td><input type='number'  name='Setup_MaxBobineReference10' id='Setup_MaxBobineReference10' value='$Setup_MaxBobineReference10' maxlength='18' style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'> Setup Name Of MAchine ON</span></td>
								<td><input type='text'  name='Setup_NameOfMachineON10' id='Setup_NameOfMachineON10' value='$Setup_NameOfMachineON10' maxlength='18' style='font-size:12px; width:200px; '></td>	
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Setup Default Client</span></td> 
								<td><input type='number'  name='Setup_defaultClient10' id='Setup_defaultClient10' value='$Setup_defaultClient10' maxlength='12' style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>Setup Lock date From </span></td>
								<td><input type='date'  name='Setup_LockDateFrom10' id='Setup_LockDateFrom10' value='$Setup_LockDateFrom10' maxlength='12' style='font-size:12px; width:200px; '></td>	
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Setup Lock Date TO </span></td>
								<td><input type='date'  name='Setup_LockDateTo10' id='Setup_LockDateTo10' value='$Setup_LockDateTo10' maxlength='12' style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>Setup Production Carton </span></td>
								<td><input type='number'  name='Setup_ProductionCarton10' id='Setup_ProductionCarton10' value='$Setup_ProductionCarton10' style='font-size:12px; width:200px; '></td>	
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Setup Generat Expenses </span></td>
								<td>";
									if($Setup_GeneratExpenses10==1){
								echo"	<input type='radio' name='Setup_GeneratExpenses10' value='1' checked> yes
										<input type='radio' name='Setup_GeneratExpenses10' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Setup_GeneratExpenses10' value='1' > yes 
										<input type='radio' name='Setup_GeneratExpenses10' value='0' checked > no";}
								echo "</td>
								<td align='left'><span class='style1'> Setup Default Code for Waste</span></td>
								<td><input type='text'  name='Setup_DefaultCodeforWaste10' id='Setup_DefaultCodeforWaste10' value='$Setup_DefaultCodeforWaste10' maxlength='22' style='font-size:12px; width:200px; '></td>	
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Setup DefaultWH Waste </span></td>
								<td><input type='text'  name='Setup_DefaultWHWaste10' id='Setup_DefaultWHWaste10' value='$Setup_DefaultWHWaste10' maxlength='17' style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>Setup Default Costcent Ch </span></td>
								<td><input type='number'  name='Setup_DefaultCostCentCh10' id='Setup_DefaultCostCentCh10' value='$Setup_DefaultCostCentCh10' maxlength='16' style='font-size:12px; width:200px; '></td>	
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> Setup Default CostCentWast </span></td>
								<td><input type='text'  name='Setup_DefaultCostCentWast10' id='Setup_DefaultCostCentWast10' value='$Setup_DefaultCostCentWast10' maxlength='16' style='font-size:12px; width:200px; '></td>	
								<td align='left'><span class='style1'>Synchronized</span></td>
								<td>";
									if($Synchronized10==1){
								echo"	<input type='radio' name='Synchronized10' value='1' checked> yes
										<input type='radio' name='Synchronized10' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Synchronized10' value='1' > yes 
										<input type='radio' name='Synchronized10' value='0' checked > no";}
								echo "</td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'>Barcode</span></td>
								<td>";
									if($Barcode10==1){
								echo"	<input type='radio' name='Barcode10' value='1' checked> yes
										<input type='radio' name='Barcode10' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Barcode10' value='1' > yes 
										<input type='radio' name='Barcode10' value='0' checked > no";}
								echo "</td>
								
								<td align='left'><span class='style1'>Setup Generate NonStock</span></td>
								<td>";
									if($Setup_GenerateNonStock10==1){
								echo"	<input type='radio' name='Setup_GenerateNonStock10' value='1' checked> yes
										<input type='radio' name='Setup_GenerateNonStock10' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Setup_GenerateNonStock10' value='1' > yes 
										<input type='radio' name='Setup_GenerateNonStock10' value='0' checked > no";}
								echo "</td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'>Setup Disable Deduct RM</span></td>
								<td>";
									if($Setup_DisableDeductRM10==1){
								echo"	<input type='radio' name='Setup_DisableDeductRM10' value='1' checked> yes
										<input type='radio' name='Setup_DisableDeductRM10' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Setup_DisableDeductRM10' value='1' > yes 
										<input type='radio' name='Setup_DisableDeductRM10' value='0' checked > no";}
								echo "</td>
								
								<td align='left'><span class='style1'>Genrate Waste Account</span></td>
								<td>";
									if($GenerateWasteAccount10==1){
								echo"	<input type='radio' name='GenerateWasteAccount10' value='1' checked> yes
										<input type='radio' name='GenerateWasteAccount10' value='0'  > no";}
									else {
								echo "	<input type='radio' name='GenerateWasteAccount10' value='1' > yes 
										<input type='radio' name='GenerateWasteAccount10' value='0' checked > no";}
								echo "</td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'>DisableIdeal</span></td>
								<td>";
									if($DisableIdeal10==1){
								echo"	<input type='radio' name='DisableIdeal10' value='1' checked> yes
										<input type='radio' name='DisableIdeal10' value='0'  > no";}
									else {
								echo "	<input type='radio' name='DisableIdeal10' value='1' > yes 
										<input type='radio' name='DisableIdeal10' value='0' checked > no";}
								echo "</td>
								
								<td align='left'><span class='style1'>Show Costcent Layout</span></td>
								<td>";
									if($ShowCostCentLayout10==1){
								echo"	<input type='radio' name='ShowCostCentLayout10' value='1' checked> yes
										<input type='radio' name='ShowCostCentLayout10' value='0'  > no";}
									else {
								echo "	<input type='radio' name='ShowCostCentLayout10' value='1' > yes 
										<input type='radio' name='ShowCostCentLayout10' value='0' checked > no";}
								echo "</td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'>Actual Zero</span></td>
								<td>";
									if($Actual_Zero10==1){
								echo"	<input type='radio' name='Actual_Zero10' value='1' checked> yes
										<input type='radio' name='Actual_Zero10' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Actual_Zero10' value='1' > yes 
										<input type='radio' name='Actual_Zero10' value='0' checked > no";}
								echo "</td>
								
								<td align='left'><span class='style1'>production ExtraInfo</span></td>
								<td>";
									if($Production_extraInfo10==1){
								echo"	<input type='radio' name='Production_extraInfo10' value='1' checked> yes
										<input type='radio' name='Production_extraInfo10' value='0'  > no";}
									else {
								echo "	<input type='radio' name='Production_extraInfo10' value='1' > yes 
										<input type='radio' name='Production_extraInfo10' value='0' checked > no";}
								echo "</td>
							</tr>";
echo"					</table>";
echo"				</div>";      
echo"			</div>";   


}
			if($Tabnumber=='13'){
				// Tab= Purchas Charges Setup Setup
		 echo"	<div class='tabbertab'>
					<h2 title='Purchas Charges Setup setup'>Purchas Charges Setup Setup</h2>";
echo"				<div id='datagrid-d1' style='width:1088px; height:1000px; margin-top:5px; border:0px solid gray;'>";
echo"  				<table border='0' cellpadding='0' cellspacing='10' align='left' valign='center' style='padding-left:40px;width:1094px; height=820' >
						<col width=120>
						<col width=200>
						<col width=120>
						<col width=200>
						<col width=250>
						<tr>
							<td></td><td></td><td></td><td></td>
							<td align='right'>
								<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='UpdatePurchasecharges()' ><span><span>Save</span></span></button>
							</td>
						</tr>
						
						<tr bgcolor='#F7F7F7'>
							<td align='left'><span class='style1'> Ledger Number Debit</span></td>
							<td><input type='text'  name='Ledger_NumberDebit11' id='Ledger_NumberDebit11' value='$Ledger_NumberDebit11' maxlength='10' style='font-size:12px; width:200px; '></td>	
							<input type='hidden'  name='Auto11' id='Auto11' value='$Auto11' maxlength='10' style='font-size:12px; width:200px; '>
							<td align='left'><span class='style1'>Ledger Number credit</span></td>
							<td><input type='text'  name='Ledger_numberCredit11' id='Ledger_numberCredit11' value='$Ledger_numberCredit11' maxlength='10' style='font-size:12px; width:200px; '></td>	
						</tr>
						
						<tr bgcolor='#F7F7F7'>
							<td align='left'><span class='style1'>Currency Code</span></td>
							<td><input type='text'  name='Currency_code11' id='Currency_code11' value='$Currency_code11' maxlength='6' style='font-size:12px; width:200px; '></td>	
							<td align='left'><span class='style1'> Charges Is VAT</span></td>
							<td>";
								if($Charges_isVat11==1){
							echo"	<input type='radio' name='Charges_isVat11' value='1' checked> yes
									<input type='radio' name='Charges_isVat11' value='0'  > no";}
								else {
							echo "	<input type='radio' name='Charges_isVat11' value='1' > yes 
									<input type='radio' name='Charges_isVat11' value='0' checked > no";}
							echo "</td>
						</tr>
						
						<tr bgcolor='#F7F7F7'>
							<td align='left'><span class='style1'>Charge Type</span></td>
							<td><input type='text'  name='Charge_Type11' id='Charge_Type11' value='$Charge_Type11' maxlength='51' style='font-size:12px; width:200px; '></td>	
							<td align='left'><span class='style1'>Synchronized</span></td>
							<td>";
								if($Synchronized11==1){
							echo"	<input type='radio' name='Synchronized11' value='1' checked> yes
									<input type='radio' name='Synchronized11' value='0'  > no";}
								else {
							echo "	<input type='radio' name='Synchronized11' value='1' > yes 
									<input type='radio' name='Synchronized11' value='0' checked > no";}
							echo "</td>
						</tr>
						
						<tr bgcolor='#F7F7F7'>
							<td align='left'><span class='style1'>Distribution Method</span></td>
							<td>";
								if($Distribution_Method11==1){
							echo"	<input type='radio' name='Distribution_Method11' value='1' checked> yes
									<input type='radio' name='Distribution_Method11' value='0'  > no";}
								else {
							echo "	<input type='radio' name='Distribution_Method11' value='1' > yes 
									<input type='radio' name='Distribution_Method11' value='0' checked > no";}
							echo "</td>
						</tr>
						
					";							
echo "					<tr height='25px'>&nbsp;</tr>";
							$styleborder="align='center' style='border-right:1px solid gray; border-left:1px solid gray; border-top:1px solid gray; border-bottom:1px solid gray;'";
							//table fetch
echo"					<tr>
							<td colspan='5'>
								<div style='overflow:scroll;height:200px;width:1035px;border:0px solid #000000;'>
									<table border='0'  align='center'  class='tablecontent' cellpadding='0' cellspacing='0' >
										<col width='50'><col width='150'>
										<col width='150'><col width='150'><col width='150'>
										<col width='150'><col width='150'><col width='150'>
										<tr  height='50px' style='font-size:18px; border:1px solid gray; color:white; font-family:inherit; background-color:#016a84; font-weight:bold;'>
											<td $styleborder>&nbsp;</td>
											<td $styleborder>Ledger Number Debit</td>
											<td $styleborder>Ledger Number Credit</td>
											<td $styleborder>Currency Code</td>
											<td $styleborder>Charges Is Vat</td>
											<td $styleborder>Charges Type</td>
											<td $styleborder>Synchronized/td>
											<td $styleborder>Distrubution Method/td>
										</tr>";
											$querygetrecords1="select * from purchasechargessetup";
											$resultrecords1=mysql_query($querygetrecords1,$connection);
											while($rowspurchase=mysql_fetch_array($resultrecords1)){
												
echo"									<tr align='center' height='15px'  style='font-weight:bold; font-size:15px; font-family:initial;'>
											<td valign=center align='center'>
												<img src='img/button_edit.png' name='rownumpurchasecharges' onclick='editpurchasecharges(\"".$rowspurchase[0]."\",13)' title='Edit Record' style='cursor: pointer;'>
											</td>
											<td>$rowspurchase[1]</td>
											<td>$rowspurchase[2]</td>
											<td>$rowspurchase[3]</td>
											<td>$rowspurchase[4]</td>
											<td>$rowspurchase[5]</td>
											<td>$rowspurchase[6]</td>
											<td>$rowspurchase[7]</td>
										</tr>";
											}							
echo"								</table>
								</div>
							</td>
						</tr>";
//end of the sub tab 
echo"			</table>";
echo"		</div>";      
echo"	</div>";  
}

if($Tabnumber=='14'){
			// Tab= RMA Setup
			 echo"	<div class='tabbertab'>
						<h2 title='RMA setup'>RMA Setup</h2>";
			echo"		<div id='datagrid-d1' style='width:1088px; height:1000px; margin-top:5px; border:0px solid gray;'>";
				echo"  		<table border='0' cellpadding='0' cellspacing='10' align='left' valign='center' style='padding-left:40px;width:1094px; height=820' >
								<col width=120>
								<col width=200>
								<col width=120>
								<col width=200>
								<col width=250>
								<tr>
									<td></td><td></td><td></td><td></td>
									<td align='right'>
										<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='Updatermasetup()' ><span><span>Save</span></span></button>
									</td>
								</tr>
								
								<tr bgcolor='#F7F7F7'>
									<td align='left'><span class='style1'> Ledger Number Debit</span></td>
									<td>";
										if($RMA_CheckError12==1){
									echo"	<input type='radio' name='RMA_CheckError12' value='1' checked> yes
											<input type='radio' name='RMA_CheckError12' value='0'  > no";}
										else {
									echo "	<input type='radio' name='RMA_CheckError12' value='1' > yes 
											<input type='radio' name='RMA_CheckError12' value='0' checked > no";}
									echo "</td>	
									<td align='left'><span class='style1'>Ledger Number credit</span></td>
									<td><textarea name='REMARK_REPORT12' id='REMARK_REPORT12'maxlength='200' style='font-size:12px; width:200px; '>$REMARK_REPORT12</textarea></td>	
								</tr>
						
								<tr bgcolor='#F7F7F7'>
									<td align='left'><span class='style1'>Synchronized</span></td>
									<td>";
										if($Synchronized12==1){
									echo"	<input type='radio' name='Synchronized12' value='1' checked> yes
											<input type='radio' name='Synchronized12' value='0'  > no";}
										else {
									echo "	<input type='radio' name='Synchronized12' value='1' > yes 
											<input type='radio' name='Synchronized12' value='0' checked > no";}
									echo "</td>	
									<td align='left'><span class='style1'>Default Currency</span></td>
									<td><input type='text'  name='Default_Currency12' id='Default_Currency12' value='$Default_Currency12' maxlength='6' style='font-size:12px; width:200px; '></td>	
								</tr>";

						
echo"						</table>
						</div>
					</td>
				</tr>";
}				
						
				if($Tabnumber=='15'){
			// Tab= Receipt Setup
			 echo"	<div class='tabbertab'>
						<h2 title='Receipt setup'>Receipt Setup</h2>";
			echo"		<div id='datagrid-d1' style='width:1088px; height:1000px; margin-top:5px; border:0px solid gray;'>";
				echo"  		<table border='0' cellpadding='0' cellspacing='10' align='left' valign='center' style='padding-left:40px;width:1094px; height=820' >
								<col width=250>
								<col width=200>
								<col width=250>
								<col width=200>
								<col width=250>
								<tr>
									<td></td><td></td><td></td><td></td>
									<td align='right'>
										<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='Updatereceiptsetup()' ><span><span>Save</span></span></button>
									</td>
								</tr>
								
								<tr bgcolor='#F7F7F7'>
									<td align='left'><span class='style1'> VAT Account </span></td>
									<td><input type='text'  name='VATAccount13' id='VATAccount13' value='$VATAccount13' maxlength='10' style='font-size:12px; width:200px; '></td>	
									<td align='left'><span class='style1'>AUX Account </span></td>
									<td><input type='text'  name='AUXAccount13' id='AUXAccount13' value='$AUXAccount13' maxlength='10' style='font-size:12px; width:200px; '></td>	
								</tr>
								
								<tr bgcolor='#F7F7F7'>
									<td align='left'><span class='style1'> Debit Account From  </span></td>
									<td><input type='text'  name='DEBITACCOUNTFROM13' id='DEBITACCOUNTFROM13' value='$DEBITACCOUNTFROM13' maxlength='15' style='font-size:12px; width:200px; '></td>	
									<td align='left'><span class='style1'>Debit Account To</span></td>
									<td><input type='text'  name='DEBITACCOUNTTO13' id='DEBITACCOUNTTO13' value='$DEBITACCOUNTTO13' maxlength='15' style='font-size:12px; width:200px; '></td>	
								</tr>
								
								<tr bgcolor='#F7F7F7'>
									<td align='left'><span class='style1'> Credit Account From </span></td>
									<td><input type='text'  name='CREDITACCOUNTFROM13' id='CREDITACCOUNTFROM13' value='$CREDITACCOUNTFROM13' maxlength='15' style='font-size:12px; width:200px; '></td>	
									<td align='left'><span class='style1'>Credit Account To </span></td>
									<td><input type='text'  name='CREDITACCOUNTTO13' id='CREDITACCOUNTTO13' value='$CREDITACCOUNTTO13' maxlength='15' style='font-size:12px; width:200px; '></td>	
								</tr>
								
								<tr bgcolor='#F7F7F7'>
									<td align='left'><span class='style1'> Default Cur </span></td>
									<td><input type='text'  name='DEFAULTCUR13' id='DEFAULTCUR13' value='$DEFAULTCUR13' maxlength='6' style='font-size:12px; width:200px; '></td>	
									<td align='left'><span class='style1'>Voucher PrintFolio</span></td>
									<td>";
										if($Voucher_PrintFolio13==1){
									echo"	<input type='radio' name='Voucher_PrintFolio13' value='1' checked> yes
											<input type='radio' name='Voucher_PrintFolio13' value='0'  > no";}
										else {
									echo "	<input type='radio' name='Voucher_PrintFolio13' value='1' > yes 
											<input type='radio' name='Voucher_PrintFolio13' value='0' checked > no";}
									echo "</td>	
								</tr>
								
								<tr bgcolor='#F7F7F7'>
									<td align='left'><span class='style1'>Voucher PrintJV Ref</span></td>
									<td>";
										if($Voucher_PrintJVRef13==1){
									echo"	<input type='radio' name='Voucher_PrintJVRef13' value='1' checked> yes
											<input type='radio' name='Voucher_PrintJVRef13' value='0'  > no";}
										else {
									echo "	<input type='radio' name='Voucher_PrintJVRef13' value='1' > yes 
											<input type='radio' name='Voucher_PrintJVRef13' value='0' checked > no";}
									echo "</td>
									
									<td align='left'><span class='style1'>Voucher Print Datetime</span></td>
									<td>";
										if($Voucher_PrintDateTime13==1){
									echo"	<input type='radio' name='Voucher_PrintDateTime13' value='1' checked> yes
											<input type='radio' name='Voucher_PrintDateTime13' value='0'  > no";}
										else {
									echo "	<input type='radio' name='Voucher_PrintDateTime13' value='1' > yes 
											<input type='radio' name='Voucher_PrintDateTime13' value='0' checked > no";}
									echo "</td>	
								</tr>
								
								<tr bgcolor='#F7F7F7'>
									<td align='left'><span class='style1'>Voucher AutoCal Amont</span></td>
									<td>";
										if($Voucher_AutoCalcAmnt13==1){
									echo"	<input type='radio' name='Voucher_AutoCalcAmnt13' value='1' checked> yes
											<input type='radio' name='Voucher_AutoCalcAmnt13' value='0'  > no";}
										else {
									echo "	<input type='radio' name='Voucher_AutoCalcAmnt13' value='1' > yes 
											<input type='radio' name='Voucher_AutoCalcAmnt13' value='0' checked > no";}
									echo "</td>
									
									<td align='left'><span class='style1'>Voucher Show Description</span></td>
									<td>";
										if($Voucher_ShowDescription213==1){
									echo"	<input type='radio' name='Voucher_ShowDescription213' value='1' checked> yes
											<input type='radio' name='Voucher_ShowDescription213' value='0'  > no";}
										else {
									echo "	<input type='radio' name='Voucher_ShowDescription213' value='1' > yes 
											<input type='radio' name='Voucher_ShowDescription213' value='0' checked > no";}
									echo "</td>	
								</tr>
								
								<tr bgcolor='#F7F7F7'>
									<td align='left'><span class='style1'>Separate Accounts</span></td>
									<td>";
										if($SeparateAccounts13==1){
									echo"	<input type='radio' name='SeparateAccounts13' value='1' checked> yes
											<input type='radio' name='SeparateAccounts13' value='0'  > no";}
										else {
									echo "	<input type='radio' name='SeparateAccounts13' value='1' > yes 
											<input type='radio' name='SeparateAccounts13' value='0' checked > no";}
									echo "</td>
									
									<td align='left'><span class='style1'>Synchronized</span></td>
									<td>";
										if($Synchronized13==1){
									echo"	<input type='radio' name='Synchronized13' value='1' checked> yes
											<input type='radio' name='Synchronized13' value='0'  > no";}
										else {
									echo "	<input type='radio' name='Synchronized13' value='1' > yes 
											<input type='radio' name='Synchronized13' value='0' checked > no";}
									echo "</td>	
								</tr>
								
								<tr bgcolor='#F7F7F7'>
									<td align='left'><span class='style1'>Default Costcenter </span></td>
									<td><input type='text'  name='DefaultCostcenter13' id='DefaultCostcenter13' value='$DefaultCostcenter13' maxlength='15' style='font-size:12px; width:200px; '></td>	
									<td align='left'><span class='style1'>Default Project  </span></td>
									<td><input type='text'  name='DefaultProject13' id='DefaultProject13' value='$DefaultProject13' maxlength='15' style='font-size:12px; width:200px; '></td>	
								</tr>
								
								<tr bgcolor='#F7F7F7'>
									<td align='left'><span class='style1'> Credit Account From </span></td>
									<td><textarea name='IsoDescription13' id='IsoDescription13'  maxlength='100' style='font-size:12px; width:200px; '>$IsoDescription13</textarea></td>	
									<td align='left'><span class='style1'>Credit Account To </span></td>
									<td><input type='text'  name='Chk_CommissionAcc13' id='Chk_CommissionAcc13' value='$Chk_CommissionAcc13' maxlength='10' style='font-size:12px; width:200px; '></td>	
								</tr>
								
							</table>
						</div>
					</td>
				</tr>";
}						
						
			if($Tabnumber=='16'){
// Tab= DifferExchange Setup
echo"	<div class='tabbertab'>
			<h2 title='DifferExchange setup'>DifferExchange Setup</h2>";
echo"		<div id='datagrid-d1' style='width:1088px; height:1000px; margin-top:5px; border:0px solid gray;'>";
echo"  			<table border='0' cellpadding='0' cellspacing='10' align='left' valign='center' style='padding-left:40px;width:1094px; height=820' >
					<col width=250>
					<col width=200>
					<col width=250>
					<col width=200>
					<col width=250>
					<tr>
						<td></td><td></td><td></td><td></td>
						<td align='right'>
							<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='Updatedifferexchange()' ><span><span>Save</span></span></button>
						</td>
					</tr>
	
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'> Ledger Number </span></td>
						<td><input type='text'  name='Ledger_Number14' id='Ledger_Number14' value='$Ledger_Number14' maxlength='10' style='font-size:12px; width:200px; ' readonly></td>	
						<td align='left'><span class='style1'>Ledger Type </span></td>
						<td><input type='text'  name='Ledger_Type14' id='Ledger_Type14' value='$Ledger_Type14' maxlength='10' style='font-size:12px; width:200px; '></td>	
					</tr>";
echo "				<tr height='25px'>&nbsp;</tr>";
							$styleborder="align='center' style='border-right:1px solid gray; border-left:1px solid gray; border-top:1px solid gray; border-bottom:1px solid gray;'";
							//table fetch
echo"				<tr>
						<td colspan='5'>
							<table border='0'  align='center' width='800px' style='margin-left:-56px' class='tablecontent' cellpadding='0' cellspacing='0' >
								<col width='5'><col width='10'><col width='10'>
								<tr  height='35px' style='font-size:18px; border:1px solid gray; color:white; font-family:inherit; background-color:#016a84; font-weight:bold;'>
									<td $styleborder>&nbsp;</td>
									<td $styleborder>Ledger Number</td>
									<td $styleborder>Ledger Type</td>
								</tr>";
									$querygetrecords4="select * from diffexchngsetup";
									$resultrecords4=mysql_query($querygetrecords4,$connection);
									while($rowsdiffexchng=mysql_fetch_array($resultrecords4)){
										
echo"									<tr align='center' height='15px'  style='font-weight:bold; font-size:15px; font-family:initial;'>
									<td valign=center align='center'>
										<img src='img/button_edit.png' name='rownumpurchasecharges' onclick='editdifferexchng(\"".$rowsdiffexchng[0]."\",16)' title='Edit Record' style='cursor: pointer;'>
									</td>
									<td>$rowsdiffexchng[0]</td>
									<td>$rowsdiffexchng[1]</td>
								</tr>";
								}							
echo"						</table>
						</td>
					</tr>
				</table>
			</div>
		</div>";
	}

	
							
if($Tabnumber=='17'){
// Tab= Delivery Status Setup
echo"	<div class='tabbertab'>
			<h2 title='Delivery Status setup'>Deliverystatus  Setup</h2>";
echo"		<div id='datagrid-d1' style='width:1088px; height:1000px; margin-top:5px; border:0px solid gray;'>";
echo"  			<table border='0' cellpadding='0' cellspacing='10' align='left' valign='center' style='padding-left:40px;width:1094px; height=820' >
					<col width=250>
					<col width=200>
					<col width=250>
					<col width=200>
					<col width=250>
					<tr>
						<td></td><td></td><td></td><td></td>
						<td align='right'>
							<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='Updatedeliverystatus()' ><span><span>Save</span></span></button>
						</td>
					</tr>
	
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'> ID  </span></td>
						<td><input type='text'  name='id15' id='id15' value='$id15' maxlength='10' style='font-size:12px; width:200px; ' readonly></td>	
						<td align='left'><span class='style1'>Name</span></td>
						<td><input type='text'  name='name15' id='name15' value='$name15' maxlength='45' style='font-size:12px; width:200px; '></td>	
					</tr>
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'> Delivery Status Level  </span></td>
						<td><input type='text'  name='deliverystatus_level15' id='deliverystatus_level15' value='$deliverystatus_level15' maxlength='10' style='font-size:12px; width:200px; ' ></td>		
					</tr>
					<tr>
						<td colspan='5'>
							<table border='0'  align='center' width='800px' style='margin-left:-56px' class='tablecontent' cellpadding='0' cellspacing='0' >
								<col width='5'><col width='10'><col width='10'><col width='10'>
								<tr  height='35px' style='font-size:18px; border:1px solid gray; color:white; font-family:inherit; background-color:#016a84; font-weight:bold;'>
									<td align='center' $styleborder>&nbsp;</td>
									<td align='center' $styleborder>ID</td>
									<td align='center' $styleborder>Name</td>
									<td align='center' $styleborder>Delivery Status Level</td>
								</tr>";
									$querygetrecords5="select * from deliverystatus_setup";
									$resultrecords5=mysql_query($querygetrecords5,$connection);
									while($rowsdeliverystatus=mysql_fetch_array($resultrecords5)){
										
echo"							<tr align='center' height='15px'  style='font-weight:bold; font-size:15px; font-family:initial;'>
									<td valign=center align='center'>
										<img src='img/button_edit.png' name='rownumpurchasecharges' onclick='editdeliverystatus(\"".$rowsdeliverystatus[0]."\",17)' title='Edit Record' style='cursor: pointer;'>
									</td>
									<td>$rowsdeliverystatus[0]</td>
									<td>$rowsdeliverystatus[1]</td>
									<td>$rowsdeliverystatus[2]</td>
								</tr>";
								}							
echo"						</table>
						</td>
					</tr>
					
				</table>
			</div>
		</div>";
	}
	
if($Tabnumber=='18'){
// Tab= budgetsetup Setup
echo"	<div class='tabbertab'>
			<h2 title='budgetsetup setup'>Budgetsetup Setup</h2>";
echo"		<div id='datagrid-d1' style='width:1088px; height:1000px; margin-top:5px; border:0px solid gray;'>";
echo"  			<table border='0' cellpadding='0' cellspacing='10' align='left' valign='center' style='padding-left:40px;width:1094px; height=820' >
					<col width=250>
					<col width=200>
					<col width=250>
					<col width=200>
					<col width=250>
					<tr>
						<td></td><td></td><td></td><td></td>
						<td align='right'>
							<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='Updatebudgetsetup()' ><span><span>Save</span></span></button>
						</td>
					</tr>
	
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'> Budget Price Terms</span></td>
						<td><input type='text'  name='BdgtSetup_PriceTerms16' id='BdgtSetup_PriceTerms16' value='$BdgtSetup_PriceTerms16' maxlength='100' style='font-size:12px; width:200px; ' ></td>	
						<td align='left'><span class='style1'>Budget Offer Validity</span></td>
						<td><input type='text'  name='BdgtSetup_OfferValidity16' id='BdgtSetup_OfferValidity16' value='$BdgtSetup_OfferValidity16' maxlength='100' style='font-size:12px; width:200px; '></td>	
					</tr>
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'> Budget Payment Terms  </span></td>
						<td><input type='text'  name='BdgtSetup_PaymentTerms16' id='BdgtSetup_PaymentTerms16' value='$BdgtSetup_PaymentTerms16' maxlength='100' style='font-size:12px; width:200px; ' ></td>		
						<td align='left'><span class='style1'> Default ProfitPer </span></td>
						<td><input type='number'  name='DefaultProfitPer16' id='DefaultProfitPer16' value='$DefaultProfitPer16' maxlength='100' style='font-size:12px; width:200px; ' ></td>		
					</tr>
					<tr bdcolor='#F7f7f7'>
						<td align='left'><span class='style1'>Synchronized</span></td>
						<td>";
							if($Synchronized16==1){
						echo"	<input type='radio' name='Synchronized16' value='1' checked> yes
								<input type='radio' name='Synchronized16' value='0'  > no";}
							else {
						echo "	<input type='radio' name='Synchronized16' value='1' > yes 
								<input type='radio' name='Synchronized16' value='0' checked > no";}
						echo "</td>	
					</tr>
					
				</table>
			</div>
		</div>";
	}
	
	
	if($Tabnumber=='19'){
// Tab= acctypesetup Setup
echo"	<div class='tabbertab'>
			<h2 title='acctypesetup setup'>Acc Type Setup</h2>";
echo"		<div id='datagrid-d1' style='width:1088px; height:1000px; margin-top:5px; border:0px solid gray;'>";
echo"  			<table border='0' cellpadding='0' cellspacing='10' align='left' valign='center' style='padding-left:40px;width:1094px; height=820' >
					<col width=250>
					<col width=200>
					<col width=250>
					<col width=200>
					<col width=250>
					<tr>
						<td></td><td></td><td></td><td></td>
						<td align='right'>
							<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='Updateacctypesetup()' ><span><span>Save</span></span></button>
						</td>
					</tr>
	
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'> Acc Type Setup Inc</span></td>
						<td><input type='number'  name='AccTypeSetupInc17' id='AccTypeSetupInc17' value='$AccTypeSetupInc17' maxlength='11' style='font-size:12px; width:200px; ' ></td>	
						<td align='left'><span class='style1'>Type Code</span></td>
						<td><input type='text'  name='Type_Code17' id='Type_Code17' value='$Type_Code17' maxlength='20' style='font-size:12px; width:200px; '></td>	
					</tr>
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'> Type Name  </span></td>
						<td><input type='text'  name='Type_name17' id='Type_name17' value='$Type_name17' maxlength='50' style='font-size:12px; width:200px; ' ></td>		
						<td align='left'><span class='style1'> Generated Type Code </span></td>
						<td><input type='number'  name='GeneratedType_code17' id='GeneratedType_code17' value='$GeneratedType_code17' maxlength='20' style='font-size:12px; width:200px; ' ></td>		
					</tr>
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'> Generated Type Name  </span></td>
						<td><input type='text'  name='GeneratedType_Name17' id='GeneratedType_Name17' value='$GeneratedType_Name17' maxlength='50' style='font-size:12px; width:200px; ' ></td>		
						<td align='left'><span class='style1'> Ledger Number </span></td>
						<td><input type='text'  name='Ledger_Number17' id='Ledger_Number17' value='$Ledger_Number17' maxlength='10' style='font-size:12px; width:200px; ' ></td>		
					</tr>
					<tr bgcolor='#F7F7F7'>
						<td align='left'><span class='style1'> Warehouse Code  </span></td>
						<td><input type='text'  name='Warehouse_code17' id='Warehouse_code17' value='$Warehouse_code17' maxlength='50' style='font-size:12px; width:200px; ' ></td>		
						<td align='left'><span class='style1'> Ledger Activity</span></td>
						<td><input type='number'  name='Ledger_activity17' id='Ledger_activity17' value='$Ledger_activity17' maxlength='10' style='font-size:12px; width:200px; ' ></td>		
					</tr>
					<tr bdcolor='#F7f7f7'>
						<td align='left'><span class='style1'>Generate With Group</span></td>
						<td>";
							if($GenerateWithGroup17==1){
						echo"	<input type='radio' name='GenerateWithGroup17' value='1' checked> yes
								<input type='radio' name='GenerateWithGroup17' value='0'  > no";}
							else {
						echo "	<input type='radio' name='GenerateWithGroup17' value='1' > yes 
								<input type='radio' name='GenerateWithGroup17' value='0' checked > no";}
						echo "</td>	
						<td align='left'><span class='style1'>Synchonized</span></td>
						<td>";
							if($Synchronized17==1){
						echo"	<input type='radio' name='Synchronized17' value='1' checked> yes
								<input type='radio' name='Synchronized17' value='0'  > no";}
							else {
						echo "	<input type='radio' name='Synchronized17' value='1' > yes 
								<input type='radio' name='Synchronized17' value='0' checked > no";}
						echo "</td>	
					</tr>
					
				</table>
			</div>
		</div>";
	}
	
	
	
	

//end of the sub tab
echo "			</div>
			</td>
		</tr>";
						
	
	
//end of the first tab viewed
echo"					</table>";
echo"				</div>";      
echo"			</div>	";  







				// Tab= Transfer Ledger
		echo"	<div class='tabbertab'>
					<h2 title='transfersetup'>Transfer Ledger</h2>";
		echo"		<div id='datagrid-d1' style='width:1088px; height:1000px; margin-top:5px; border:0px solid gray;'>";
			echo"  		<table border='0' cellpadding='0' cellspacing='0' align='left' valign='center' width='1088px' >
							<col width=70>
							<col width=350>
							<col width=50>
							<col width=350>";
							
echo"						<tr>
								<td  bgcolor='#F5F5F5' hidden><span class='style8'>Ledger No. / Name 
									<label><input name='ledgeroption' type='radio' value='1' checked='checked'> Ledger No. </label>
									<label hidden><input name='ledgeroption' type='radio' value='2' hidden> Document </label></span>
								</td>
								<td align='right' colspan='2'>
									<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='Updateledger()' ><span><span>Transfer Ledger</span></span></button>
								</td>
							</tr>";
							
							//from ledger			
					echo"	<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'> From Ledger </span>&nbsp;&nbsp;<span>
									<input name='fromledger' type='text' id='fromledger' size='10' value='".$fromledger."'    onkeydown='return kdClient(0,event,0);'  />
									<input name='fromledgername' type='text' id='fromledgername' size='35' value='".$fromledgername."' onkeydown='return kdClient(1,event,0);' />
									<input name='btncode1' type='hidden' id='btncode1' value='...' onclick='cgr7()' style='width:20px; height:20px; border:thin;' title='Select Ledger From' />
									</span>
									<label><span class='style11'><a href='javascript:void(0);' NAME='My Window Name' title=' Select Ledger From ' 
									onClick='showlistledger(4);'><img src='img/btnopen.jpg' width='25' height='20' border='0' /></a> </span></label>
								</td></tr>";
						
							//to ledger
								$borderstylehead="align='center' style='font-family:-webkit-pictograph; color:white; font-size:18px; height:30px; background-color:#016a84; border-bottom:1px solid black; border-right:1px solid black;'";
							$borderstyletd="align='center' style=' background-color:floralwhite; font-size:16px; height:15px; border-right:1px solid black; border-bottom:1px solid gray;'";
					
					echo "		<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> To Ledger </span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>
									<input name='toledger' type='text' id='toledger' size='10' value='".$toledger."'   onkeydown='return kdClient(0,event,1);' />
									<input name='toledgername' type='text' id='toledgername' size='35' value='".$toledgername."'     onkeydown='return kdClient(1,event,1);' />
									<input name='btncode2' type='hidden' id='btncode2' value='...' onclick='cgr8()' style='width:20px; height:20px; border:thin;' title='Select Ledger To' />
									</span>
									<label><span class='style11'><a href='javascript:void(0);' NAME='My Window Name' title=' Select Ledger To ' 
									onClick='showlistledger(5); '><img src='img/btnopen.jpg' width='25' height='20' border='0' /></a>
									</span></label>
								</td>
							</tr>
							
							
							<tr height='20px'></tr>
							<tr>
								<td>
									<table  style='border:1px solid black' width='1090px' cellpadding='0' cellspacing='0'>
										<col width='50'>
										<col width='500'>
										<col width='500'>
										<tr >
											<td $borderstylehead >Check <input type='checkbox' name='checkall' id='checkall' onClick=\"chckall();\"></td>
											<td $borderstylehead>Table Name</td>
											<td $borderstylehead>Result</td>
										</tr>
										
										<tr>
											<td $borderstyletd><input type='checkbox' name='journal' id='journal'></td>
											<td $borderstyletd><span>Journal</span></td>
											<td $borderstyletd><span>$feed1</span></td>
										</tr>
										
										<tr>
											<td $borderstyletd><input type='checkbox' name='trans' id='trans'></td>
											<td $borderstyletd><span>Trans</span></td>
											<td $borderstyletd><span>$feed2</span></td>
										</tr>
										
										<tr>
											<td $borderstyletd><input type='checkbox' name='salesjv' id='salesjv'></td>
											<td $borderstyletd><span>Sales Jv</span></td>
											<td $borderstyletd><span>$feed3</span></td>
										</tr>
										
										<tr>
											<td $borderstyletd><input type='checkbox' name='purchasejv' id='purchasejv'></td>
											<td $borderstyletd><span>Purchase Jv</span></td>
											<td $borderstyletd><span>$feed4</span></td>
										</tr>
										
										<tr>
											<td $borderstyletd><input type='checkbox' name='item' id='item'></td>
											<td $borderstyletd><span>Item</span></td>
											<td $borderstyletd><span>$feed5</span></td>
										</tr>
										
										<tr>
											<td $borderstyletd><input type='checkbox' name='prepayment' id='prepayment'></td>
											<td $borderstyletd><span>Prepayment</span></td>
											<td $borderstyletd><span>$feed6</span></td>
										</tr>
										
										<tr>
											<td $borderstyletd><input type='checkbox' name='purchases' id='purchases'></td>
											<td $borderstyletd><span>Purchases</span></td>
											<td $borderstyletd><span>$feed7</span></td>
										</tr>
										
										<tr>
											<td $borderstyletd><input type='checkbox' name='order' id='order'></td>
											<td $borderstyletd><span>Order</span></td>
											<td $borderstyletd><span>$feed8</span></td>
										</tr>
										<tr>
											<td $borderstyletd><input type='checkbox' name='delivery' id='delivery'></td>
											<td $borderstyletd><span>Deliveries</span></td>
											<td $borderstyletd><span>$feed9</span></td>
										</tr>
										<tr>
											<td $borderstyletd><input type='checkbox' name='adjustment' id='adjustment'></td>
											<td $borderstyletd><span>Adjustment</span></td>
											<td $borderstyletd><span>$feed10</span></td>
										</tr>
										<tr>
											<td $borderstyletd><input type='checkbox' name='production' id='production'></td>
											<td $borderstyletd><span>Production</span></td>
											<td $borderstyletd><span>$feed11</span></td>
										</tr>
										<tr>
											<td $borderstyletd><input type='checkbox' name='transactionsetup' id='transactionsetup'></td>
											<td $borderstyletd><span>Transaction Setup</span></td>
											<td $borderstyletd><span>$feed12</span></td>
										</tr>
										<tr>
											<td $borderstyletd><input type='checkbox' name='sales' id='sales'></td>
											<td $borderstyletd><span>Sales</span></td>
											<td $borderstyletd><span>$feed13</span></td>
										</tr>
									</table>
								</td><td></td><td></td>
							</tr>";
echo"				</table>";
echo"			</div>";      
echo"		</div>"; 



	// Tab= Transfer Item
		echo"	<div class='tabbertab'>
					<h2 title='transfersetup'>Transfer Item</h2>";
		echo"		<div id='datagrid-d1' style='width:1088px; height:1000px; margin-top:5px; border:0px solid gray;'>";
			echo"  		<table border='0' cellpadding='0' cellspacing='0' align='left' valign='center' width='1088px' >
							<col width=70>
							<col width=350>
							<col width=50>
							<col width=350>";
								//get result
								$Request=$_GET['Request'];
								$Purchasesorder=$_GET['Purchasesorder'];
								$Order=$_GET['Order'];
								$Delivery=$_GET['Delivery'];

								$Sales=$_GET['Sales'];
								$Transfer=$_GET['Transfer'];
								$Adjustment=$_GET['Adjustment'];
								$Production_item=$_GET['Production_item'];

								$Pack=$_GET['Pack'];
								$Prodrecipe=$_GET['Prodrecipe'];
								$Transaction=$_GET['Transaction'];

	
								if($Request=='on'){$feed_item1="( $row_number_item1 ) Recorde Updated";}
								
								if($Purchasesorder=='on'){$feed_item2="( $row_number_item2 , $row_number_item21 , $row_number_item22 ) Recorde Updated";}
								
								if($Order=='on'){$feed_item3="( $row_number_item3 ) Recordes Updated";}
								
								if($Delivery=='on'){$feed_item4="( $row_number_item4 , $row_number_item41 ) Recordes Updated";}
								
								if($Sales=='on'){$feed_item5="( $row_number_item5 ) Recorde Updated";}
								
								if($Transfer=='on'){$feed_item6="( $row_number_item6 , $row_number_item61 ) Recordes Updated";}
								
								if($Adjustment=='on'){$feed_item7="( $row_number_item7 , $row_number_item71 ) Recordes Updated";}
								
								if($Production_item=='on'){$feed_item8="( $row_number_item8 , $row_number_item81 , $row_number_item82 , $row_number_item83 , $row_number_item84 , $row_number_item85 , $row_number_item86 , $row_number_item87 ) Recordes Updated";}
								
								if($Pack=='on'){$feed_item9="( $row_number_item9 ) Recordes Updated";}
								
								if($Prodrecipe=='on'){$feed_item10="( $row_number_item10 , $row_number_item101 ) Recorde Updated";}
								
								if($Transaction=='on'){$feed_item11="( $row_number_item11 )  Recordes Updated";}
							
echo"						<tr>
								<td  bgcolor='#F5F5F5' hidden><span class='style8'>Ledger No. / Name 
									<label><input name='ledgeroption' type='radio' value='1' checked='checked'> Ledger No. </label>
									<label hidden><input name='ledgeroption' type='radio' value='2' hidden> Document </label></span>
								</td>
								<td align='right' colspan='2'>
									<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='UpdateItem()' ><span><span>Transfer Item</span></span></button>
								</td>
							</tr>";
							
							//from item			
					echo"	<tr bgcolor='#F7F7F7'>
								<td align='left'>
									<span class='style1'> From Item</span>&nbsp;&nbsp;<span class='style8'> <label>
									<input name='fromitem' type='text' id='fromitem' size='15' value='".$fromitem."' />
									<input name='fromitemdesc' type='text' id='fromitemdesc' size='39' value='".$fromitemdesc."' />
									</label>
									</span>
									<label><span class='style11'><a href='javascript:void(0);' NAME='My Window Name' title=' Select Item From ' 
									 onClick='showlistitem(6); '><img src='img/btnopen.jpg' width='15' height='20' border='0' /></a> </span></label>
								</td>
							</tr>";
						
							//to item
						
					
					echo "	<tr bgcolor='#F7F7F7'>
								<td align='left'>
									<span class='style1'> To Item </span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>
									<label>
									<input name='toitem' type='text' id='toitem' size='15' value='".$toitem."' />
									<input name='toitemdesc' type='text' id='toitemdesc' size='39' value='".$toitemdesc."' />
									</label>
									</span>
									<label><span class='style11'><a href='javascript:void(0);' NAME='My Window Name' title=' Select Item To ' 
									 onClick='showlistitem(7); '><img src='img/btnopen.jpg' width='15' height='20' border='0' /></a> </span></label>
								</td>
							</tr>
						
							<tr height='20px'></tr>
							<tr>
								<td>
									<table  style='border:1px solid black' width='1090px' cellpadding='0' cellspacing='0'>
										<col width='50'>
										<col width='500'>
										<col width='500'>
										<tr >
											<td $borderstylehead >Check <input type='checkbox' name='checkall2' id='checkall2' onClick=\"chckall2();\"></td>
											<td $borderstylehead>Table Name</td>
											<td $borderstylehead>Result</td>
										</tr>
										
										<tr>
											<td $borderstyletd><input type='checkbox' name='Request' id='Request'></td>
											<td $borderstyletd><span> Request</span></td>
											<td $borderstyletd><span>$feed_item1</span></td>
										</tr>
										
										<tr>
											<td $borderstyletd><input type='checkbox' name='Purchasesorder' id='Purchasesorder'></td>
											<td $borderstyletd><span>Purchases Order</span></td>
											<td $borderstyletd><span>$feed_item2</span></td>
										</tr>
										
										<tr>
											<td $borderstyletd><input type='checkbox' name='Order' id='Order'></td>
											<td $borderstyletd><span>Order</span></td>
											<td $borderstyletd><span>$feed_item3</span></td>
										</tr>
										
										<tr>
											<td $borderstyletd><input type='checkbox' name='Delivery' id='Delivery'></td>
											<td $borderstyletd><span>Delivery</span></td>
											<td $borderstyletd><span>$feed_item4</span></td>
										</tr>
										
										<tr>
											<td $borderstyletd><input type='checkbox' name='Sales' id='Sales'></td>
											<td $borderstyletd><span>Sales</span></td>
											<td $borderstyletd><span>$feed_item5</span></td>
										</tr>
										
										<tr>
											<td $borderstyletd><input type='checkbox' name='Transfer' id='Transfer'></td>
											<td $borderstyletd><span>Transfer</span></td>
											<td $borderstyletd><span>$feed_item6</span></td>
										</tr>
										
										<tr>
											<td $borderstyletd><input type='checkbox' name='Adjustment' id='Adjustment'></td>
											<td $borderstyletd><span>Adjustment</span></td>
											<td $borderstyletd><span>$feed_item7</span></td>
										</tr>
										
										<tr>
											<td $borderstyletd><input type='checkbox' name='Production_item' id='Production_item'></td>
											<td $borderstyletd><span>Production</span></td>
											<td $borderstyletd><span>$feed_item8</span></td>
										</tr>
										
										<tr>
											<td $borderstyletd><input type='checkbox' name='Pack' id='Pack'></td>
											<td $borderstyletd><span>Pack</span></td>
											<td $borderstyletd><span>$feed_item9</span></td>
										</tr>
										
										<tr>
											<td $borderstyletd><input type='checkbox' name='Prodrecipe' id='Prodrecipe'></td>
											<td $borderstyletd><span>Prodrecipe</span></td>
											<td $borderstyletd><span>$feed_item10</span></td>
										</tr>
										<tr>
											<td $borderstyletd><input type='checkbox' name='Transaction' id='Transaction'></td>
											<td $borderstyletd><span>Transaction</span></td>
											<td $borderstyletd><span>$feed_item11</span></td>
										</tr>
									</table>
								</td><td></td><td></td>
							</tr>";						
echo"				</table>";
echo"			</div>";      
echo"		</div>"; 


		// Richard
		// Tab= Difference Of Exchange
		$querydoe="select currency_code as currcodedoe,currency_name as currnamedoe from currency";
		$resultdoe=mysql_query($querydoe,$connection);
			
		 echo"	<div class='tabbertab'>
					<h2 title='sendreceive setup'>Difference Of Exchange </h2>";
					
		echo"		<div id='datagrid-d1' style='width:1088px; height:1000px; margin-top:5px; border:0px solid gray;'>";
			
			echo"  		<table border='0' cellpadding='0' cellspacing='10' align='left' valign='center' style='padding-left:40px;width:1094px; height=820' >
							<col width=100>
							<col width=250>
							<col width=200>
							<col width=250>
							
							<tr>
								<td></td><td></td><td></td><td></td>
								<td align='right'>
									<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='generatedoe()' ><span><span>Genrate</span></span></button>
								</td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>
								<td align='left'><span class='style1'>Date </span></td>
								<td align='left'><input type='date'  name='tdate' id='tdate' value='' maxlength='10' style='width:200px;'></td>
								<td align='left'><span class='style1'>Closing by Project And Costcenter</span></td>
								<td align='left'><input type='checkbox' name='check_pro_cost' id='check_pro_cost' onclick='CheckProCost()'>
												<input type='hidden' name='close_pro_cost' id='close_pro_cost' value='0'></td>
							</tr>
							
							<tr bgcolor='#F7F7F7'>";
									//project Code	and cost center	
echo"							<td align='left' ><span class='style1'>Project Code</span></td>
								<td align='left' > 
									<span class='style1'><input type='text' name='txtProjectCode' id='txtProjectCode' value='$txtProjectCode' style='width:200px;' maxlength='15' onchange=\"CheckLookup('chkcodeexists','project','project_code',this.value,'lstProjectCodeH');\" /></span>
									<label><span class='style1'><img src='img/btnopen.jpg' title=' Select Project ' id='lstProjectCodeH' width='25' height='20' border='0' onMouseOver=\"style.cursor='hand'\" onClick='showlistProject(5); '  /></span></label>
								</td>
								
								<td align='left' ><span class='style1'>Costcenter</span></td>
								<td align='left'><span class='style1' valign='middle'>
									<input type='text' name='txtCostCentCode' id='txtCostCentCode' value='$txtCostCentCode' style='width:200px;' maxlength='15' onchange=\"CheckLookup('chkcodeexists','costcent','costcent_code',this.value,'lstCostCentCodeH');\" /></span>
									<label><span class='style1'><img src='img/btnopen.jpg' title=' Select Costcenter ' id='lstCostCentCodeH' width='25' height='20' border='0' onMouseOver=\"style.cursor='hand'\"  onClick='showlistCostcenter(5); ' /></span></label>
								</td>
							</tr>
							
								<tr bgcolor='#F7F7F7'>";
								 	//ledgernumber
echo"							<td align='left' ><span class='style1'>Negative</span></td>
								<td align='left'>
									<input name='fromledgerdoe' type='text' id='fromledgerdoe' size='10' value='".$fromledger."' style='width:200px'  onkeydown='return kdClient(0,event,0);'  />
									<input name='btncode1' type='hidden' id='btncode1' value='...' onclick='cgr7()' style='width:20px; height:20px; border:thin;' title='Select Ledger From' />	
									<label><span class='style11'><a href='javascript:void(0);' NAME='My Window Name' title=' Select Ledger From ' 
									onClick='showlistledger(6);'><img src='img/btnopen.jpg' width='25' height='20' border='0' /></a> </span></label>
								</td>";
							
					echo "		<td align='left' ><span class='style1'>Positive</span></td>
								<td align='left'>
									<input name='toledgerdoe' type='text' id='toledgerdoe' size='10' value='".$toledger."' style='width:200px' onkeydown='return kdClient(0,event,1);' />
									<input name='btncode2' type='hidden' id='btncode2' value='...' onclick='cgr8()' style='width:20px; height:20px; border:thin;' title='Select Ledger To' />
									<label><span class='style11'><a href='javascript:void(0);' NAME='My Window Name' title=' Select Ledger To ' 
									onClick='showlistledger(7); '><img src='img/btnopen.jpg' width='25' height='20' border='0' /></a>
									</span></label>
								</td> 
							</tr>
							
							<tr bgcolor='#F7F7F7'>	
								<td align='left' ><span class='style1'>Select Table </span></td>
								<td align='center' >
									<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='choosesetup(20)' >
									<span><span >&nbsp;Difference Of Exchange</span></span></button></td>	
								<td align='center' >
									<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='choosesetup(21)' >
									<span><span >&nbsp;Excluding Accounts</span></span></button></td>	
								<td align='center' >
									<button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='choosesetup(22)' >
									<span><span >&nbsp;Including Accounts</span></span></button></td>	
							</tr>
							
							<tr height:100px></tr>
							
							<tr><br>";
								//start subtab 
echo "							<td align=left colspan='5'>";
echo"  								<div class='tabber' id='tab1' style='width: 1100px; min-height:1000px; margin-left:-57px;  margin-top:10px; float:left; text-align:left;'> ";

				if($Tabnumber=='20'){ 
echo"									<div class='tabbertab'>
											<h2 title='sendreceive setup'>Difference Of Exchange </h2>
											<div id='datagrid-d1' style='width:1088px;  margin-top:5px; border:0px solid gray;'>
												<table  style='border:01px solid black' width='1090px' cellpadding='0' cellspacing='0'>
													<col width='50'>
													<col width='100'>
													<col width='300'>
													<col width='150'>
													<col width='150'>
													<col width='150'>";
													$sql_query="select Currency_code, Currency_name, Currency_nature, Rate, Parity, Synchronized
																from differenceexchange";
													$resultdoe=mysql_query($sql_query,$connection);
													
echo"												
													<tr height=35px>
														<td align='right' colspan='7'><button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='getallcurrency()' >
														<span><span >&nbsp;Get All currency</span></span></button></td>
													</tr>
													<tr >
														<td $borderstylehead ></td>
														<td $borderstylehead>Code</td>
														<td $borderstylehead>Name</td>
														<td $borderstylehead>Currency < $ (true)</td>
														<td $borderstylehead>Rate</td>
														<td $borderstylehead>Parity</td>
														<td $borderstylehead>Synchronized</td>
													</tr>";
													while($rowdoe=mysql_fetch_array($resultdoe)){
echo"												<tr >
														<td $borderstyletd><img src='img/button_edit.png' name='roweditdoe' onclick='editdoe(\"$rowdoe[0]\")' title='Edit Record' style='cursor: pointer;'></td>
														<td $borderstyletd>$rowdoe[0]</td>
														<td $borderstyletd>$rowdoe[1]</td>
														<td $borderstyletd><input type='text' name='currency_naturedoe$rowdoe[0]' id='currency_naturedoe$rowdoe[0]' value='$rowdoe[2]'></td>
														<td $borderstyletd><input type='text' name='ratedoe$rowdoe[0]' id='ratedoe$rowdoe[0]' value='$rowdoe[3]'></td>
														<td $borderstyletd><input type='text' name='paritydoe$rowdoe[0]' id='paritydoe$rowdoe[0]' value='$rowdoe[4]'></td>
														<td $borderstyletd><input type='text' name='synchrinizeddoe$rowdoe[0]' id='synchrinizeddoe$rowdoe[0]' value='$rowdoe[5]'></td>
													</tr>";
													}
echo"											</table>
											</div>
										</div>";
											
								}			
		if($Tabnumber=='21'){ 
									$sql_query="select diffexchngsetup.Ledger_Number, diffexchngsetup.Ledger_Type,a.ledger_name
												from diffexchngsetup
												left join ledger a on a.ledger_number = diffexchngsetup.ledger_number
												where diffexchngsetup.Ledger_Type=0";
									$resultea=mysql_query($sql_query,$connection);
									
echo"									<div class='tabbertab'>
											<h2 title='sendreceive setup'>Excluding Account</h2>
											<div id='datagrid-d1' style='width:1088px;  margin-top:5px; border:0px solid gray;'>
												<table  style='border:0px solid black' width='1090px' cellpadding='0' cellspacing='0'>
													<col width='20'>
													<col width='200'>
													<col width='150'>
													<col width='100'>
													<col width='100'>
													<col width='100'>
													<tr height=35px>
														<td align='right' colspan='7'><button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='addeaaccount()' >
														<span><span >&nbsp;Add Excluding Account</span></span></button></td>
													</tr>
													<tr height=35px>
														<td align='left' colspan='3'><span class='style1'> Choose Ledger To Add </span>&nbsp;&nbsp;<span>
															<input name='fromledgerex' type='text' id='fromledgerex' size='10' value='".$fromledger."'    onkeydown='return kdClient(0,event,0);'  />
															<input name='fromledgernameex' type='text' id='fromledgernameex' size='35' value='".$fromledgername."' onkeydown='return kdClient(1,event,0);' />
															<input name='btncode1' type='hidden' id='btncode1' value='...' onclick='cgr7()' style='width:20px; height:20px; border:thin;' title='Select Ledger From' />
															</span>
															<label><span class='style11'><a href='javascript:void(0);' NAME='My Window Name' title=' Select Ledger From ' 
															onClick='showlistledger(8);'><img src='img/btnopen.jpg' width='25' height='20' border='0' /></a> </span></label>
														</td>
													</tr>
													<tr >
														<td $borderstylehead ></td>
														<td $borderstylehead>Ledger Number</td>
														<td $borderstylehead>Ledger Name</td>
													</tr>";
													
													while($rowdea=mysql_fetch_array($resultea)){
echo"												<tr>
														<td $borderstyletd><img border='0' src='img/c_delete.png' width='9' height='10' title='Delete Detail' style='cursor: pointer;' onclick='deleteledgerea(\"$rowdea[0]\")'></td>
														<td $borderstyletd >$rowdea[0]</td>
														<td $borderstyletd >$rowdea[2]</td>
													</tr>";
													}
													
													
echo"											</table>
											</div>
										</div>";
											
										}											
				if($Tabnumber=='22'){		
										$sql_query="select diffexchngsetup.Ledger_Number, diffexchngsetup.Ledger_Type,a.ledger_name
													from diffexchngsetup
													left join ledger a on a.ledger_number = diffexchngsetup.ledger_number
													where diffexchngsetup.Ledger_Type=1;";
										$resultia=mysql_query($sql_query,$connection);
echo"									<div class='tabbertab'>
											<h2 title='sendreceive setup'>Including Accounts</h2>
											<div id='datagrid-d1' style='width:1088px;  margin-top:5px; border:0px solid gray;'>
												<table  style='border:0px solid black' width='1090px' cellpadding='0' cellspacing='0'>
													<col width='20'>
													<col width='200'>
													<col width='150'>
													<col width='100'>
													<col width='100'>
													<col width='100'>
													<tr height=35px>
														<td align='right' colspan='7'><button type='submit' id='btnPost' name='btnPost'  title='Save Changes' onClick='addiaaccount()' >
														<span><span >&nbsp;Add Excluding Account</span></span></button></td>
													</tr>
													<tr height=35px>
														<td align='left' colspan='7'><span class='style1'> Choose Ledger To Add </span>&nbsp;&nbsp;<span>
															<input name='fromledgeria' type='text' id='fromledgeria' size='10' value='".$fromledgeria."'    onkeydown='return kdClient(0,event,0);'  />
															<input name='fromledgernameia' type='text' id='fromledgernameia' size='35' value='".$fromledgernameia."' onkeydown='return kdClient(1,event,0);' />
															<input name='btncode1' type='hidden' id='btncode1' value='...' onclick='cgr7()' style='width:20px; height:20px; border:thin;' title='Select Ledger From' />
															</span>
															<label><span class='style11'><a href='javascript:void(0);' NAME='My Window Name' title=' Select Ledger From ' 
															onClick='showlistledger(9);'><img src='img/btnopen.jpg' width='25' height='20' border='0' /></a> </span></label>
														</td>
													</tr>
													<tr  colspan='7'>
														<td $borderstylehead ></td>
														<td $borderstylehead>Ledger Number</td>
														<td $borderstylehead>Ledger Name</td>
													</tr>";
													while($rowia=mysql_fetch_array($resultia)){
echo"												<tr >
														<td $borderstyletd><img border='0' src='img/c_delete.png' width='9' height='10' title='Delete Detail' style='cursor: pointer;' onclick='deleteledgeria(\"$rowia[0]\")'></td>";
														//<td $borderstyletd><img src='img/button_edit.png' name='rownumpurchasecharges' onclick='(\"$rowia[0]\")' title='Edit Record' style='cursor: pointer;'></td>
echo"													<td $borderstyletd>$rowia[0]</td>
														<td $borderstyletd>$rowia[2]</td>
													</tr>";
													}
echo"											</table>
											</div>
										</div>";
											
										}											

										
								//end of the sub tab
echo "								</div>
								
							</td>
						</tr></table>";
							
											
							//end of the sub tab
echo "							</div>
							</div>";
		



 
// Renumbering
 echo"	<div class='tabbertab'>
				<h2 title='Renumbering'> Renumbering</h2>";
		echo"	<div id='datagrid-d1' style='width:1088px; height:172PX; margin-top:5px; border:0px solid gray;'>";
			echo"  	<table border='0' cellpadding='0' cellspacing='10' align='left' valign='center' style='padding-left:40px;width:1094px; height=820' >
					<col width=50>
					<col width=50>
					<col width=50>
					<col width=50>
					<col width=50>
					
					<tr bgcolor='#F7F7F7'>";
					
			//echo"	<td><input type='radio' name='numbering' id='r1' value='default' checked> <b>Default<b> </input></td>
			//		<td></td>";
			$vMainCompanyName=explode('_',$_SESSION['dbName']);  
			preg_match_all('!\d+!', $vMainCompanyName[1] ,$DirYears );
			if($fromdate == '') $fromdate =  '01/01/'.$DirYears[0][0];
			if($todate == '') $todate = date('d/m/Y'); 
			
			echo"	<td align='left'><input type='radio' id='r2' name='numbering' value='date' checked><b> Date</b> </input>  </td>
					<td> </td>
					<td align='left'><input type='radio' id='r3' name='numbering' value='ref'><b> Reference</b> </input>  </td>
					</tr>
					
					<tr bgcolor='#F7F7F7'>
					<td align='right'> <b>From</b> </td> <td align='left'><span class='style8'><input type='text' name='fromdate'  id='fromdate' value='$fromdate' maxlength='10' size='10'> 
					<a href='#' onClick=\"displayCalendar(document.Setup.fromdate,'dd/mm/yyyy',this); return false; \" name='anchor1' id='anchor1'><image src='./img/cal.gif' border=0 align=center></image></a></span></td>
					<td align='right'> <b>From</b> </td> <td align='left'> <input type='text' name='fromref' id='fromref' value='' maxlength='10' size='10'></td>
					</tr>
					
					<tr bgcolor='#F7F7F7'>
					<td align='right'> <b>To</b></td> <td align='left'><span class='style8'><input type='text' name='todate'  id='todate' value='$todate' maxlength='10' size='10'> 
					<a href='#' onClick=\"displayCalendar(document.Setup.todate,'dd/mm/yyyy',this); return false; \" name='anchor1' id='anchor1'><image src='./img/cal.gif' border=0 align=center></image></a></span></td>
					<td align='right'> <b>To</b> </td> <td align='left'> <input type='text' name='toref' id='toref' value='' maxlength='10' size='10'></td>
					</tr>";	
					
					echo "  <tr> </tr>
					<tr bgcolor='#F7F7F7'>";
if($module_ReferenceByCostcenter == 1) {		  
		echo" <td align='left' ><span class='style1'>Costcent</td>		
			  <td align='left' ><span class='style1'>
				<input type='text' name='txtCostCentCodeRef' id='txtCostCentCodeRef' value='$txtCostCentCodeRef' style='width:120px;' maxlength='15'  /></span>
				<label><span><img src='img/openlist.png' title='Select Costcenter' id='lstCostCentCodeH' width='20' height='20' border='0' onMouseOver=\"style.cursor='pointer'\" onClick='showlistCostcenter(6); ' style='vertical-align:bottom;'/></span></label>
			  </td>";
}			  
	echo "	<td> </td>
			<td> <button type='button' id='saveref' name='saveref'  title='Save Changes' onclick=\"renumberRef();\"><span><span> Update  </span></span>  </button> </td>
			
			</tr>
					";
					
				echo"	<tr height:100px></tr>";	
					
echo "</table></div></div>";

$perpage 	= $_POST["perpage"]; if ($perpage == ""){$perpage = $_GET["perpage"];} 
$startrange	= $_POST["startrange"]; if ($startrange == ""){$startrange = $_GET["startrange"];} 

if ($startrange=='') $startrange = 0;
if ($perpage=='') 	 $perpage 	 = 20;

$query = "select filter_id, filter_type, concat(fromledgercode, '-',fromledger.ledger_name), concat(toledgercode,'-',toledger.ledger_name), 
			if(filter_CrDb = 'C', 'Credit', 'Debit') 
			from ledgerFilter 
			inner join ledger fromledger on fromledger.ledger_number = fromledgercode
			inner join ledger toledger on toledger.ledger_number = toledgercode ";
//$query = $query." where $keyword			";
$query = $query." order by filter_type, fromledgercode, filter_CrDb";//echo $query;
$query = $query." limit ".$startrange.",".$perpage;			
echo"	<div class='tabbertab'>
				<h2 title='Filter'> Filter</h2>";
	echo"	<div id='datagrid-d1' style='width:1088px; height:900px; margin-top:5px; border:0px solid gray;'>";
		echo"  	<table border='0' cellpadding='0' cellspacing='10' align='left' valign='center' style='padding-left:40px;width:1094px; height=820' >
			<col width=100>
			<col width=250>
			<col width=250>
			<col width=220>
		<tr><td></td><td></td><td colspan='2'>$message</td></tr>	
		<tr>";
	echo "<td colspan='2'>";
	echo"	<button type='button' id='btnClear' name='btnClear' onclick=\"ClearFilter();\" title='Clear' ><span><span>Clear</span></span></button>";
	echo"	<button type='button' id='btnSubmit' name='btnSubmit' onclick=\"SubmitFilter();\" title='Submit' ><span><span>Submit</span></span></button>";
	echo" 	<input type='hidden' name='filter_id' id='filter_id' value='$filter_id'>";
	echo "</td>";	
	/*echo"<td><input type='text' name='keyword' id='keyword' value='$keyword' style='width:100px;'>
	<button type='button' id='btnSearch' name='btnSearch' onclick='SearchFilter(); return false;' title='Search Filter'><span><span>Find</span></span></button></td>";	
	*/
	echo "<td align='center'>";
		$diff= $startrange - $perpage;
		if (($diff) >= 0 ){
			$prvstartrange = $startrange - $perpage;
			echo"<img src='img/arrowleft.png' title='Previous' onMouseOver=\"style.cursor='hand'\"  onclick=SetPrvPage('".$prvstartrange."','".$perpage."')>";
		}
		else echo "&nbsp;";
	echo"</td><td  align='center'>";
		if ($startrange <= $totalrows){
			$startrange = $startrange + $perpage;
			if  ($startrange <= $totalrows)
				echo"<img src='img/arrowright.png' title='Next' onMouseOver=\"style.cursor='hand'\" onclick=SetNextPage('".$startrange."','".$perpage."')>";
		} else
			echo "&nbsp;";
	echo"&nbsp;&nbsp;&nbsp;";
	echo "<span class='style1'><b>Results/page</b></span>
		  <span class='style1'>
		  <select name='perpage' id='perpage' value='$perpage' onchange=set_limit();>";
		if ($startrange=='')
			$startrange = 0;
		if ($perpage=='')
			$perpage = 20;
										
		//row limit loop
		foreach ($config['trowlimit'] as $value) {
		echo "<option value='$value' ";
				if($value==$perpage) echo "selected";
				echo " >$value</option>";
		}
echo "</select> ";
echo "</td><td></td>";
echo "</tr>";
	
	if($filter_id !=''){
		$query = "select filter_type, filter_CrDb, fromledgercode,fromledger.ledger_name, toledgercode, toledger.ledger_name 
				from ledgerFilter 
				inner join ledger fromledger on fromledger.ledger_number = fromledgercode
				inner join ledger toledger on toledger.ledger_number = toledgercode
				where filter_id = $filter_id";
		$res = mysql_query($query,$connection);
		$row = mysql_fetch_row($res);
		$filter_type 	= $row[0];
		$CrDbType 	 	= $row[1];
		$fromledgercode = $row[2];
		$fromledgerdesc = $row[3];
		$toledgercode 	= $row[4];
		$toledgerdesc	= $row[5];
	}
	echo "<tr>";
	echo "<td><b>Type</b></td><td colspan='3'><select name='filter_type' id='filter_type' style='width:100px;'>";
	echo "<option value='' ".($filter_type == ''?'selected':'')."></option>";
	echo "<option value='RV' ".($filter_type == 'RV'?'selected':'').">Receipt</option>";
	echo "<option value='PV' ".($filter_type == 'PV'?'selected':'').">Payment</option>";
	echo "<option value='CV' ".($filter_type == 'CV'?'selected':'').">Credit Note</option>";
	echo "<option value='DV' ".($filter_type == 'DV'?'selected':'').">Debit Note</option>";
	echo "</select></td>";
	echo "</tr>";
	
	echo "<tr><td><b>Credit/Debit</b></td><td><select name='CrDbType' id='CrDbType' style='width:100px;'>";
	echo "<option value='' ".($CrDbType == ''?'selected':'')."></option>";
	echo "<option value='C' ".($CrDbType == 'C'?'selected':'').">Credit</option>";
	echo "<option value='D' ".($CrDbType == 'D'?'selected':'').">Debit</option>";
	echo "</tr>";

	echo "<tr>";
	echo "<td><b>From Ledger</b></td>";
	echo "<td colspan='2'><input type='text' name='fromledgercode' id='fromledgercode' value='$fromledgercode' style='width:150px;'> <input type='text' name='fromledgerdesc' id='fromledgerdesc' value='$fromledgerdesc' style='width:300px;'> 
			<img src='img/btnopen.jpg' title=' Select Ledger '  width='15' height='17' border='0' onMouseOver=\"style.cursor='hand'\" onClick=\"showlistLedger2(10); return false;\"></td>";
	echo "<td></td>";
	echo "</tr>";
	
	echo "<tr>";
	echo "<td><b>To Ledger</b></td>";
	echo "<td colspan='2'><input type='text' name='toledgercode' id='toledgercode' value='$toledgercode' style='width:150px;'> <input type='text' name='toledgerdesc' id='toledgerdesc' value='$toledgerdesc' style='width:300px;'> 
			<img src='img/btnopen.jpg' title=' Select Ledger '  width='15' height='17' border='0' onMouseOver=\"style.cursor='hand'\" onClick=\"showlistLedger2(11); return false;\"></td>";
	echo "<td></td>";
	echo "</tr>";
	
	echo "<tr height='30px'><td></td></tr>";
	echo "<tr><td colspan='4'><table border='0' cellpadding='0' cellspacing='0' align='left' width='750px'>";
	echo "<col width='30px'><col width='30px'><col width='100px'><col width='250px'><col width='250px'><col width='90px'>";
	echo "<tr><td style='border-bottom: 1px black solid;'></td><td style='border-bottom: 1px black solid;'></td>
			<td align='center' style='border-bottom: 1px black solid;'><b>Type</b></td>
			<td style='border-bottom: 1px black solid;'><b>From Ledger</b></td>
			<td style='border-bottom: 1px black solid;'><b>To Ledger</b></td>
			<td align='center' style='border-bottom: 1px black solid;'><b>Credit/Debit</b></td></tr>";
	
	
	$res = mysql_query($query,$connection);
	$i=0;
	while($row = mysql_fetch_row($res)){
		if($i%2) $bgcolor = 'bgcolor=#eaedef';
		else $bgcolor = 'bgcolor=#c3c7cc';
		echo "<tr $bgcolor><td><img src='img/edit.png' onMouseOver=\"style.cursor=\'hand\'\" onclick=\"editFilter('$row[0]');\" title='Edit Record' style='width:20px; height:20px;'></td>";
		echo "<td><img src='img/delete.png' onMouseOver=\"style.cursor=\'hand\'\" onclick=\"deleteFilter('$row[0]');\" title='Delete Record' style='width:20px; height:20px;'></td>";
		echo "<td>$row[1]</td><td>$row[2]</td><td>$row[3]</td><td>$row[4]</td></tr>";
		$i++;
	}
	echo "</table></td></tr>";
echo "</table></div></div>";		
					
					
//end first original tab tabs  
echo "		</div>";
//	echo"<table border='1'  align='center' valign='top' class='tablecontent' ><col width=64>";
//	echo"<tr bgcolor='#F7F7F7'  ><td valign='top' align='left'></tr>";	 
//   echo"</table></td></tr>";


 echo" </td>";


echo "</tr>";






echo" <tr height='30'><td align='center' id='content-bottom' ></td></tr>";
include("footer.php");	

//Richard1


echo" </table>  ";//end of last table menu

echo"<script type=\"text/javascript\" language=\"javascript\">";
echo"	tabberAutomatic(tabberOptions);";
echo"   vTabIndex = document.getElementById('PTabIndex').value; ";
echo"	if (document.getElementById('tab1')) document.getElementById('tab1').tabber.tabShow(vTabIndex); ";
echo"</script>";



print <<<HERE
</form>
</body>
</html>
HERE;

?>




