function LaunchPaymentWindow(CustomFormName) {
  if (CustomFormName) {
    var CustomFormName1 = CustomFormName;
  } else {
    var CustomFormName1 = "PaymentForm";
  }
  if (document.forms[CustomFormName1]) {
    PaymentWindow = window.open('https://secure.xilo.com/veripay/loader.htm','PaymentWindow','status,width=500,height=480,scrollbars,resizable');
    document.forms[CustomFormName1].action = "https://secure.xilo.com/veripay/veripay0.xilo";
    document.forms[CustomFormName1].target = "PaymentWindow";
    document.forms[CustomFormName1].submit();
  } else {
    alert("ERROR:\nThere is no form named \"" + CustomFormName1 + "\" on this page.");
  }
}
