<?php

session_start();
if($HTTP_SESSION_VARS['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($HTTP_SESSION_VARS['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('".$HTTP_SESSION_VARS['dbName']."')	";
	$resultlog=mysql_query($querylog,$connection) or die(mysql_error());
	while($rows=mysql_fetch_array($resultlog)){
		extract($rows);
	}

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


	
	
//Read From Setup Table		0

$querysetup= " Select COMPANY_NAME As CompanyName,Company_memo As CompanyMemo,COMPANY_TELEPHONE As CompanyTelephone,".
			"COMPANY_FAX As CompanyFax,COMPANY_CITY As CompanyCity, COMPANY_STAT As CompanyState ,COMPANY_COUNTRY AS CompanyCountry, ".
			"BASE1, BASE2, DecimalBase, Decimalbase1, Decimalbase2, COMPANY_LOGO As CompanyLogo,MainCompany ,Clientaccount,".
			"Checkaccount As CheckAccount, Setup_VatNo As SetupVatNo, Setup_VatStartDate As Vatstartdate, Setup_VatPercentage As SetupVatPercentage , DirectStock,Company_Logo1 As CompanyLogo1,".
			"DiscountAccount, SupplierFirstDigit, ClientFirstDigit,SalesmenFirstDigit, NbrOfDigitInLedger, Warehouse_Code As WarehouseCode,".
			"PRINTOPTION, Itemcurrency, PathArchive, Defaultw, ShowSlipNumber, ItemTargetDate, ChkCommissionAcc, Salesttc,".
			"DelinventoryJvTransaction, Journal_DefaultCur As JournalDefaultCur, Supplier_DefaultCur As SupplierDefaultCur, Supplier_PaymentTerms As SupplierPaymentTerms, Supplier_CreditLimit As SupplierCreditLimit,".
			"Client_DefaultCur As ClientDefaultCur, Client_PaymentTerms As ClientPaymentTerms, Client_CreditLimit As ClientCreditLimit, Salesman_DefaultCur As SalesmanDefaultCur, Salesman_CreditLimit As SalesmanCreditLimit, Customer_PaymentTerms As CustomerPaymentTerms,".
			"Customer_CreditLimit As CustomerCreditLimit , Setup_Tax1Active As SetupTax1Active, Setup_Tax2Active As SetupTax2Active, Setup_Tax3Active As SetupTax3Active, Setup_Tax4Active As SetupTax4Active, Setup_Tax5Active As SetupTax5Active,".
			"Setup_Tax1Name As SetupTax1Name, Setup_Tax2Name As SetupTax2Name, Setup_Tax3Name As SetupTax3Name, Setup_Tax4Name As SetupTax4Name, Setup_Tax5Name As SetupTax5Name, Supplier_ValidateProject As SupplierValidateProject, Client_ValidateProject As ClientValidateProject,".
			"StmtOfItemRMaskQty, InventoryRMaskqty, ClientSalesRMaskQty, PurchaseRMaskQty, ListOfProductionMaskQty, PorderReportMaskQty,".
			"MaskQty, Synchronized, Barcode, ApplyLedger_Deactivate As ApplyLedgerDeactivate, RMA_In As RMAIn, RMA_Out As RMAOut, Salesman_IsLedger As SalesmanIsLedger, Ledger_ValidateProject As LedgerValidateProject,setup_GCIExp As setupGCIExp,".
			"DefaultBase, AccessLabels, grid_color1 As gridcolor1, grid_color2 As gridcolor2, setup_branch As setupbranch, Setup_TipsMaxAmount As SetupTipsMaxAmount, Setup_SorderMailMsg As SetupSorderMailMsg, CashReg_Weight As CashRegWeight,".
			"CashReg_StartBarcode As CashRegStartBarcode, CashReg_EndBarcode As CashRegEndBarcode, CashReg_StartQty As CashRegStartQty, CashReg_EndQty As CashRegEndQty, CashReg_Price AS CashRegPrice, CashReg_StartPrice As CashRegStartPrice, CashReg_EndPrice As CashRegEndPrice,".
			"CashReg_DispLedMsg As CashRegDispLedMsg, maxperpage, show_companylogo As showcompanylogo, show_companyname As showcompanyname, show_printdatetime As showprintdatetime, show_user As showuser, show_companymemo As showcompanymemo,".
			"Company_NameF As CompanyNameF, Company_MemoF As CompanyMemoF, Company_Capital As CompanyCapital,Company_CapitalF As CompanyCapitalF, Setup_MultiLangPrint As SetupMultiLangPrint, Setup_SlipFooter As SetupSlipFooter, CashReg_BgColorOffer As CashRegBgColorOffer,".
			"CashReg_BgColorQty As CashRegBgColorQty, CashReg_BgColorOrderQty As CashRegBgColorOrderQty, CashReg_BgColorZeroPrice As CashRegBgColorZeroPrice, CashReg_BgColorZeroQty As CashRegBgColorZeroQty, CashReg_BgColorHasDiscount As CashRegBgColorHasDiscount,".
			"Setup_LicenseNo As SetupLicenseNo, Setup_ClientSerialNo As SetupClientSerialNo, CashReg_ApplyColorOffer As CashRegApplyColorOffer, CashReg_ApplyColorQty As CashRegApplyColorQty, CashReg_ApplyColorOrderQty As CashRegApplyColorOrderQty,".
			"CashReg_ApplyColorZeroPrice As CashRegApplyColorZeroPrice, CashReg_ApplyColorZeroQty As CashRegApplyColorZeroQty, CashReg_ApplyColorHasDiscount As CashRegApplyColorHasDiscount from setup";
 
 $resultsetup=mysql_query($querysetup,$connection) or die(mysql_error());
while($rowsetup=mysql_fetch_array($resultsetup)){
	extract($rowsetup);
}	

 
 
 
					
			 

//read from purshasesetup   1

$querypurshasesetup= "Select Warehouse, Project, Costcenter, PaymentMode,Charges, SupplierCur, FreightCur, FreightDebitAccount, FreightCreditAccount,".
			"CommissionsCur, CommissionsDebitAccount, CommissionsCreditAccount, InsuranceCur, InsuranceDebitAccount, InsuranceCreditAccount,".
			"ClearingCur, ClearingDebitAccount, ClearingCreditAccount, TransportCur, TransportDebitAccount, TransportCreditAccount,".
			"OtherDebitAccount, OtherCreditAccount, DebitCur, DebitCurdefault, DebitAccount, DebitAccountVat, CashCur, CashCurDefault,".
			"CashAccount, CheckCur, CheckAccount As CheckAccount1, CustomsDebitAccount, CustomsCreditAccount, CustomsCur, VatAccount, DiscountAccount As DiscountAccount1, ".
			"PurchaseTTC, Barcode As Barcode1, Directstockdebit, Directstockcredit, Directstockcurrency_code, Purchasejv_chargedebit, Purchasejv_chargecredit,".
			"TipsAccount, TipsMaxBase1, PurchaseJV_VatAccount, PurchaseDefaultType, Purchase_Acctax1, Purchase_Acctax2, Purchase_Acctax3, Purchase_Acctax4,".
			"Purchase_Acctax5, Synchronized As Synchronized1, VATAccountNonStock, ShowCostCentLayout from purchasesetup ";
			
		
$resultpurshasesetup=mysql_query($querypurshasesetup,$connection) or die(mysql_error());
while($rowpurshasesetup=mysql_fetch_array($resultpurshasesetup)){
	extract($rowpurshasesetup);
}	


//read from salessetup  2  

$querysalessetup= "Select Warehouse As Warehouse2,Project As Project2,Costcenter As Costcenter2,
PaymentMode As PaymentMode2, Charges As Charges2, ClientCur, ClientAccount As ClientAccount2, DebitCur As DebitCur2, DebitCurDefault As DebitCurDefault2,
CreditCur, CreditCurdefault, CreditAccount As CreditAccount2, CreditAccountVAT, CustomsCur As CustomsCur2, CashCur As CashCur2, CashCurDefault As CashCurDefault2, CashAccount As CashAccount2,
CheckCur As CheckCur2, CheckAccount As CheckAccount2, TipsAccount As TipsAccount2, VatAccount As VatAccount2, CreditAccountReturn, DiscountAccount As DiscountAccount2, Directstockdebit As Directstockdebit2, Directstockcredit As Directstockcredit2,
DirectStockCurrency_Code As DirectStockCurrency_Code2, TipsMaxBase1 AS TipsMaxBase12, PrintPreview, CreditVATReturn, SalesSetup,  Salesttc aS Salesttc2,
Sale_Remark, SalesJV_VatAccount, Sale_Acctax1, Sale_Acctax2, Sale_Acctax3, Sale_Acctax4,
Sale_Acctax5, PromotionAccount, Sale_ExchangeSellPrice, Synchronized As Synchronized2, Barcode As Barcode2, Sale_CLAAccount, Sale_DCTAccount, Sale_AWAccount,
Sale_TRPAccount, LoadItems, TransportAccount, ExportTransportToJV, BonusAccount, ExportBonusToJV, InvoiceComment,WaybillComment,Sale_MinPendingQty,Sale_MaxExceedQty,
Sale_MarginPer,VATAccountNonStock As VATAccountNonStock2,SorderComment,PriceDecimalBase,ShowCostCentLayout As ShowCostCentLayout2    from salessetup ";



$resultsalessetup=mysql_query($querysalessetup,$connection) or die(mysql_error());
while($rowsalessetup=mysql_fetch_array($resultsalessetup)){
	extract($rowsalessetup);
}	




//read from transfersetup   3

$querytransfersetup= "Select DebitAccount As DebitAccount3, CreditAccount, CurrencyBase, DefaultCur, Synchronized As Synchronized3 , Barcode As Barcode3, ShowCostCentLayout As ShowCostCentLayout3 from transfersetup ";

	
$resultquerytransfersetup=mysql_query($querytransfersetup,$connection) or die(mysql_error());
while($rowstransfersetup=mysql_fetch_array($resultquerytransfersetup)){
	extract($rowstransfersetup);
}	




// update transfersetup



$queryupdatetransfersetup="UPDATE transfersetup   
					SET  DebitAccount=		, CreditAccount=		, CurrencyBase=		, DefaultCur]		, Synchronized=		 , Barcode=		, ShowCostCentLayout=		"; 


	
	
	
$querycurrency="select Currency_code from currency order by currency_code";
$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" />
<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
};




	
</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='./../contract/Form_utiilities_action.php'>

<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;




//$style= "style=' background-color:#4069A7; color:#FFFFFF;font-family:Verdana, Arial, Helvetica, 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>";

		
		
		
	echo"<tr height='100'><td align=left id='content-body'>";
	    
        echo"   <div class='tabber' id='tab1' style='width: 1100px;height:2300px; margin-left: 50px;  margin-top:10px; float:left; text-align:left;'> ";
		
       echo"	<div class='tabbertab'>
				<h2 title='GeneralSetup'>General Setup</h2>";
    
	echo"		<div id='datagrid-d' 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' height='25'><td align='left'><span class='style1' >Company Name</span></td>
				<td align='left'><input type='text' name='Company_Name' id='Company_Name' value='$CompanyName' maxlength='60' style='width:200px;'></td>
				
				
				<td align='left'><span class='style1'>Company Name S</span></td>
				<td align='left'><input type='text' name='Company_Namef' id='Company_Name' value='$CompanyNameF' maxlength='60' style='width:200px;'></td>
				
				
				<td align='center' rowspan='2'><img src='LogoFile.php' alt='Photo' style='width:250px; height:110px;'></img></td></tr>";
		echo"	<tr bgcolor='#F7F7F7'><td align='left' valign='top'><span class='style1'>Company Memo</span></td>
				<td align='left'><textarea maxlength='255'name='Company_Memo' id='Company_Memo' rows='4' style='width:200px;'>$CompanyMemo</textarea></td>
				
				
				<td align='left' valign='top'><span class='style1'>Company Memo S</span></td>
				<td align='left'><textarea name='Company_Memof' id='Company_memof' rows='4' style='width:200px;'>$CompanyMemoF</textarea></td></tr>";
		echo"	<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Company Capital</span></td>
				
				
				
				<td align='left'><input type='text' name='Company_Name' id='Company_Capital' value='$CompanyCapital' maxlength='60' style='width:200px;'></td>
				<td align='left'><span class='style1'>Company Capital S</span></td>
				
				<td align='left'><input type='text' name='Company_Capitalf' id='Company_Namef' value='$CompanycapitalF' maxlength='60' style='width:200px;'></td>
				<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='file' name='photo' id='photo' style='width:250px;' accept='image/jpeg,image/gif,image/png'></td></tr>";		
	
	
	
	//	echo"	<tr bgcolor='#F7F7F7' height='25'><td align='left'><span class='style1'>VAT (%)</span></td><td align='left'>
	//			<input type='text' name='Setup_VatPercentage' id='Setup_VatPercentage' value='$Setup_VatPercentage' maxlength='3' style='width:30px;'>
	//			<span class='style1'>Date </span><input type='text' name='Setup_VatStartDate' id='Setup_VatStartDate' value='$Setup_VatStartDate' maxlength='11' style='width:80px;'>
	//			<span class='style1'>VAT No </span><input type='text' name='Setup_VatNo' id='Setup_VatNo' value='$Setup_VatNo' maxlength='20' style='width:100px;'></td></tr>";
	

	echo"	<tr bgcolor='#F7F7F7' height='25'><td align='left'><span class='style1'>Currency Base1</span></td>";
		echo"	<td align='left' colspan='2'><select name='Base1' id='Base1' style='width:75px; height:22px;'>";
				echo"<option></option>";
				
				while($curf=mysql_fetch_row($resultcurrency1)){
					echo"<option ";
						if ($Base1==$curf[0]) 	echo " selected ";
						echo" value='$curf[0]'>$curf[0] </option>";}
		echo"	</select><span class='style1'>  Base2 </span><select name='Base2' id='Base2' style='width:75px; height:22px;'>";
					echo"<option></option>";
					while($curf=mysql_fetch_row($resultcurrency2)){
						echo"<option ";
						if ($Base2==$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'> Telephone</span></td>
				<td><input type='text' name='COMPANY_TELEPHONE' id='COMPANY_TELEPHONE' value='$CompanyTelephone' maxlength='30'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>Fax</span></td>
				<td align='left'><input type='text' name='COMPANY_FAX' id='COMPANY_FAX' value='$CompanyFax' maxlength='15' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> City </span></td>
				<td><input type='text' name='COMPANY_CITY' id='COMPANY_CITY'value='$CompanyCity' maxlength='30'  style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>Stat</span></td>
				<td align='left'><input type='text' name='COMPANY_STAT' id='COMPANY_STAT' value='$CompanyState' maxlength='30' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Country </span></td>
				<td><input type='text' name='COMPANY_COUNTRY' id='COMPANY_COUNTRY' value='$CompanyCountry' maxlength='30'  style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>DecimalBase</span></td>
				<td align='left'><input type='number' min='0' name='DecimalBase' id='DecimalBase' value='$DecimalBase' maxlength='11' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Decimalbase1</span></td>
				<td><input type='number' min='0' name='Decimalbase1' id='Decimalbase1' value='$Decimalbase1' maxlength='11'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>Decimal base2</span></td>
				<td align='left'><input type='number' min='0' name='Decimalbase2' id='Decimalbase2' value='$Decimalbase2' maxlength='11' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>MainCompany </span></td>
				<td><input type='text'  name='MainCompany' id='MainCompany' value='$MainCompany' maxlength='50'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>Clientaccount</span></td>
				<td align='left'><input type='text'  name='Clientaccount' id='Clientaccount' value='$Clientaccount' maxlength='10' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Checkaccount </span></td>
				<td><input type='text'  name='Checkaccount' id='Checkaccount' value='$Checkaccount' maxlength='10'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>SetupVatNo</span></td>
				<td align='left'><input type='text'  name='Setup_VatNo' id='Setup_VatNo' value='$SetupVatNo' maxlength='20' style='width:200px;'></td>
			</tr>
	
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Vatstartdate </span></td>
				<td><input type='datetime'  name='Setup_VatStartDate' id='Setup_VatStartDate' value='$Vatstartdate' maxlength='25'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>SetupVatPercentage</span></td>
				<td align='left'><input  type='number' min='0' step='0.01' name='Setup_VatPercentage' id='Setup_VatPercentage' value='$SetupVatPercentage' maxlength='' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> DirectStock</span></td>
				
				<td><input type='radio'  id='1' name='DirectStock' value='1'> yes
				<input type='radio' id='1'  name='DirectStock' value='0'> no</td>
				
				<td align='left'><span class='style1'>DiscountAccount</span></td>
				<td align='left'><input type='text'  name='DiscountAccount' id='DiscountAccount' value='$DiscountAccount' maxlength='10' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>SupplierFirstDigit </span></td>
				<td><input type='text'  name='SupplierFirstDigit' id='SupplierFirstDigit' value='$SupplierFirstDigit' maxlength='10'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>ClientFirstDigit</span></td>
				<td align='left'><input type='text'  name='ClientFirstDigit' id='ClientFirstDigit' value='$ClientFirstDigit' maxlength='10' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>SalesmenFirstDigit </span></td>
				<td><input type='text'  name='SalesmenFirstDigit' id='SalesmenFirstDigit' value='$SalesmenFirstDigit' maxlength='10'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>NbrOfDigitInLedger</span></td>
				<td align='left'><input type='number' min='0'  name='NbrOfDigitInLedger' id='NbrOfDigitInLedger' value='$NbrOfDigitInLedger' maxlength='11' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Warehouse Code</span></td>
				<td><input type='text'  name='Warehouse_Code' id='Warehouse_Code' value='$WarehouseCode' maxlength='15'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>PRINTOPTION</span></td>
				
				<td><input type='radio' name='PRINTOPTION' value='1'> yes
				<input type='radio' name='PRINTOPTION' value='0'> no  </td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Itemcurrency</span></td>
				<td><input type='text'  name='Itemcurrency' id='Itemcurrency' value='$Itemcurrency' maxlength='6'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>PathArchive</span></td>
				<td align='left'><input type='text'  name='PathArchive' id='PathArchive' value='$PathArchive' maxlength='150' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Defaultw</span></td>
				<td><input type='number' step='any' min='0' name='Defaultw' id='Defaultw' value='$Defaultw'  style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>ShowSlipNumber</span></td>
				<td align='left'><input type='number' min='0'  max='9'  name='ShowSlipNumber' id='ShowSlipNumber' value='$' maxlength='1' style='width:50px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>ItemTargetDate </span></td>
				<td><input type='radio' name='ItemTargetDate' value='1'> yes
					<input type='radio' name='ItemTargetDate' value='0'> no</td>
	
				<td align='left'><span class='style1'>ChkCommissionAcc</span></td>
				<td align='left'><input type='text'  name='ChkCommissionAcc' id='ChkCommissionAcc' value='$ChkCommissionAcc' maxlength='10' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Salesttc </span></td>
				<td><input type='radio' name='Salesttc' value='1'> yes
					<input type='radio' name='Salesttc' value='0'> no</td>
	
				
				
				<td align='left'><span class='style1'>Del inventory JvTransaction</span></td>
				<td><input type='radio' name='DelinventoryJvTransaction' value='1'> yes
					<input type='radio' name='DelinventoryJvTransaction' value='0'> no</td>
	
		</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Journal Default Currency </span></td>
				<td><input type='text'  name='Journal_DefaultCur' id='Journal_DefaultCur' value='$JournalDefaultCur' maxlength='6'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>Supplier_DefaultCur </span></td>
				<td align='left'><input type='text'  name='Supplier_DefaultCur' id='Supplier_DefaultCur' value='$SupplierDefaultCur' maxlength='6' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Supplier Payment Terms </span></td>
				<td><input type='number' step='any' min='0'  name='Supplier_PaymentTerms' id='Supplier_PaymentTerms' value='$SupplierPaymentTerms' maxlength='25'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>Supplier Credit Limit</span></td>
				<td align='left'><input type='number' step='any' min='0' name='Supplier_CreditLimit' id='Supplier_CreditLimit' value='$SupplierCreditLimit' maxlength='60' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Client Default Cur</span></td>
				<td><input type='text'  name='Client_DefaultCur' id='Client_DefaultCur' value='$ClientDefaultCur' maxlength='6'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>Client Payment Terms </span></td>
				<td align='left'><input type='number' step='any' min='0'  name='Client_PaymentTerms' id='Client_PaymentTerms' value='$ClientPaymentTerms'  style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Client Credit Limit </span></td>
				<td><input type='number' step='any' min='0' name='Client_CreditLimit' id='Client_CreditLimit' value='$ClientCreditLimit' style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'> Salesman Default Cur </span></td>
				<td align='left'><input type='text'  name='Salesman_DefaultCur' id='Salesman_DefaultCur' value='$SalesmanDefaultCur' maxlength='6' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Salesman Credit Limit </span></td>
				<td><input type='number' step='any' min='0'  name='Salesman_CreditLimit' id='Salesman_CreditLimit' value='$SalesmanCreditLimit' style='font-size:12px; 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_PaymentTerms' id='Customer_PaymentTerms' value='$CustomerPaymentTerms'  style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Customer_CreditLimit </span></td>
				<td><input type='number' step='any' min='0' name='Customer_CreditLimit' id='Customer_CreditLimit' value='$CustomerCreditLimit' style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>Setup Tax1 Active </span></td>
			
				<td><input type='radio' name='Setup_Tax1Active' value='1'> yes
					<input type='radio' name='Setup_Tax1Active' value='0'> no</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Setup Tax2 Active </span></td>
				
				<td><input type='radio' name='Setup_Tax2Active' value='1'> yes
					<input type='radio' name='Setup_Tax2Active' value='0'> no	</td>
				
				
				<td align='left'><span class='style1'>Setup  Tax3  Active </span></td>
				
				
			<td><input type='radio' name='Setup_Tax3Active' value='1'> yes
				<input type='radio' name='Setup_Tax3Active' value='0'> no</td>
				
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Setup Tax4  Active </span></td>
			
				<td><input type='radio' name='Setup_Tax4Active' value='1'> yes
					<input type='radio' name='Setup_Tax4Active' value='0'> no</td>
			
				
				<td align='left'><span class='style1'>Setup Tax5 Active </span></td>
				
				<td><input type='radio' name='Setup_Tax5Active' value='1'> yes
					<input type='radio' name='Setup_Tax5Active' value='0'> no</td>
				
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Setup Tax1 Name </span></td>
				<td><input type='text'  name='Setup_Tax1Name' id='Setup_Tax1Name' value='$SetupTax1Name' maxlength='30'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_Tax2Name' id='Setup_Tax2Name' value='$SetupTax2Name' maxlength='30' 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_Tax3Name' id='Setup_Tax3Name' value='$SetupTax3Name' maxlength='30'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_Tax4Name' id='Setup_Tax4Name' value='$SetupTax4Name' maxlength='30' 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_Tax5Name' id='Setup_Tax5Name' value='$SetupTax5Name' maxlength='30'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>Stmt Of ItemRMask Qty </span></td>
				<td align='left'><input type='number'   name='StmtOfItemRMaskQty' id='StmtOfItemRMaskQty' value='$StmtOfItemRMaskQty' maxlength='11' style='width:200px;'></td>
			</tr>
			
				<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Supplier_ValidateProject  </span></td>
				
				<td><input type='radio' name='Supplier_ValidateProject' value='1'> yes
					<input type='radio' name='Supplier_ValidateProject' value='0'> no</td>
	
				<td align='left'><span class='style1'>Client Validate Project</span></td>
					<td><input type='radio' name='Client_ValidateProject' value='1'> yes
					<input type='radio' name='Client_ValidateProject' value='0'> no</td>
			</tr>
			
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>  Inventory R Mask qty</span></td>
				<td><input type='number'  name='InventoryRMaskqty' id='InventoryRMaskqty' value='$InventoryRMaskqty' 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='ClientSalesRMaskQty' id='ClientSalesRMaskQty' value='$ClientSalesRMaskQty' 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='PurchaseRMaskQty' id='PurchaseRMaskQty' value='$PurchaseRMaskQty' maxlength='11'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>List Of Production Mask Qty </span></td>
				<td align='left'><input type='number'  name='ListOfProductionMaskQty' id='ListOfProductionMaskQty' value='$ListOfProductionMaskQty' maxlength='11' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Porder Report Mask Qty  </span></td>
				<td><input type='number'  name='PorderReportMaskQty' id='PorderReportMaskQty' value='$PorderReportMaskQty' 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='MaskQty' id='MaskQty' value='$MaskQty' maxlength='11' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Synchronized </span></td>
				
				<td><input type='radio' name='Synchronized' value='1'> yes
					<input type='radio' name='Synchronized' value='0'> no</td>
				
				
				<td align='left'><span class='style1'>Barcode </span></td>
				<td><input type='radio' name='Barcode' value='1'> yes
					<input type='radio' name='Barcode' value='0'> no</td>
				
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> ApplyLedger_Deactivate </span></td>
				
				<td><input type='radio' name='ApplyLedger_Deactivate' value='1'> yes
					<input type='radio' name='ApplyLedger_Deactivate' value='0'> no</td>
				
				
				
				<td align='left'><span class='style1'>RMA  In</span></td>
				<td align='left'><input type='text'  name='RMA_In' id='RMA_In' value='$RMAIn' 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_Out' id='RMA_Out' value='$RMAOut' maxlength='15'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>Salesman Is Ledger </span></td>
				<td><input type='radio' name='Salesman_IsLedger' value='1'> yes
					<input type='radio' name='Salesman_IsLedger' value='0'> no</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Ledger_ValidateProject </span></td>
					<td><input type='radio' name='Ledger_ValidateProject' value='1'> yes
					<input type='radio' name='Ledger_ValidateProject' value='0'> no</td>
				
				
				<td align='left'><span class='style1'>setup  CI Exp</span></td>
				<td align='left'><textarea maxlength='250'name='setup_GCIExp' id='setup_GCIExp' rows='4' style='width:200px;'>$setupGCIExp</textarea></td>
	
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Default Base  </span></td>
				<td><input type='number' min='0' name='DefaultBase' id='DefaultBase' value='$DefaultBase' maxlength='11'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>  Access Labels </span></td>
				<td align='left'><input type='text'  name='AccessLabels' id='AccessLabels' value='$AccessLabels' maxlength='64' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> grid_color1 </span></td>
				<td><input type='text'  name='grid_color1' id='grid_color1' value='$gridcolor1' maxlength='45'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>grid_color2</span></td>
				<td align='left'><input type='text'  name='grid_color2' id='grid_color2' value='$gridcolor2' maxlength='45' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> setup branch </span></td>
				<td><input type='text'  name='setup_branch' id='setup_branch' value='$setupbranch' maxlength='20'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'></span>Setup Tips Max Amount</td>
				<td align='left'><input type='number' step='any' min='0' name='Setup_TipsMaxAmount' id='Setup_TipsMaxAmount' value='$SetupTipsMaxAmount'  style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>  Setup S order Mail Msg</span></td>
				<td><textarea maxlength='255'name='Setup_SorderMailMsg' id='Setup_SorderMailMsg' rows='4' style='width:200px;'>$SetupSorderMailMsg</textarea></td>

				<td align='left'><span class='style1'>Cash Reg Weight</span></td>
				
				<td><input type='radio' name='CashReg_Weight' value='1'> yes
					<input type='radio' name='CashReg_Weight' value='0'> no</td>
				
			
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> CashReg Start Barcode  </span></td>
				<td><input type='number'  name='CashReg_StartBarcode' id='CashReg_StartBarcode' value='$CashRegStartBarcode' maxlength='11'style='font-size:12px; width:200px; '></td>	
				
				
				<td align='left'><span class='style1'>CashReg End Barcode </span></td>
				<td align='left'><input type='number'  name='CashReg_EndBarcode' id='CashReg_EndBarcode' value='$CashRegEndBarcode' maxlength='11' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> CashReg Start Qty </span></td>
				<td><input type='number'  name='CashReg_StartQty' id='CashReg_StartQty' value='$CashRegStartQty' maxlength='11'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>Cash Reg End Qty </span></td>
				<td align='left'><input type='number'  name='CashReg_EndQty' id='CashReg_EndQty' value='$CashRegEndQty' maxlength='11' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>  CashReg Price</span></td>
				
				<td><input type='radio' name='CashReg_Price' value='1'> yes
					<input type='radio' name='CashReg_Price' value='0'> no</td>
				
				
				<td align='left'><span class='style1'>CashReg Start Price</span></td>
				<td align='left'><input type='number' min='0' name='CashReg_StartPrice' id='CashReg_StartPrice' value='$CashRegStartPrice' maxlength='11' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CashReg End Price  </span></td>
				<td><input type='number'  name='CashReg_EndPrice' id='CashReg_EndPrice' value='$CashRegEndPrice' maxlength='11'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>CashReg DispLed Msg </span></td>
				<td align='left'><input type='text'  name='CashReg_DispLedMsg' id='CashReg_DispLedMsg' value='$CashRegDispLedMsg' maxlength='20' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>max perpage  </span></td>
				<td><input type='number' step='any' min='0'  name='maxperpage' id='maxperpage' value='$maxperpage' style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>show company logo </span></td>
				
				<td><input type='radio' name='show_companylogo' value='1'> yes
					<input type='radio' name='show_companylogo' value='0'> no</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> show_companyname </span></td>
				
				<td><input type='radio' name='show_companyname' value='1'> yes
					<input type='radio' name='show_companyname' value='0'> no</td>
				
				<td align='left'><span class='style1'>show_printdatetime</span></td>
				
				<td><input type='radio' name='show_printdatetime' value='1'> yes
					<input type='radio' name='show_printdatetime' value='0'> no</td>
				
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> show user   </span></td>
				
				<td><input type='radio' name='show_user' value='1'> yes
					<input type='radio' name='show_user' value='0'> no</td>

				<td align='left'><span class='style1'>show company memo </span></td>
			
				<td><input type='radio' name='show_companymemo' value='1'> yes
					<input type='radio' name='show_companymemo' value='0'> no</td>

			</tr>
			
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>  Setup Multi Lang Print</span></td>
			
				<td><input type='radio' name='Setup_MultiLangPrint' value='1'> yes
					<input type='radio' name='Setup_MultiLangPrint' value='0'> no</td>

				
				<td align='left'><span class='style1'>Setup Slip Footer</span></td>
				<td align='left'><textarea maxlength='255'name='Setup_SlipFooter' id='Setup_SlipFooter' rows='4' style='width:200px;'>$SetupSlipFooter</textarea></td>
				</tr>
			
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> CashReg BgColor Offer  </span></td>
				<td><input type='text'  name='CashReg_BgColorOffer' id='CashReg_BgColorOffer' value='$CashRegBgColorOffer' maxlength='20'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>CashReg BgColor Qty</span></td>
				<td align='left'><input type='text'  name='CashReg_BgColorQty' id='CashReg_BgColorQty' value='$CashRegBgColorQty' maxlength='20' style='width:200px;'></td>
			</tr>
			
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> CashReg BgColor Order Qty </span></td>
				<td><input type='text'  name='CashReg_BgColorOrderQty' id='CashReg_BgColorOrderQty' value='$CashRegBgColorOrderQty' maxlength='20'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>CashReg BgColor Zero Price</span></td>
				<td align='left'><input type='text'  name='CashReg_BgColorZeroPrice' id='CashReg_BgColorZeroPrice' value='$CashRegBgColorZeroPrice' maxlength='20' style='width:200px;'></td>
			</tr>
			
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> CashReg BgColor Zero Qty</span></td>
				<td><input type='text'  name='CashReg_BgColorZeroQty' id='CashReg_BgColorZeroQty' value='$CashRegBgColorZeroQty' maxlength='20'style='font-size:12px; width:200px; '></td>	
				
				<td align='left'><span class='style1'>CashReg BgColor Has Discount</span></td>
				<td align='left'><input type='text'  name='CashReg_BgColorHasDiscount' id='CashReg_BgColorHasDiscount' value='$CashRegBgColorHasDiscount' maxlength='20' style='width:200px;'></td>
			</tr>
			
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>  Setup License No</span></td>
		<td><textarea maxlength='100' name='Setup_LicenseNo' id='Setup_LicenseNo' rows='4' style='width:200px;'>$SetupLicenseNo</textarea></td>

				
				<td align='left'><span class='style1'>Setup Client Serial No</span></td>
				<td align='left'><textarea maxlength='200' name='Setup_ClientSerialNo' id='Setup_ClientSerialNo' rows='4' style='width:200px;'>$SetupClientSerialNo</textarea></td>
			</tr>
			
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> CashReg Apply Color Offer </span></td>
				
				<td><input type='radio' name='CashReg_ApplyColorOffer' value='1'> yes
					<input type='radio' name='CashReg_ApplyColorOffer' value='0'> no</td>

				
				<td align='left'><span class='style1'>CashReg Apply Color Qty</span></td>
				  <td><input type='radio' name='CashReg_ApplyColorQty' value='1'> yes
				<input type='radio' name='CashReg_ApplyColorQty' value='0'> no</td>
			</tr>
			
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> CashReg Apply Color Order Qty </span></td>
				  <td><input type='radio' name='CashReg_ApplyColorOrderQty' value='1'> yes
				<input type='radio' name='CashReg_ApplyColorOrderQty' value='0'> no</td>
				
				
				<td align='left'><span class='style1'>CashReg Apply Color Zero Price </span></td>
				  <td><input type='radio' name='CashReg_ApplyColorZeroPrice' value='1'> yes
				<input type='radio' name='CashReg_ApplyColorZeroPrice' value='0'> no</td>
			</tr>
			
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CashReg apply Color Zero Qty  </span></td>
				
				  <td><input type='radio' name='CashReg_ApplyColorZeroQty' value='1'> yes
				<input type='radio' name='CashReg_ApplyColorZeroQty' value='0'> no</td>
				
				<td align='left'><span class='style1'>CashReg Apply Color Has Discount</span></td>
				  <td><input type='radio' name='CashReg_ApplyColorHasDiscount' value='1'> yes
				<input type='radio' name='CashReg_ApplyColorHasDiscount' value='0'> no</td>
				
			</tr>
			
		
	
		";
		
		
		echo"	</table>";
    	echo"	</div>";
    	echo"	</div>";
		
		   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='Warehouse' id='Warehouse' value='$Warehouse' 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='Project' id='Project' value='$Project' maxlength='15' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Costcenter </span></td>
				<td><input type='text'  name='Costcenter' id='Costcenter' value='$Costcenter' 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='PaymentMode' id='PaymentMode' value='$PaymentMode'  style='width:200px;'></td>
		
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Charges</span></td>
			  <td><input type='radio' name='Charges' value='1'> yes
				<input type='radio' name='Charges' value='0'> no</td>
			
				
				<td align='left'><span class='style1'>SupplierCur</span></td>
				<td align='left'><input type='text'  name='SupplierCur' id='SupplierCur' value='$SupplierCur' maxlength='6' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>FreightCur</span></td>
				<td align='left'><input type='text'  name='FreightCur' id='FreightCur' value='$FreightCur' maxlength='6' style='width:200px;'></td>
			
				<td align='left'><span class='style1'>FreightDebitAccount</span></td>
				<td align='left'><input type='text'  name='FreightDebitAccount' id='FreightDebitAccount' value='$FreightDebitAccount' 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='FreightCreditAccount' id='FreightCreditAccount' value='$FreightCreditAccount' maxlength='10' style='width:200px;'></td>
			
				<td align='left'><span class='style1'>CommissionsCur</span></td>
				<td align='left'><input type='text'  name='CommissionsCur' id='CommissionsCur' value='$CommissionsCur' maxlength='6' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CommissionsDebitAccount</span></td>
				<td align='left'><input type='text'  name='CommissionsDebitAccount' id='CommissionsDebitAccount' value='$CommissionsDebitAccount' maxlength='10' style='width:200px;'></td>
			
				<td align='left'><span class='style1'>CommissionsCreditAccount</span></td>
				<td align='left'><input type='text'  name='CommissionsCreditAccount' id='CommissionsCreditAccount' value='$CommissionsCreditAccount' maxlength='10' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CommissionsDebitAccount</span></td>
				<td align='left'><input type='text'  name='CommissionsDebitAccount' id='CommissionsDebitAccount' value='$CommissionsDebitAccount' maxlength='10' style='width:200px;'></td>
			
				<td align='left'><span class='style1'>InsuranceCur</span></td>
				<td align='left'><input type='text'  name='InsuranceCur' id='InsuranceCur' value='$InsuranceCur' maxlength='6' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>InsuranceDebitAccount</span></td>
				<td align='left'><input type='text'  name='InsuranceDebitAccount' id='InsuranceDebitAccount' value='$InsuranceDebitAccount' maxlength='10' style='width:200px;'></td>
			
				<td align='left'><span class='style1'>InsuranceCreditAccount</span></td>
				<td align='left'><input type='text'  name='InsuranceCreditAccount' id='InsuranceCreditAccount' value='$InsuranceCreditAccount' 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='ClearingCur' id='ClearingCur' value='$ClearingCur' maxlength='6' style='width:200px;'></td>
			
				<td align='left'><span class='style1'>ClearingDebitAccount</span></td>
				<td align='left'><input type='text'  name='ClearingDebitAccount' id='ClearingDebitAccount' value='$ClearingDebitAccount' maxlength='10' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>ClearingCreditAccount</span></td>
				<td align='left'><input type='text'  name='ClearingCreditAccount' id='ClearingCreditAccount' value='$ClearingCreditAccount' maxlength='10' style='width:200px;'></td>
			
				<td align='left'><span class='style1'>TransportCur</span></td>
				<td align='left'><input type='text'  name='TransportCur' id='TransportCur' value='$TransportCur' maxlength='6' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>TransportDebitAccount</span></td>
				<td align='left'><input type='text'  name='TransportDebitAccount' id='TransportDebitAccount' value='$TransportDebitAccount' maxlength='10' style='width:200px;'></td>
			
				<td align='left'><span class='style1'>TransportCreditAccount</span></td>
				<td align='left'><input type='text'  name='TransportCreditAccount' id='TransportCreditAccount' value='$TransportCreditAccount' maxlength='10' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>OtherDebitAccount</span></td>
				<td align='left'><input type='text'  name='OtherDebitAccount' id='OtherDebitAccount' value='$OtherDebitAccount' maxlength='10' style='width:200px;'></td>
			
				<td align='left'><span class='style1'>OtherCreditAccount</span></td>
				<td align='left'><input type='text'  name='OtherCreditAccount' id='OtherCreditAccount' value='$OtherCreditAccount' 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='DebitCur' id='DebitCur' value='$DebitCur' maxlength='6' style='width:200px;'></td>
			
			
				<td align='left'><span class='style1'>DebitCurdefault</span></td>
				  <td><input type='radio' name='DebitCurdefault' value='1'> yes
				<input type='radio' name='DebitCurdefault' value='0'> no</td>
				
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>DebitAccount</span></td>
				<td align='left'><input type='text'  name='DebitAccount' id='DebitAccount' value='$DebitAccount' maxlength='10' style='width:200px;'></td>
			
				<td align='left'><span class='style1'>DebitAccountVat</span></td>
				<td align='left'><input type='text'  name='DebitAccountVat' id='DebitAccountVat' value='$DebitAccountVat' 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='CashCur' id='CashCur' value='$CashCur' maxlength='6' style='width:200px;'></td>
			
			
				<td align='left'><span class='style1'>CashCurDefault</span></td>
				
				<td><input type='radio' name='CashCurDefault' value='1'> yes
				<input type='radio' name='CashCurDefault' value='0'> no</td>
				
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CashAccount</span></td>
				<td align='left'><input type='text'  name='CashAccount' id='CashAccount' value='$CashAccount' maxlength='10' style='width:200px;'></td>
			
				<td align='left'><span class='style1'>CheckCur</span></td>
				<td align='left'><input type='text'  name='CheckCur' id='CheckCur' value='$CheckCur' maxlength='6' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CheckAccount</span></td>
				<td align='left'><input type='text'  name='CheckAccount1' id='CheckAccount1' value='$CheckAccount1' maxlength='10' style='width:200px;'></td>
			
				<td align='left'><span class='style1'>CustomsDebitAccount</span></td>
				<td align='left'><input type='text'  name='CustomsDebitAccount' id='CustomsDebitAccount' value='$CustomsDebitAccount' maxlength='10' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CustomsCreditAccount</span></td>
				<td align='left'><input type='text'  name='CustomsCreditAccount' id='CustomsCreditAccount' value='$CustomsCreditAccount' maxlength='10' style='width:200px;'></td>
			
				<td align='left'><span class='style1'>CustomsCur</span></td>
				<td align='left'><input type='text'  name='CustomsCur' id='CustomsCur' value='$CustomsCur' maxlength='6' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>VatAccount</span></td>
				<td align='left'><input type='text'  name='VatAccount' id='VatAccount' value='$VatAccount' maxlength='10' style='width:200px;'></td>
			
				<td align='left'><span class='style1'>DiscountAccount</span></td>
				<td align='left'><input type='text'  name='DiscountAccount1' id='DiscountAccount1' value='$DiscountAccount1' maxlength='10' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>PurchaseTTC</span></td>
				  <td><input type='radio' name='PurchaseTTC' value='1'> yes
				<input type='radio' name='PurchaseTTC' value='0'> no</td>
			
				
				<td align='left'><span class='style1'>Barcode</span></td>
				<td><input type='number' min='0' max='9'  name='Barcode1' id='Barcode1' value='$Barcode1' maxlength='1'style='font-size:12px; width:50px; '></td>	
			</tr>	
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Directstockdebit</span></td>
				<td align='left'><input type='text'  name='Directstockdebit' id='Directstockdebit' value='$Directstockdebit' maxlength='10' style='width:200px;'></td>
			
				<td align='left'><span class='style1'>Directstockcredit</span></td>
				<td align='left'><input type='text'  name='Directstockcredit' id='Directstockcredit' value='$Directstockcredit' maxlength='10' style='width:200px;'></td>
			</tr>
			
				<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Directstockcurrency_code</span></td>
				<td align='left'><input type='text'  name='Directstockcurrency_code' id='Directstockcurrency_code' value='$Directstockcurrency_code' maxlength='10' style='width:200px;'></td>
			
				<td align='left'><span class='style1'>Purchasejv_chargedebit</span></td>
				<td align='left'><input type='text'  name='Purchasejv_chargedebit' id='Purchasejv_chargedebit' value='$Purchasejv_chargedebit' maxlength='10' style='width:200px;'></td>
			</tr>
			
				<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Purchasejv_chargecredit</span></td>
				<td align='left'><input type='text'  name='Purchasejv_chargecredit' id='Purchasejv_chargecredit' value='$Purchasejv_chargecredit' maxlength='10' style='width:200px;'></td>
			
				<td align='left'><span class='style1'>TipsAccount</span></td>
				<td align='left'><input type='text'  name='TipsAccount' id='TipsAccount' value='$TipsAccount' maxlength='10' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>TipsMaxBase1</span></td>
				<td align='left'><input  type='number' min='0' step='0.01' name='TipsMaxBase1' id='TipsMaxBase1' value='$TipsMaxBase1'  style='width:200px;'></td>
			
				<td align='left'><span class='style1'>PurchaseJV_VatAccount</span></td>
				<td align='left'><input type='text'  name='PurchaseJV_VatAccount' id='PurchaseJV_VatAccount' value='$PurchaseJV_VatAccount' maxlength='10' style='width:200px;'></td>
			</tr>
			
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>PurchaseDefaultType</span></td>
				<td align='left'><input type='text'  name='PurchaseDefaultType' id='PurchaseDefaultType' value='$PurchaseDefaultType' maxlength='10' style='width:200px;'></td>
			
				<td align='left'><span class='style1'>Purchase_Acctax1</span></td>
				<td align='left'><input type='text'  name='Purchase_Acctax1' id='Purchase_Acctax1' value='$Purchase_Acctax1' maxlength='10' 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_Acctax2' id='Purchase_Acctax2' value='$Purchase_Acctax2' maxlength='10' style='width:200px;'></td>
			
				<td align='left'><span class='style1'>Purchase_Acctax3</span></td>
				<td align='left'><input type='text'  name='Purchase_Acctax3' id='Purchase_Acctax3' value='$Purchase_Acctax3' maxlength='10' 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_Acctax4' id='Purchase_Acctax4' value='$Purchase_Acctax4' maxlength='10' style='width:200px;'></td>
			
				<td align='left'><span class='style1'>Purchase_Acctax5</span></td>
				<td align='left'><input type='text'  name='Purchase_Acctax5' id='Purchase_Acctax5' value='$Purchase_Acctax5' maxlength='10' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Synchronized</span></td>
				<td><input type='number' min='0' max='9'  name='Synchronized1' id='Synchronized1' value='$Synchronized1' maxlength='1'style='font-size:12px; width:50px; '></td>	
				
				<td align='left'><span class='style1'>VATAccountNonStock</span></td>
				<td align='left'><input type='text'  name='VATAccountNonStock' id='VATAccountNonStock' value='$VATAccountNonStock' maxlength='10' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>ShowCostCentLayout</span></td>
			  <td><input type='radio' name='ShowCostCentLayout' value='1'> yes
				<input type='radio' name='ShowCostCentLayout' value='0'> no</td>
			
				
				<td></td>
				<td></td>
			</tr>
			
			";
				
				echo"</table>";
				
				
				echo"</div>";      
				echo"</div>";      
				
		 echo"	<div class='tabbertab'>
				<h2 title='salessetup2'>sales setup</h2>";
				echo"	<div id='datagrid-d1' style='width:1088px; height:1300px; 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; 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'>  CreditAccount </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='Costcenter' 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'>Charges</span></td>
				<td><input type='radio' name='Charges2' id='Charges2'value='1'> yes
										<input type='radio' name='Charges2' id='Charges' value='0'> no</td>
				
				<td align='left'><span class='style1'>ClientAccount</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'>DebitCur</span></td>
				<td align='left'><input type='text'  name='DebitCur2' id='DebitCur2' value='$DebitCur2' maxlength='6' style='width:200px;'></td>
			
				<td align='left'><span class='style1'>DebitCurDefault</span></td>
				<td><input type='radio' name='DebitCurDefault2' id='DebitCurDefault2' value='1'> yes
					<input type='radio' name='DebitCurDefault2' id='DebitCurDefault2' value='0'> no</td>
			
			</tr>

			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CreditAccount</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'>CreditAccountVAT</span></td>
				<td align='left'><input type='text'  name='CreditAccountVAT' id='CreditAccountVAT' value='$CreditAccountVAT' 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='CustomsCur2' id='CustomsCur2' value='$CustomsCur2' maxlength='6' 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='6' style='width:200px;'></td>
			
			</tr>

			<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>CashCurDefault</span></td>
				<td><input type='radio' name='CashCurDefault2' id='CashCurDefault2' value='1'> yes
					<input type='radio' name='CashCurDefault2' id='CashCurDefault2' value='0'> no</td>
			
				<td align='left'><span class='style1'>CashAccount</span></td>
				<td align='left'><input type='text'  name='CashAccount2' id='CashAccount2' value='$CashAccount2' maxlength='10' style='width:200px;'></td>
			
			</tr>

			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>CheckCur</span></td>
				<td align='left'><input type='text'  name='CheckCur2' id='CheckCur2' value='$CheckCur2' maxlength='6' style='width:200px;'></td>
			
				<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='10' 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='CreditAccountReturn' id='CreditAccountReturn' value='$CreditAccountReturn' maxlength='10' style='width:200px;'></td>
			
			<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>
			
			</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='10' style='width:200px;'></td>
		
				<td align='left'><span class='style1'>Directstockcredit</span></td>
				<td align='left'><input type='text'  name='Directstockcredit2' id='Directstockcredit2' value='$Directstockcredit2' maxlength='10' style='width:200px;'></td>
		
			</tr>

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

			</tr>

			<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>PrintPreview</span></td>
			<td><input type='radio' name='PrintPreview' id='PrintPreview' value='1'> yes
				<input type='radio' name='PrintPreview' id='PrintPreview' value='0'> no</td>
			
				<td align='left'><span class='style1'>CreditVATReturn</span></td>
				<td align='left'><input type='text'  name='CreditVATReturn' id='CreditVATReturn' value='$CreditVATReturn' maxlength='10' style='width:200px;'></td>
			
			</tr>

			<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>SalesSetup</span></td>
				<td><input type='radio' name='SalesSetup' id='SalesSetup' value='1'> yes
					<input type='radio' name='SalesSetup' id='SalesSetup' value='0'> no</td>
			
				<td align='left'><span class='style1'>Salesttc</span></td>
				<td><input type='radio' name='Salesttc2' id='Salesttc2' value='1'> yes
					<input type='radio' name='Salesttc2' id='Salesttc2' value='0'> no</td>
			</tr>

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

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

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

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

			<tr bgcolor='#F7F7F7'>		<td align='left'><span class='style1'>Sale_ExchangeSellPrice</span></td>
				<td><input type='radio' name='Sale_ExchangeSellPrice' id='Sale_ExchangeSellPrice' value='1'> yes
					<input type='radio' name='Sale_ExchangeSellPrice' id='Sale_ExchangeSellPrice' value='0'> no</td>
			
				<td align='left'><span class='style1'>Synchronized</span></td>
				<td><input type='radio' name='Synchronized2' id='Synchronized2' value='1'> yes
					<input type='radio' name='Synchronized2' id='Synchronized2' value='0'> no</td>
			</tr>

			<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>Barcode</span></td>
			<td><input type='radio' name='Barcode2' id='Barcode2' value='1'> yes
				<input type='radio' name='Barcode2' id='Barcode2' value='0'> no</td>
			
			</tr>
			
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Sale_CLAAccount</span></td>
	<td align='left'><input type='text'  name='Sale_CLAAccount' id='Sale_CLAAccount' value='$Sale_CLAAccount' maxlength='10' style='width:200px;'></td>
		
			<td align='left'><span class='style1'>Sale_DCTAccount</span></td>
	<td align='left'><input type='text'  name='Sale_DCTAccount' id='Sale_DCTAccount' value='$Sale_DCTAccount' maxlength='10' style='width:200px;'></td>
		
			
			</tr>
			
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>Sale_AWAccount</span></td>
	<td align='left'><input type='text'  name='Sale_AWAccount' id='Sale_AWAccount' value='$Sale_AWAccount' maxlength='10' style='width:200px;'></td>
		
			<td align='left'><span class='style1'>Sale_TRPAccount</span></td>
	<td align='left'><input type='text'  name='Sale_TRPAccount' id='Sale_TRPAccount' value='$Sale_TRPAccount' maxlength='10' style='width:200px;'></td>
		
			
			</tr>
			
			
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>LoadItems</span></td>
				<td><input type='radio' name='LoadItems' id='LoadItems' value='1'> yes
					<input type='radio' name='LoadItems' id='LoadItems' value='0'> no</td>
			
				<td align='left'><span class='style1'>TransportAccount</span></td>
				<td align='left'><input type='text'  name='TransportAccount' id='TransportAccount' value='$TransportAccount' maxlength='10' style='width:200px;'></td>
		
			</tr>
			
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>ExportTransportToJV</span></td>
			<td><input type='radio' name='ExportTransportToJV' id='ExportTransportToJV' value='1'> yes
				<input type='radio' name='ExportTransportToJV' id='ExportTransportToJV' value='0'> no</td>
			
			</tr>
			
			
			<tr bgcolor='#F7F7F7'>	<td align='left'><span class='style1'>BonusAccount</span></td>
				<td align='left'><input type='text'  name='BonusAccount' id='BonusAccount' value='$BonusAccount' maxlength='10' style='width:200px;'></td>
		
				<td align='left'><span class='style1'>ExportBonusToJV</span></td>
				<td><input type='radio' name='ExportBonusToJV' id='ExportBonusToJV' value='1'> yes
					<input type='radio' name='ExportBonusToJV' id='ExportBonusToJV' value='0'> no</td>
			</tr>
			
			
			<tr bgcolor='#F7F7F7'><td align='left' valign='top'><span class='style1'>InvoiceComment</span></td>
				<td align='left'><textarea name='InvoiceComment' id='InvoiceComment' maxlength='500'  rows='4' style='width:200px;'>$InvoiceComment</textarea></td></tr>
	
				<td align='left' valign='top'><span class='style1'>WaybillComment</span></td>
				<td align='left'><textarea name='WaybillComment' id='WaybillComment' maxlength='500'  rows='4' style='width:200px;'>$	</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_MinPendingQty' id='Sale_MinPendingQty' value='$Sale_MinPendingQty'  style='width:200px;'></td>
		
				<td align='left'><span class='style1'>Sale_MaxExceedQty</span></td>
				<td align='left'><input  type='number' min='0' step='0.01' name='Sale_MaxExceedQty' id='Sale_MaxExceedQty' value='$Sale_MaxExceedQty'  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_MarginPer' id='Sale_MarginPer' value='$Sale_MarginPer'  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='SorderComment' id='SorderComment' maxlength='500'  rows='4' style='width:200px;'>$SorderComment</textarea></td></tr>
	
				<td align='left'><span class='style1'>PriceDecimalBase</span></td>
				<td align='left'><input type='number' min='0'  name='PriceDecimalBase' id='PriceDecimalBase' value='$PriceDecimalBase' maxlength='11' style='width:200px;'></td>
			
			</tr>
			
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'>ShowCostCentLayout</span></td>
			<td><input type='radio' name='ShowCostCentLayout2' id='ShowCostCentLayout2' value='1'> yes
				<input type='radio' name='ShowCostCentLayout2' id='ShowCostCentLayout2' value='0'> no</td>
			
			</tr>

			
			
			
			
			
			
				
			";
			
			echo"</table>";
				echo"</div>";      
				echo"</div>";      		
		
		 echo"	<div class='tabbertab'>
				<h2 title='transfersetup'>transfer setup</h2>";
				echo"		<div id='datagrid-d1' style='width:1088px; height:150px; 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'> 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='CreditAccount' id='CreditAccount' value='$CreditAccount' 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='CurrencyBase' id='CurrencyBase' value='$CurrencyBase' 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='DefaultCur' id='DefaultCur' value='$DefaultCur' maxlength='6' style='width:200px;'></td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> Synchronized </span></td>
				<td><input type='radio' name='Synchronized3' value='1'> yes
				<input type='radio' name='Synchronized3' value='0'> no</td>
				
				<td align='left'><span class='style1'>  Barcode </span></td>
				<td><input type='radio' name='Barcode3' value='1'> yes
					<input type='radio' name='Barcode3' value='0'> no</td>
			</tr>
			
			<tr bgcolor='#F7F7F7'><td align='left'><span class='style1'> ShowCostCentLayout </span></td>
				<td><input type='radio' name='ShowCostCentLayout3' value='1'> yes
				<input type='radio' name='ShowCostCentLayout3' value='0'> no</td>
			<td> 	</td>
			</tr>
			
			

			
			

			";
			
			echo"</table>";
				echo"</div>";      
				echo"</div>";      
				
				
		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></tr>";

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

HERE;

?>










































