function ContactDealerDo(link_id, extra_params) { var d = "https://www.furniturefinders.com/dboffice/index.php?page=send_info&id="+link_id; d += '&_ts=' + new Date().valueOf(); d += '&ajax=1&js=1'; if (extra_params) { d += '&' + extra_params } $.get(d, function(data) { var div = document.createElement("div"); div.innerHTML = data; document.body.appendChild(div); var script = div.querySelector('script'); eval(script.innerText); }, 'text'); } function ContactDealer(link_id,extra_params){ var w = 600; var h = 580; var w_s = (window.screen.width - w) >> 1; var h_s = (window.screen.height - h) >> 1; var extra = ', location=no, menubar=no, status=no,toolbar=no, scrollbars=yes, resizable=yes'; var url = 'https://www.furniturefinders.com/dboffice/modules.php?mod=Guests&pg=reg'; var fun = window.themeAjaxPopup ? window.themeAjaxPopup : window.popUp; //fun('https://www.furniturefinders.com/dboffice/modules.php?mod=Guests&pg=reg', 'register', w_s, h_s, w, h, extra); var width = document.body.clientWidth; if (width <= 1) { url += '&ref_url=' + encodeURIComponent(location.href); location.href = url; } else { App.RegisterForm.open(); }}