} catch (e) { reportUserScriptError(e, "checkout event script"); } finally { // ?fid=checkout&status={ok|cancel|fail|waiteft}&reason={statusMessage}&orderNumber={N} $(".orderstatus").val(window.decodeURIComponent(parm["reason"] || "")); $(".ordernumber").val(window.decodeURIComponent(parm["ordernumber"] || "")); $("#msg_checkout > div." + parm["status"]).show(); $(".container h2").remove(); //don't need the Thank You header } } else if (fid === "newsletter") { try { //custom newsletter event script } catch (e) { reportUserScriptError(e, "newsletter event script"); } finally { ThankYou.event = "newsletter"; } } if (fid !== "newsletter" && fid !== "checkout") { try { } catch (e) { reportUserScriptError(e, "generic form submitted event script"); } finally { if (typeof window["js" + fid] === "function") { eval("js" + fid + "()"); } ThankYou.event = "form"; ThankYou.formId = fid; } } } } else { document.getElementById("msg_default").style.display = "block"; }