]*>([\s\S]*?)<\/script>/gi, function(){
scripts += arguments[1] + '\n';
return '';
});
var head = document.getElementsByTagName("head")[0] ||
document.documentElement,
script = document.createElement("script");
script.type = "text/javascript";
try {
// doesn't work on ie...
script.appendChild(document.createTextNode(scripts));
} catch(e) {
// IE has funky script nodes
script.text = scripts;
}
head.appendChild(script);
head.removeChild(script);
return cleaned;
};
// var from = document.getElementById('toinsert');
//alert(from.innerHTML);
var to;
if(window.top)
{
//alert('window.top - OK');
if(window.top.document)
{
//alert('window.top.document - OK');
to = window.top.document.getElementById('d1161877480');
//alert(to);
if(to)
{
//alert('element - OK');
to.innerHTML = stripAndExecuteScript(decode(''));
}
}
}