var ewdtext='' ; if (ewdtext != '') { if (ewdtext.substring(0,11) == 'javascript:') { ewdtext=ewdtext.substring(11) ; eval(ewdtext) ; } else { EWD.ajax.alert(ewdtext) } } else {document.body.onunload = null; if ('605') {startLogExit("ERROR");} if (templateID == '1') { hideTemplateModals(); try { /* try jquery ajax load and then show modal in callback function */ $("#ewd_homeModal").load("T1_QO4ErrorMainPage.php", function() { $("#EWDErrorModal").modal({backdrop: "static", keyboard: false, show: true}); }); } catch (error) { console.log(error.message); window.location = "T1_QO4ErrorMainPage.php"; } } else { QOshowLightboxLoadController(300, 205, 'T0_QO4ErrorMainPage.php'); } } ­