var tableisactive = false
var acell2hasbeenselected = false
var tableactivecounter = 0
var thecell = 1
var thecell2 = 1
var acellhasbeenselected = false
var helpisactive = false
var helpactivecounter = 0
var count=0
var keyboardpaste=false
var toolbarpaste=false
var mousepaste=false
var symbolpasting=false

document.onkeydown = // assumes not handled at lower level
  function ()
    {
    if (event.ctrlKey && event.keyCode==86)
      {
	keyboardpaste=true
      }
    }

document.onmousedown = // assumes not handled at lower level
  function ()
    {

	mousepaste=true
      }


function action_paste(){
if (symbolpasting==false){
	toolbarpaste=true
	theclipboard=window.clipboardData.getData("Text");
  	document.execCommand("Paste", 0, theclipboard);
}
}

function thepasting()
    {
if (symbolpasting==false){

if(count>0){
    if (keyboardpaste==true){
		keyboardpaste=false
		count=0
		return;
	}
   else if (toolbarpaste==true){
		toolbarpaste=false
		count=0
		return;
	}
   else if (mousepaste==true){
		mousepaste=false
		count=0
		return;
	}
	else {
		event.returnValue=false; 
		count=0
		return;
	}
}
else
{
event.returnValue=false; 
    if (keyboardpaste==true)
      {
	count=count+1
	theclipboard=window.clipboardData.getData("Text");
  	document.execCommand("Paste", 0, theclipboard);
      }
    else if (toolbarpaste==true)
      {
	count=count+1
	theclipboard=window.clipboardData.getData("Text");
  	document.execCommand("Paste", 0, theclipboard);
      }
    else if (mousepaste==true)
      {
	count=count+1
	theclipboard=window.clipboardData.getData("Text");
  	document.execCommand("Paste", 0, theclipboard);
      }
    else
	{
	keyboardpaste=false
	return false;
	}
}
    }
}

function returnborder(){
alert("hi")
}

function validate(t) {
	if (t.Title.value == "")
  	{
	    alert("Please enter Title. Thank you.");
	 t.Title.focus();
    return (false);
  	}

	if (t.Content.value == "")
  	{
    alert("Please enter Content. Thank you.");
	 t.Content.focus();
    return (false);
  	}
	return (true);
  }


function TextColorSelect() {

var colorvalue = showModalDialog( "colorpalette.asp","","font-family:Arial; font-size:9; dialogWidth:226px; dialogHeight:340px; status: no; center: yes;" );
 editor.focus();
  if (colorvalue != null) {

  document.execCommand("ForeColor",0,colorvalue);

var thetable = document.getElementById("tdcell1")
    var fontArray = thetable.all.tags("FONT");
    for (i=0; i<fontArray.length; i++) {
      if (fontArray[i].color != "") {
      if (fontArray[i].className != "") {
        fontArray[i].color = "";
        fontArray[i].outerHTML = fontArray[i].outerHTML.replace(/style=[^<>]*/i, "");
        fontArray[i].Style = "color:"+colorvalue;
        fontArray[i].outerHTML = fontArray[i].outerHTML
      }
      }
}
var r = document.selection.createRange();
r.select();
  }
}

function FontSize_onchange(theclassname) {
var thebutton = document.getElementById("2000")
var thetable = document.getElementById("tdcell1")
// Copyright (c) 2002, interactivetools.com, inc.

    document.execCommand('RemoveFormat');
    document.execCommand('FontName',0,'636c6173734e616d6520706c616365686f6c646572');
    var fontArray = thetable.all.tags("FONT");
    for (i=0; i<fontArray.length; i++) {
      if (fontArray[i].face == '636c6173734e616d6520706c616365686f6c646572') {
        fontArray[i].face = "";
        fontArray[i].className = theclassname;
        fontArray[i].outerHTML = fontArray[i].outerHTML.replace(/face=['"]+/, "");
        }
    }
// end of copyright


if (document.getElementById("tdcell2")!=null){
thetable = document.getElementById("tdcell2")
// Copyright (c) 2002, interactivetools.com, inc.
    var fontArray2 = thetable.all.tags("FONT");
    for (i=0; i<fontArray2.length; i++) {
      if (fontArray2[i].face == '636c6173734e616d6520706c616365686f6c646572') {
        fontArray2[i].face = "";
        fontArray2[i].className = theclassname;
        fontArray2[i].outerHTML = fontArray2[i].outerHTML.replace(/face=['"]+/, "");
        }
    }

// end of copyright

}
}



function action_bold(){
document.execCommand("Bold");
editor.focus();
var r = document.selection.createRange();
r.select();
}

function action_italic(){
document.execCommand("Italic");
editor.focus();
var r = document.selection.createRange();
r.select();
}



function action_underline(){
document.execCommand("Underline");
editor.focus();
var r = document.selection.createRange();
r.select();
}



function action_superscript(){
document.execCommand("SuperScript");
editor.focus();
var r = document.selection.createRange();
r.select();
}



function action_subscript(){
document.execCommand("SubScript");
editor.focus();
var r = document.selection.createRange();
r.select();
}



function action_insertorderedlist(){
document.execCommand("InsertOrderedList");
editor.focus();
var r = document.selection.createRange();
r.select();
}


function action_insertunorderedlist(){
document.execCommand("InsertUnorderedList");
editor.focus();
var r = document.selection.createRange();
r.select();
}


function action_indent(){
document.execCommand("Indent");
editor.focus();
var r = document.selection.createRange();
r.select();
}



function action_outdent(){
document.execCommand("Outdent");
editor.focus();
var r = document.selection.createRange();
r.select();
}



function action_inserthorizontalrule(){
document.execCommand("InsertHorizontalRule");
editor.focus();
var r = document.selection.createRange();
r.select();
}


function action_insertmarquee(){
document.execCommand("InsertMarquee");
editor.focus();
var cursor = document.selection.createRange();
var element = cursor(0)
element.focus();
}


function InsertWebLink() {
  var WLink = showModalDialog( "../../admin/insert_web_link.htm","","font-family:Arial; font-size:9; dialogWidth:52em; dialogHeight:20em" );
  editor.focus();
  if (WLink != null) {
  	document.execCommand("Unlink")
	var sText = document.selection.createRange();
	document.execCommand("CreateLink",false,WLink)

		if (document.selection.type == "Control"){ 
			if (sText(0).tagName=="IMG"){
				var cursor = document.selection.createRange();
				var element = cursor(0).parentElement
				element.target="_blank";
				var cursor2 = document.selection.createRange();
				var element2 = cursor2(0)
				element2.focus();
			}			
		}
else
{
		if (!sText==""){
  			sText.parentElement().target="_blank";
			var r = document.selection.createRange();
			r.select();
  		}
}
  	}
}

function change_image(domainvalue){
var selectionRange;
selectionRange = document.selection.createRange()
if (document.selection.type == "Control"){ 
if (selectionRange(0).tagName=="IMG"){
originalwidth=selectionRange(0).width
originalheight=selectionRange(0).height
if (originalwidth>originalheight) {
imagetype="landscape"}
else{
imagetype="portrait"}
var theimageurl = selectionRange(0).src
domainlength = domainvalue.length
var thefilename=theimageurl.substring(domainlength);
var dimensions = showModalDialog( "../../admin/image_resize.asp","dialogWidth:226px; dialogHeight:320px; status: off; center: yes; dialogHide: yes;" );

if (dimensions=="cancelled"){
return;
}
if (dimensions==null){
return;
}
if (dimensions=="borderon"){
selectionRange(0).className="imageprops"
return;
}

sPosRotate = dimensions.indexOf('$1');
sPosOpacity = dimensions.indexOf('$2');
sPosMirror = dimensions.indexOf('$3');
sPosInvert = dimensions.indexOf('$4');
sPosXray = dimensions.indexOf('$5');
sPosGreyscale = dimensions.indexOf('$6');

if (sPosRotate>0){
var therotatevalue=dimensions.substring(sPosRotate+2,sPosOpacity);
var theopacityvalue=dimensions.substring(sPosOpacity+2,sPosMirror);
var themirrorvalue=dimensions.substring(sPosMirror+2,sPosInvert);
var theinvertvalue=dimensions.substring(sPosInvert+2,sPosXray);
var thexrayvalue=dimensions.substring(sPosXray+2,sPosGreyscale);
var thegreyscalevalue=dimensions.substring(sPosGreyscale+2,dimensions.length);
selectionRange(0).style.filter="progid:DXImageTransform.Microsoft.BasicImage (Rotation="+therotatevalue+",Opacity="+theopacityvalue+",Mirror="+themirrorvalue+",Invert="+theinvertvalue+",XRay="+thexrayvalue+",Grayscale="+thegreyscalevalue+")"
return;
}

sPos1 = dimensions.indexOf('^');
var thedimension1=dimensions.substring( 0,sPos1-0);
var thealttag=dimensions.substring(sPos1+1,dimensions.length);

if (thedimension1=="alt"){
selectionRange(0).alt=thealttag
return;
}

sPos = dimensions.indexOf('-');
var thedimension=dimensions.substring( 0,sPos-0);
var widthorheightvalue=dimensions.substring(sPos+1,dimensions.length);

if (widthorheightvalue=="newwidth"){
var resizeprocess = showModalDialog( "../../admin/resize6.aspx?src="+thefilename+"&src2="+thefilename+"&dimension="+thedimension+"&theresizetype=width","font-family:Arial; font-size:9; dialogWidth:226px; dialogHeight:320px; status: no; center: yes;" );
}
else{
var resizeprocess = showModalDialog( "../../admin/resize6.aspx?src="+thefilename+"&src2="+thefilename+"&dimension="+thedimension+"&theresizetype=height","font-family:Arial; font-size:9; dialogWidth:226px; dialogHeight:320px; status: no; center: yes;" );
}

selectionRange(0).src="fff.jpg"
var colorvalue = showModalDialog( "../../admin/resizedimage.asp?src="+theimageurl,"font-family:Arial; font-size:9; dialogWidth:226px; dialogHeight:320px; status: no; center: yes;" );
selectionRange(0).src=theimageurl
}
}
}


// Mouse-Over handler : 
useover = false;
if ((navigator.userAgent.substring(0,9) == "Mozilla/3") || (navigator.userAgent.substring(0,9) == "Mozilla/4"))  useover = true;
else useover = false;
// -->


// pop-up handler
function display(argURL) {
    displayWindow = window.open(argURL,'Display','scrollbars,resizable,toolbar,location,status,width=750,height=300');
}

function imageinsert_onchange(imageurl) {
if (tableisactive==true){
	if (thecell=="1"){
		alert("In order to set a background image you must first click on a template cell")
		return;
	}
	thecell.setAttribute("background",imageurl);
}
else{
	if (acellhasbeenselected==true){
		editor.unselectable = "off"
		 editor.focus();
  		document.execCommand("InsertImage",0, imageurl);
 		editor.focus();
		editor.unselectable = "on"

var r = document.selection.createRange();
r.select();
}

else if (acell2hasbeenselected==true){
	editor.unselectable = "off"
 	editor.focus();
  	document.execCommand("InsertImage",0, imageurl);
	editor.focus();
	editor.unselectable = "on"
	var r = document.selection.createRange();
	r.select();
}
else
{
alert("You must select a section of the template before you can add an image")
}
}
}


function preview_image(imageurl2){
document.system.img_preview.src=imageurl2;
}

function search_and_replace() {
var searchreplacevalue = showModalDialog( "search_replace.asp","","font-family:Arial; font-size:9; dialogWidth:52em; dialogHeight:25em" );
if (searchreplacevalue == null) {
 	return false;
}
sPos = searchreplacevalue.indexOf('-');
var thesearchvalue=searchreplacevalue.substring( 0,sPos-0);
var thereplacevalue=searchreplacevalue.substring(sPos+1,searchreplacevalue.length);
wordreplace(editor, thesearchvalue, thereplacevalue)
}

function wordreplace(aSourceObject, aWords, aReplace){
//Extract HTML Tags
regexp=/<[^<>]*>/ig;
vHTMLArray = aSourceObject.innerHTML.match(regexp);
//Replace HTML tags
vStrippedHTML = aSourceObject.innerHTML.replace(regexp,"$!$");
//alert(vStrippedHTML);
//Replace search words
regexp= new RegExp ("(" + aWords + ")", "gi");
vTemp = vStrippedHTML.replace(regexp,aReplace);
//Reinsert HTML
for(i=0;vTemp.indexOf("$!$") > -1;i++){
vTemp = vTemp.replace("$!$", vHTMLArray[i]);
}
//Diaply Result
aSourceObject.innerHTML = vTemp;
//alert(vTemp);
}

function BackgroundColorSelect2() {
if (tableisactive==true){
  var backgroundcolorvalue = showModalDialog( "bkcolorpalette.asp","","font-family:Arial; font-size:9; dialogWidth:226px; dialogHeight:340px" );
  	if (backgroundcolorvalue == null) {
 	return false;
}
sPos = backgroundcolorvalue.indexOf('-');
var thecolourvalue=backgroundcolorvalue.substring( 0,sPos-0);
var thefiltervalue=backgroundcolorvalue.substring(sPos+1,backgroundcolorvalue.length);
thecell.setAttribute("bgColor",thecolourvalue);
thecell.style.filter=thefiltervalue
}
else
{
alert("To use this feature you must activate the Special Features button")
}
}


function BackgroundColorSelect() {
var thetable = document.getElementById("tdcell1")
var backgroundcolorvalue = showModalDialog( "bkcolorpalette.asp","","font-family:Arial; font-size:9; dialogWidth:226px; dialogHeight:340px" );
  if (backgroundcolorvalue == null) {
	 return false;
  }
sPos = backgroundcolorvalue.indexOf('-');
var thecolourvalue=backgroundcolorvalue.substring( 0,sPos-0);
var thefiltervalue=backgroundcolorvalue.substring(sPos+1,backgroundcolorvalue.length);
thetable.setAttribute("bgColor",thecolourvalue);
thetable.style.filter=thefiltervalue
thetable = document.getElementById("tdcell2")
  if (thetable == null) {
	return false;
  }

thetable.setAttribute("bgColor",thecolourvalue);
thetable.style.filter=thefiltervalue
}


function settableactive(){
if (tableactivecounter==1){
setactive.style.backgroundImage='url(../../admin/page_editor_images/but_tab_enable.gif)';
tableisactive = false
tableactivecounter = 0
alert("Special features are now turned off")
}
else
{
setactive.style.backgroundImage='url(../../admin/page_editor_images/but_tab_disable.gif)';
tableisactive = true
tableactivecounter = 1
alert("Special features are now turned on - you can now select a template cell to change the background colour, apply a background image or control vertical alignment")
}
}


// Table properties - border, cellpadding, cellspacing
function TablePropertySelect() {
var thetable = document.getElementById("tdcell1")
	var currentcellpadding = thetable.getAttribute("cellPadding")
	var currentcellspacing = thetable.getAttribute("cellSpacing")
	var currentborder = thetable.getAttribute("border")
	var tableproperties = showModalDialog( "../../admin/table_properties.asp?currcellpadding="+currentcellpadding+"&currcellspacing="+currentcellspacing+"&currborder="+currentborder,"","font-family:Arial; font-size:9; dialogWidth:50em; dialogHeight:25em" );
  if (tableproperties == null) {
 return false;
  }
sPos = tableproperties.indexOf('-');
sPos2 = tableproperties.indexOf('^');
var thecellpadding=tableproperties.substring( 0,sPos-0);
var thecellspacing=tableproperties.substring(sPos+1,tableproperties.length);
var thetableborder=tableproperties.substring(sPos2+1,tableproperties.length);

thetable.setAttribute("cellPadding",thecellpadding);
thetable.setAttribute("cellSpacing",thecellspacing);
thetable.setAttribute("border",thetableborder);
thetable = document.getElementById("tdcell2")

  if (thetable == null) {
 return false;
  }

thetable.setAttribute("cellPadding",thecellpadding);
thetable.setAttribute("cellSpacing",thecellspacing);
thetable.setAttribute("border",thetableborder);

}

function InsertSymbol() {
if (acell2hasbeenselected==true){
var thetable = document.getElementById("tdcell2")
acell2hasbeenselected==false
}

else{
var thetable = document.getElementById("tdcell1")
acellhasbeenselected==false
}
  var thesymbol = showModalDialog( "../../admin/insert_symbol.htm","","font-family:Arial; font-size:9; dialogWidth:52em; dialogHeight:38em" );
  if (thesymbol==null) {
 return false;
  }
else
{
  symbolpasting=true
  editor.focus();
  document.execCommand("Paste", 0, thesymbol);
  symbolpasting=false
}
}


function fnChangeStyle() {
   if (event.srcElement.className == "swatch") {
var thecolour=event.srcElement.style.background;
var thefilter=event.srcElement.style.filter;
if (acell2hasbeenselected==true){
var thetable = document.getElementById("tdcell2")
acell2hasbeenselected==false
}
else{
var thetable = document.getElementById("tdcell1")
acellhasbeenselected==false
}
thetable.setAttribute("bgColor",thecolour);
thetable.style.filter=thefilter
}
}




function TextBackgroundColorSelect() {
if (acell2hasbeenselected==true){
var thetable = document.getElementById("tdcell2")
acell2hasbeenselected==false
}
else{
var thetable = document.getElementById("tdcell1")
acellhasbeenselected==false
}
thetable.setAttribute("bgColor","#000000");
}


function FileLinkSelect() {
  var pnlink = showModalDialog( "files_list.asp","","font-family:Arial; font-size:9; dialogWidth:50em; dialogHeight:36em" );
  editor.focus();
  if (pnlink != null) {
  	document.execCommand("Unlink")
	var sText = document.selection.createRange();
	document.execCommand("CreateLink",false,pnlink)

if (document.selection.type == "Control"){ 
if (sText(0).tagName=="IMG"){
var cursor = document.selection.createRange();
var element = cursor(0).parentElement
element.target="_blank";
var cursor2 = document.selection.createRange();
var element2 = cursor2(0)
element2.focus();
}}
else
{
		if (!sText==""){
  			sText.parentElement().target="_blank";
			var r = document.selection.createRange();
			r.select();
  		}
}
  }
}


function WebpageLinkSelect() {
  var pnlink = showModalDialog( "webpages_list.asp","","font-family:Arial; font-size:9; dialogWidth:50em; dialogHeight:36em" );
  editor.focus();
  if (pnlink != null) {
  	document.execCommand("Unlink")
	pnlink = pnlink.replace(/ /g, '_'); 
	document.execCommand("CreateLink",false,pnlink)
	var r = document.selection.createRange();
	r.select();
  }
}


function InsertEmailLink() {
  var ELink = showModalDialog( "../../admin/insert_email_link.htm","","font-family:Arial; font-size:9; dialogWidth:52em; dialogHeight:23em" );
  editor.focus();
  if (ELink != null) {
ELinkFull = "mailto:"
ELinkFull = ELinkFull + ELink
 document.execCommand("Unlink")
 document.execCommand("CreateLink",false,ELinkFull)
var r = document.selection.createRange();
r.select();
  }
}


function editCell2 (cell) {
thecell2 = cell
acell2hasbeenselected = true
acellhasbeenselected = false
if (tableisactive==true){
	thecell = cell
}
}

function editCell (cell) {
thecell2 = cell
acell2hasbeenselected = false
acellhasbeenselected = true
if (tableisactive==true){
	thecell = cell
}


}
function verticalaligncenter() {
if (tableisactive==true){
thecell.vAlign="center"
}
else
{
alert("To use this feature you must activate the Special Features button")
}
}

function verticalaligntop() {
if (tableisactive==true){
thecell.vAlign="top"
}
else
{
alert("To use this feature you must activate the Special Features button")
}
}

function verticalalignbottom() {
if (tableisactive==true){
thecell.vAlign="bottom"
}
else
{
alert("To use this feature you must activate the Special Features button")
}
}

function checktitle(){
titlevalue=document.system.Title.value.length
titlevalue2=document.system.Title.value
symbolsused = ' " '
symbolsused = symbolsused + "' + = < > ( ) # ~ * ^ ` { } [ ] : ; ? ! %"

if (titlevalue2.indexOf('"') != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}

else if (titlevalue2.indexOf("'") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}

else if (titlevalue2.indexOf("+") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}

else if (titlevalue2.indexOf("=") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}

else if (titlevalue2.indexOf("<") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}

else if (titlevalue2.indexOf(">") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}

else if (titlevalue2.indexOf("(") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}

else if (titlevalue2.indexOf(")") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}

else if (titlevalue2.indexOf("#") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}

else if (titlevalue2.indexOf("~") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}

else if (titlevalue2.indexOf("*") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}

else if (titlevalue2.indexOf("^") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}

else if (titlevalue2.indexOf("`") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;

}

else if (titlevalue2.indexOf("{") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}

else if (titlevalue2.indexOf("}") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}

else if (titlevalue2.indexOf("[") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}

else if (titlevalue2.indexOf("]") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}

else if (titlevalue2.indexOf(":") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}

else if (titlevalue2.indexOf(";") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}

else if (titlevalue2.indexOf("?") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}

else if (titlevalue2.indexOf("!") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}

else if (titlevalue2.indexOf("%") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}
else if (titlevalue2.indexOf("/") != -1){
	document.system.Content.value=""
	document.system.Title.focus();
	alert("Problem : Invalid character entered - The title must not contain any of the following symbols:"+symbolsused)
	return false;
}

else{
document.system.Content.value=editor.innerHTML;
showObject(splashScreen);
}
}

function fnInit(){
    document.execCommand("2D-Position", true, true);
    document.execCommand("LiveResize", true, true);
}
