Hi All,

I have a javascript that uses the following:

<script type="text/javascript">
var crcodes = {
Rcvbls: "1138",
Rfds: "1138",
Ntx: "4104",
Txlb: "4104",
Txmtls: "4104",
SC: "4105",
BD: "1138"

My script works now, but I want to set the right side of the variable (ie 1138) to be a variable that I retrieve from MySql and set up as a PHP variable.

That is, something like this: Rcvbls: "<?PHP $cash_cr ?>"

But no combination of anything I try works. The real problem here is that I know almost nothing about Javascript, so please, any help you can provide would be appreciated.