//var sEditorFame = 'RadEContentIframeeditor_body';
var sEditorFame = 'RadEContentIframeRadEditor1';
var sEditorsToLoad = '|';

function setEditor(sName, sValue, iVersion) {
	switch (iVersion) {
	case 3:
		frames[sName + '_frame'].frames[sEditorFame].document.body.innerHTML = sValue;
		break
	default:
		frames[sName + '_frame'].frames[sEditorFame].document.body.innerHTML = unescape(sValue);
		break
	}
}
function getEditor(sName) {
	return frames[sName + '_frame'].frames[sEditorFame ].document.body.innerHTML;
}
function breakUp(oTextarea) {
	//Set the limit for field size.
	var iFormLimit = 102399;
	var iCount = 1;
	
	var sValue = new String;
	sValue = oTextarea.value;
	
	if (sValue.length > iFormLimit) {
		oTextarea.value = sValue.substr(0, iFormLimit)
		sValue = sValue.substr(iFormLimit)
	
		while (sValue.length > 0) {
			var oNewTextarea = document.createElement("TEXTAREA");
			oNewTextarea.name = oTextarea.name;
			oNewTextarea.value = sValue.substr(0, iFormLimit);
			oTextarea.form.appendChild(oNewTextarea);
			iCount += 1;
			
			sValue = sValue.substr(iFormLimit)
		}
	}
	//alert(iCount);
}


