function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } } var locHref = window.location.href; var pageTitle = window.document.title; var ifrm = document.createElement("IFRAME");; ifrm.src="http://www.xurtle.com/xurtlesurveyobject/XurtleSurveyObject.html?surveyGuid=0110fe89-d3c7-44d4-a61a-f25a391401e0&hostPageLocationHREF="+locHref+"&hostPageTitle="+pageTitle; ifrm.style.width=200+"px"; ifrm.style.height=300+"px"; ifrm.setAttribute("ALLOWTRANSPARENCY", "true"); ifrm.setAttribute("frameborder", "0"); ifrm.setAttribute("scrolling", "no"); ifrm.marginWidth=0; ifrm.marginHeight=0; var scriptTags = document.getElementsByTagName("script"); for(var i = 0; i < scriptTags.length; i++){ var scrTag = scriptTags[i]; /*alert(scrTag.getAttribute("attached"));*/ if(scrTag.src.indexOf("0110fe89-d3c7-44d4-a61a-f25a391401e0")>=0 && !scrTag.getAttribute("attached")){ scrTag.parentNode.appendChild(ifrm); scrTag.setAttribute("attached", "true"); } };