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=""
}




/*
var message="© Blackpool Football Club";

function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false");


function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
*/