base_cfgs["b_947"]={
settings: [
{type:'textarea',title:'Enter your HTML below',rows:'10',cols:'50',name:'html_text',expand:1,description:' '}
],
onpageload:{
	suppress_js:1
},
resize:'all',
height:1,
width:1
}
box_functions['b_947']=function(box,var_store,when) {
var html_container=box.node;

var dynamic_content_regex=new RegExp("<SCRIPT|<OBJECT", "i");
function loadPreview(str, container) {    var iframe_node = document.createElement('iframe');    iframe_node.height='100%';    iframe_node.width='100%';
    iframe_node.setAttribute("scroll", "no");
    iframe_node.style.overflow='hidden';
    iframe_node.setAttribute("scrolling",'no');
    iframe_node.frameBorder = 0;
    iframe_node.allowTransparency = 'true';
    iframe_node.style.background = 'transparent';
    iframe_node.style.border='0px';    iframe_node.src="about:blank";

    html_container.appendChild(iframe_node);

    iframe_node.contentWindow.document.write('<html><body style="background:transparent;"><div style="display:none"><form METHOD="POST" ACTION="/my/services?service=preview_html"><input name="html"></form></div></body></html>');
    iframe_node.contentWindow.document.close();

    var form=iframe_node.contentWindow.document.forms[0];
    form.html.value=str;
    form.submit();}

if (box.db['html_text']) {
	html_container.innerHTML='';

	if (box.db['html_text'].match(dynamic_content_regex)) {
		if (dojo.isIE) {
			loadPreview(box.db['html_text'],html_container);
		} else {
			var new_node=document.createElement('DIV');
			new_node.innerHTML=box.db['html_text'];
			html_container.appendChild(new_node);	
		}
	} else {
		box.node.innerHTML=box.db['html_text'];
	}
  box.html=box.db['html_text'];
}

};
rox.loadBox('b_947')