function createElement(element) { if (typeof document.createElementNS != 'undefined') { return document.createElementNS('http://www.w3.org/1999/xhtml', element); } if (typeof document.createElement != 'undefined') { return document.createElement(element); } return false; } document.write = function(str){ var moz = !window.opera && !/Apple/.test(navigator.vendor); if ( str.match(/^<\//) ) return; if ( !window.opera ) str = str.replace(/&(?![#a-z0-9]+;)/g, "&"); str = str.replace(/<([a-z]+)(.*[^\/])>$/, "<$1$2>"); if ( !moz ) str = str.replace(/(<[a-z]+)/g, "$1 xmlns='http://www.w3.org/1999/xhtml'"); var div = document.createElement("div"); div.innerHTML = str; var pos; if ( !moz ) { pos = document.getElementsByTagName("*"); pos = pos[pos.length - 1]; } else { pos = document; while ( pos.lastChild && pos.lastChild.nodeType == 1 ) pos = pos.lastChild; } var nodes = div.childNodes; while ( nodes.length ) pos.parentNode.appendChild( nodes[0] ); }; RespondToWidget = new function() { generateIFrame = function() { document.write(""); } generateIFrame(); }