/* if (!"console" in window) { window.console = { log: function () {} } } */ HPPlatformWidget = new function() { var healthpost_href = window.location.href; var healthpost_base_url = "http://chronhealth.healthpost.com/embed/"; var healthpost_css_url = "http://chronhealth.healthpost.com/embed/search_form_style250.css"; var healthpost_container_id = "healthpost_search_form"; function request_stylesheet(stylesheet_url) { stylesheet = document.createElement("link"); stylesheet.rel = "stylesheet"; stylesheet.type = "text/css"; stylesheet.href = stylesheet_url; stylesheet.media = "all"; try { document.lastChild.firstChild.appendChild(stylesheet); } catch (err) { try { document.getElementsByTagName("head")[0].appendChild(stylesheet); } catch (err) { //alert(err); } } } request_stylesheet(healthpost_css_url); var healthpost_container_div = document.getElementById(healthpost_container_id); var healthpost_stub = document.createElement("div"); healthpost_stub.id = "healthpost-content-stub"; healthpost_stub.innerHTML = "