// //Add an onload event onto the window function onloadAdd(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { oldonload(); func(); } } } function validate() { var objSearch = document.getElementById("txtSearch"); if (objSearch) { var searchTerm = objSearch.value; if (objSearch.defaultValue != searchTerm && searchTerm != "") { var url = document.getElementById("searchUrlBase").value; url += '?source=' + document.getElementById("utdSource").value; url += '&utm_campaign=' + document.getElementById("_CAMPAIGN").value; url += '&utm_medium=' + document.getElementById("_MEDIUM").value; url += '&utm_source=' + document.getElementById("_SOURCE").value; url += '&referer=' + document.getElementById("_REFERER").value; if (document.getElementById("widgetClientId")) { url += '&widgetClientId=' + document.getElementById("widgetClientId").value; } url += '&search=' + encodeURIComponent(searchTerm); window.open(url, '_blank'); } } } function clearText(field){ if (field.defaultValue == field.value) field.value = ''; else if (field.value == '') field.value = field.defaultValue; } // Make sure our search text box acts as if the Go button was pressed, and does not // submit the form it is on, if any. function handleEnter(e) { var key = (window.event) ? window.event.keyCode : e.which; if (key == 13) { validate(); return false; } else { return true; } } function showDiv() { // intentionally do nothing. This supported legacy widget TOC show/hide, and can be removed // when we no longer support the legacy widget. } function beginHideDiv() { // intentionally do nothing. This supported legacy widget TOC show/hide, and can be removed // when we no longer support the legacy widget. } function hideDiv() { // intentionally do nothing. This supported legacy widget TOC show/hide, and can be removed // when we no longer support the legacy widget. } function pageLoad() { var jsonObj = {"widgetCode":"\r\n\r\n\r\n
\r\n
FOR PATIENTS<\/b><\/div>\r\n<\/div>\r\n

Answer your medical questions with UpToDate<\/a>, the source doctors trust<\/b><\/p>\r\n \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n
<\/td>\r\n <\/td>\r\n \r\n \r\n View health topics
by category\r\n <\/a>\r\n <\/td>\r\n<\/tr><\/table>"}; try { if (jsonObj.widgetCode) { var objContainer = document.getElementById("uptodatesearchcontainer"); if (objContainer) { objContainer.innerHTML = jsonObj.widgetCode; } } } catch (e) { //ignore } // set referer var objReferer = document.getElementById("_REFERER"); if (objReferer) { objReferer.value = window.location.href; } } onloadAdd(pageLoad);