function readyDiv() {
var xcontent;
xcontent = document.all.tags('div')['gwyscontent'].innerText;
document.all.tags('div')['gwyscontent'].innerHTML = xcontent;
}
function setProp(cmd,opt) {
gwyscontent.document.execCommand(cmd,"",opt);
document.body.all.tags('div')['gwyscontent'].focus();
}
function insertImage() {
var sImgSrc = prompt("Image: ", "http://www.[domain].[ext]/[folder]/[file]");
if(sImgSrc!=null)
setProp("InsertImage",sImgSrc);
}

function sethiddentext(objForm) {
document.form.xSegContent.value = document.all.tags('div')['gwyscontent'].innerHTML;
}

function SetBG(MyImage, MySource) {
	MyImage.style.backgroundColor='#'+MySource.value;
}

function clearme(FormField) {
	if (FormField.defaultValue==FormField.value) FormField.value=""
}
