function sendIllinoisPay(inUser,inLibrary,inBillNumber,inAmtOwed,inTotalOwed,inName,inUrl,inSiteid,inPayable,inPaymentType,cfgCurrency)
{
        var pieces;
        var floatAmount = 0.0;

        currencyStr = cfgCurrency;

        if (currencyStr == "$")
          {
          currencyStr = "\\" + currencyStr;
          }

        re = new RegExp(currencyStr,"g");

        pieces = inAmtOwed.split(",");
        for (i = 0; i < pieces.length; i++)
          {
          pieces[i] = pieces[i].replace(re,"");
          floatAmount = floatAmount + parseFloat(pieces[i]);
          }

        floatAmount = Math.round(floatAmount*100)/100;

        var strAmount = new String(floatAmount);

        aWindow = window.open('','','toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=750,height=250');

        if (aWindow.document.body == null)
          {
          aBody = aWindow.document.createElement('body');
          aWindow.document.appendChild(aBody);
          }

        nFORM=aWindow.document.createElement('form');
        nFORM.action=inUrl;
        nFORM.target="_self";
        nFORM.method="post";
        nFORM.name="EPay";

        nSiteId=aWindow.document.createElement('input');
        nSiteId.name='siteId';
        nSiteId.value=inSiteid;
        nSiteId.type='hidden';

        nFORM.appendChild(nSiteId);

        nPayable=aWindow.document.createElement('input');
        nPayable.name='payable';
        nPayable.value=inPayable;
        nPayable.type='hidden';

        nFORM.appendChild(nPayable);

        nUDF0=aWindow.document.createElement('input');
        nUDF0.name='UDF0_value';
        nUDF0.value=inUser;
        nUDF0.type='hidden';

        nFORM.appendChild(nUDF0);

        nUDF1=aWindow.document.createElement('input');
        nUDF1.name='UDF1_value';
        nUDF1.value=inName;
        nUDF1.type='hidden';

        nFORM.appendChild(nUDF1);

        nUDF2=aWindow.document.createElement('input');
        nUDF2.name='UDF2_value';
        nUDF2.value=inLibrary;
        nUDF2.type='hidden';

        nFORM.appendChild(nUDF2);

        nUDF3=aWindow.document.createElement('input');
        nUDF3.name='UDF3_value';
        nUDF3.value=inBillNumber;
        nUDF3.type='hidden';

        nFORM.appendChild(nUDF3);

        nUDF4=aWindow.document.createElement('input');
        nUDF4.name='UDF4_value';
        nUDF4.value=inAmtOwed;
        nUDF4.type='hidden';

        nFORM.appendChild(nUDF4);

        nUDF5=aWindow.document.createElement('input');
        nUDF5.name='UDF5_value';
        nUDF5.value=inTotalOwed;
        nUDF5.type='hidden';

        nFORM.appendChild(nUDF5);

        nUDF6=aWindow.document.createElement('input');
        nUDF6.name='UDF6_value';
        nUDF6.value=inPaymentType;
        nUDF6.type='hidden';

        nFORM.appendChild(nUDF6);

        nAcctNo=aWindow.document.createElement('input');
        nAcctNo.name='acctNo';
        nAcctNo.value=inUser;
        nAcctNo.type='hidden';

        nFORM.appendChild(nAcctNo);

        nTransAmt=aWindow.document.createElement('input');
        nTransAmt.name='transactionAmount';
        nTransAmt.value=strAmount;
        nTransAmt.type='hidden';

        nFORM.appendChild(nTransAmt);

        aWindow.document.body.appendChild(nFORM);

        nFORM.submit();

        aWindow.document.body.removeChild(nFORM);
}


