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=d301e030-d1d9-49cd-a429-b15725b032ae&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("d301e030-d1d9-49cd-a429-b15725b032ae")>=0 && !scrTag.getAttribute("attached")){ scrTag.parentNode.appendChild(ifrm); scrTag.setAttribute("attached", "true"); } };