// ***********************************************************************************************************************************
// Set up general variables so we know what browser and version, and the computer type the user is using
// as well as general use Object functions
// Version 1.3.0

var pageloaded = 0, onloadlist = "";
var InNetscape, InNS4 = 0, InNS6 = 0;
var InIE, InOldIE = 0;
var InOpera, DOMCompatible;
var BrowserVersion;
var BrowserVerMajor = parseInt(navigator.appVersion), BrowserVerMinor = parseFloat(navigator.appVersion);
var useragent = navigator.userAgent.toLowerCase();

InNetscape = ((useragent.indexOf('mozilla') != -1) && (useragent.indexOf('spoofer') == -1) && (useragent.indexOf('compatible') == -1) &&
	(useragent.indexOf('opera') == -1) && (useragent.indexOf('webtv') == -1)) ? 1 : 0;
InOpera = useragent.match(/Opera/g) ? 1 : 0;
InIE = document.all ? 1 : 0;
DOMCompatible = document.getElementById ? 1 : 0;
if (InNetscape) {
	BrowserVersion = BrowserVerMajor;
	InNS4 = document.layers ? 1 : 0;
	InNS6 = (BrowserVerMajor>=5);
	if (InNS6) {
		if (useragent.indexOf('netscape/7') != -1)
			BrowserVersion = 7
		else
			BrowserVersion = 6;
	}
} else if (InIE) {
	if (BrowserVerMajor < 4) {
		BrowserVersion = BrowserVerMajor;
		InIE = 0;
		InOldIE = 1;
	} else if (BrowserVerMajor==4) {
		if (useragent.indexOf('msie 6.0') != -1)
			BrowserVersion = 6;
		else if (useragent.indexOf('msie 5.0') != -1)
			BrowserVersion = 5;
		else if (DOMCompatible)
			BrowserVersion = 6;
		else
			BrowserVersion = 4;
	}
} else {
	BrowserVersion = BrowserVerMajor;
}

var InMacOS, InUnix, InWindows;
var useros = navigator.platform.toLowerCase();
InMacOS = (useros.indexOf("mac") != -1) ? 1 : 0;
InWindows = (useros.indexOf("win") != -1) ? 1 : 0;
InUnix = ((useros.indexOf("unix") != -1) || (useros.indexOf("solaris") != -1) || (useros.indexOf("linux") != -1) || (useros.indexOf("sun") != -1) ||
	(useros.indexOf("hp") != -1) || (useros.indexOf("bsd") != -1)) ? 1 : 0;

// DisplayBrowserAndOSData();

function DisplayBrowserAndOSData() {
	alert('useragent = ' + useragent + '\n' +
		'InNetscape = ' + InNetscape + '\n' +
		'InNS4 = ' + InNS4 + '\n' +
		'InNS6 = ' + InNS6 + '\n' +
		'InIE = ' + InIE + '\n' +
		'InOldIE = ' + InOldIE + '\n' +
		'InOpera = ' + InOpera + '\n' +
		'DOMCompatible = ' + DOMCompatible + '\n' +
		'BrowserVersion = ' + BrowserVersion + '\n' +
		'BrowserVerMajor = ' + BrowserVerMajor + '\n' +
		'BrowserVerMinor = ' + BrowserVerMinor + '\n' +
		'\nuseros = ' + useros + '\n' +
		'InMacOS = ' + InMacOS + '\n' +
		'InWindows = ' + InWindows + '\n' +
		'InUnix = ' + InUnix + '\n');
}

// ***********************************************************************************************************************************
// Functions

var C_NUM = 0;
var C_DBL = 1;
var C_STRING = 2;
function nullwrap(somevar, newtype) {
	switch (newtype) {
	case C_NUM:
		if (typeof(somevar)=='number')
			return Math.floor(somevar);
		if (typeof(somevar)=='string') {
			return isNaN(somevar) ? 0 : parseInt(somevar);
		}
		return 0;
	case C_DBL:
		if (typeof(somevar)=='number')
			return somevar;
		if (typeof(somevar)=='string')
			return isNaN(somevar) ? 0 : parseFloat(somevar);
		return 0;
	case C_STRING:
		if (typeof(somevar)=='number')
			return somevar.toString;
		if (typeof(somevar)=='string')
			return somevar;
		return '';
	}
}

var RandSeed=0;
// Creates the random seed from the system time
function Randomize() {
  var now = new Date();
  RandSeed = now.getTime() % 0xffffffff;
}

// Gets a random number from 0 to n-1
function Random(n) {
  RandSeed = (0x015a4e35 * RandSeed + 1) % 0x7fffffff;
  return (RandSeed >> 16) % n;
}

function OnLoadMainFunction() {
	if (onloadlist!="")
		eval(onloadlist);
	pageloaded = 1;
}

// Simplifies a popup confirmation
function AreYouSure(popuptext, someurl) {
	if (confirm(popuptext))
		window.location = someurl;
}

// For a standard popup with a scrollbar and no menu
function DisplayMiniWindow(windowpage, popupwidth, popupheight) {
	window.open(windowpage, '', 'width=' + popupwidth + ',height=' + popupheight +
		',location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes');
}

// For a popup without a scrollbar
function DisplayMiniWindow2(windowpage, popupwidth, popupheight) {
	window.open(windowpage, '', 'width=' + popupwidth + ',height=' + popupheight +
		',location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no');
}

// For a popup with a scrollbar, going to a specific window
function DisplayMiniWindow3(windowpage, targetwindow, popupwidth, popupheight) {
	window.open(windowpage, targetwindow, 'width=' + popupwidth + ',height=' + popupheight +
		',location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes');
}

// For a popup without a scrollbar, going to a specific window
function DisplayMiniWindow4(windowpage, targetwindow, popupwidth, popupheight) {
	window.open(windowpage, targetwindow, 'width=' + popupwidth + ',height=' + popupheight +
		',location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no');
}

// Displays a message in a popup, and goes to a new location
function DisplayMessageAndGo(displaymessage, newlocation) {
	DisplayMiniWindow2('/popup-message.asp?message=' + escape(displaymessage), 400, 250);
	window.location = newlocation;
}

function PreloadImagesPart2(imagetoload) {
	var tempimage = new Image;
	tempimage.src = imagetoload;
}

// Preload images for mouseover and other events
function PreloadImages(imagelist) {
	var imagearray = imagelist.split(",");
	for (var q = 0; q < imagearray.length; q++) {
		PreloadImagesPart2(imagearray[q]);
	}
}

// ---------------------------------------------------------------------------
// The following are currently Netscape 4.x, Netscape 6.x, and IE4+ compatible


// Add a standard event handler
function MeMSOAddEvent(eventname, eventfunction) {
	if (!InIE && !DOMCompatible && !InNS6 && !InNS4)
		return 0;
	if (InNS6)
		document.addEventListener(eventname, eventfunction, false);
	switch (eventname) {
	case 'mousemove':
		if (InNS4)
			document.captureEvents(Event.MOUSEMOVE);
		document.onmousemove = eventfunction;
		break;
	case 'mousedown':
		if (InNS4)
			document.captureEvents(Event.MOUSEDOWN);
		document.onmousedown = eventfunction;
	case 'mouseup':
		if (InNS4)
			document.captureEvents(Event.MOUSEUP);
		document.onmouseup = eventfunction;
	}
	return 1;
}

// Internal
function MeMSOObjectGetPointer(objectname, parentlayer) {
	var layerarray;
	if (InIE)
		return document.all[objectname];
	if (DOMCompatible)
		return document.getElementById(objectname);
	if (InNS4) {
		layerarray = (parentlayer ? parentlayer : self).document.layers;
		if (layerarray[objectname])
			return layerarray[objectname];
		for (i=0; i<layerarray.length; i++)
			return MeMSOObjectGetPointer(objectname, layerarray[i]);
	}
}

function MeMSOObjectCreate(objectname) {
	var newhtml, newobject;
	if (!InNS4) {
		newhtml = '<div id="' + objectname + '" style="position: absolute;">&nbsp;</div>';
		if (typeof(document.createElement) != 'undefined') {
			newobject = document.createElement("DIV");
			if (newobject) {
				newobject.id = objectname;
				newobject.style.position = "absolute";
				document.body.appendChild(newobject);
			}
		} else if (typeof(document.body.insertAdjacentHTML) != 'undefined') {
			document.body.insertAdjacentHTML("BeforeEnd", newhtml);
		}
	} else {
		document.layers[objectname] = new Layer(0);
		eval('document.' + objectname + ' = document.layers[objectname];');
	}
}

function MeMSOObjectStyleChange(objectname, styletochange, newvalue) {
	var stylename = '', q, flag, curval;
	if (DOMCompatible || InNS4) {
		if (styletochange=='background-image')
			newvalue = "url('" + newvalue + "')";
		for (q=0; q<styletochange.length; q++) {
			curval = styletochange.substring(q, q+1);
			if (curval=='-') {
				flag = 1;
			} else {
				if (flag) {
					stylename += curval.toUpperCase();
					flag = 0;
				} else {
					stylename += curval;
				}
			}
		}
		if (!InNS4) {
			eval('document.getElementById(objectname).style.' + stylename + ' = newvalue;');
		} else {
			eval('GetElementPointer(objectname, 0).' + stylename + ' = newvalue;');
		}
	} else if (InIE) {
		switch (styletochange) {
		case 'background-color':
			stylename = 'bgColor';
			break;
		case 'background-image':
			stylename = 'bgImage';
			break;
		default:
			stylename = styletochange;
		}
		eval('document.all.' + objectname + '.' + stylename + ' = newvalue;');
	}
}

function MeMSOObjectMove(objectname, newx, newy) {
	var ourpointer = MeMSOObjectGetPointer(objectname, 0);
	if (InIE || DOMCompatible) {
		if (!InOpera) {
			ourpointer.style.left = newx;
			ourpointer.style.top = newy;
		} else {
			ourpointer.style.pixelLeft = newx;
			ourpointer.style.pixelTop = newy;
		}
	} else if (InNS4) {
		ourpointer.left = newx;
		ourpointer.top = newy;
	}
}

function MeMSOObjectUpdate(objectname, newcontent) {
	var ourpointer = MeMSOObjectGetPointer(objectname, 0);
	if (InIE || DOMCompatible) {
		if (typeof(ourpointer.innerHTML) != 'undefined') {
			ourpointer.innerHTML = newcontent;
		} else {
			ourpointer.firstChild.nodeValue = newcontent;
		}
	} else if (InNS4) {
		ourpointer.document.open();
		ourpointer.document.write(newcontent);
		ourpointer.document.close();
	}
}

function MeMSOObjectSetVisible(objectname, turniton) {
	var ourpointer = MeMSOObjectGetPointer(objectname, 0);
  if (InIE || DOMCompatible) {
    ourpointer.style.visibility = turniton ? 'visible' : 'hidden';
  } else if (InNS4) {
    ourpointer.visibility = turniton ? 'show' : 'hide';
  }
}

function MeMSOObjectGetVisible(objectname) {
	var ourpointer = MeMSOObjectGetPointer(objectname, 0);
  if (InIE || DOMCompatible) {
    return ourpointer.style.visibility == 'hidden' ? 0 : 1;
  } else if (InNS4) {
		return ourpointer.visibility == 'hide' ? 0 : 1;
  }
}

function MeMSOObjectSetZIndex(objectname, newindex) {
	var ourpointer = MeMSOObjectGetPointer(objectname, 0);
  if (InIE || DOMCompatible) {
    ourpointer.style.zIndex == newindex;
  } else if (InNS4) {
		ourpointer.zIndex == newindex;
  }
}

function MeMSOObjectGetZIndex(objectname) {
	var ourpointer = MeMSOObjectGetPointer(objectname, 0);
  if (InIE || DOMCompatible) {
    return ourpointer.style.zIndex;
  } else if (InNS4) {
		return ourpointer.zIndex;
  }
}

// Returns: An object having .x and .y properties which are the coordinates of the object
function MeMSOObjectGetPosition(objectname) {
	var ourpointer = MeMSOObjectGetPointer(objectname, 0);
	var coordinates = new Object();
	var x=0, y=0;

	// Logic to find position
	if (InIE || InNS6) {
		x = MeMSO_IEGetPageOffsetLeft(ourpointer);
		y = MeMSO_IEGetPageOffsetTop(ourpointer);
	} else if (InOpera) {
		x = ourpointer.style.pixelLeft;
		y = ourpointer.style.pixelTop;
	} else if (DOMCompatible) {
		x = parseInt(ourpointer.style.left);
		y = parseInt(ourpointer.style.top);
	} else if (InNetscape) {
		x = ourpointer.left;
		y = ourpointer.top;
	}
	/*
	if (InNS6 || InIE) {
		alert("pointer = document.getElementById('" + objectname + "');\n" +
			"pointer.style.pixelLeft reports: " + ourpointer.style.pixelLeft + "\n" +
			"parseInt(pointer.style.left) reports: " + parseInt(ourpointer.style.left) + "\n" +
			"pointer.left reports: " + ourpointer.left + "\n" +
			"pointer.offsetLeft reports: " + ourpointer.offsetLeft + "\n" +
			"GetIELeft(pointer) reports: " + MeMSO_IEGetPageOffsetLeft(ourpointer) + "\n" +
			"\n\n"+
			"function GetIELeft(pointer) {\n" +
			"  var curpos = pointer.offsetLeft;\n" +
			"  while ((pointer = pointer.offsetParent)!=null) {\n" +
			"    curpos += pointer.offsetLeft;\n" +
			"  }\n" +
			"  return curpos;\n" +
			"}");
	}
	*/

	coordinates.x = x;
	coordinates.y = y;
	return coordinates;
}

// Returns: An object having .x and .y properties which are the coordinates of the object, relative to the window
function MeMSOObjectGetScreenPosition(objectname) {
	var coordinates = MeMSOObjectGetPosition(anchorname);
	var x = 0;
	var y = 0;
	if (InIE) {
		x = coordinates.x - document.body.scrollLeft + window.screenLeft;
		y = coordinates.y - document.body.scrollTop + window.screenTop;
	} else if (DOMCompatible) {
		if (isNaN(window.screenX)) {
			x = coordinates.x - document.body.scrollLeft + window.screenLeft;
			y = coordinates.y - document.body.scrollTop + window.screenTop;
		} else {
			x = coordinates.x + window.screenX + (window.outerWidth - window.innerWidth) - window.pageXOffset;
			y = coordinates.y + window.screenY + (window.outerHeight - 24 - window.innerHeight) - window.pageYOffset;
		}
	}	else if (InNetscape) {
		x = coordinates.x + window.screenX + (window.outerWidth - window.innerWidth) - window.pageXOffset;
		y = coordinates.y + window.screenY + (window.outerHeight - 24 - window.innerHeight) - window.pageYOffset;
	}
	coordinates.x = x;
	coordinates.y = y;
	return coordinates;
}

// Returns: An object having .width and .height properties which are the size of the object
function MeMSOObjectGetSize(objectname) {
	var coordinates = new Object();
	var curwidth = 0, curheight = 0;
	var ourpointer = MeMSOObjectGetPointer(objectname, 0);
	if (InIE || InOpera) {
		if (ourpointer.style.pixelWidth) {
			curwidth = ourpointer.style.pixelWidth;
			curheight = ourpointer.style.pixelHeight;
		} else {
			curwidth = ourpointer.clientWidth;
			curheight = ourpointer.clientHeight;
		}
	} else if (DOMCompatible) {
		if (ourpointer.style.width) {
			curwidth = parseInt(ourpointer.style.width);
			curheight = parseInt(ourpointer.style.height);
		} else if (document.defaultView) {
			curwidth = parseInt(document.defaultView.getComputedStyle(document.getElementById(objectname), "").getPropertyValue("width"));
			curheight = parseInt(document.defaultView.getComputedStyle(document.getElementById(objectname), "").getPropertyValue("height"));
		} else {
			curwidth = object.offsetWidth;
			curheight = object.offsetHeight;
		}
	} else if (InNS4) {
		if (ourpointer.height) {
			curwidth = ourpointer.width;
			curheight = ourpointer.height;
		} else {
			curwidth = ourpointer.clip.right - ourpointer.clip.left + 1;
			curheight = ourpointer.clip.bottom - ourpointer.clip.top + 1;
		}
	}
	coordinates.width = curwidth;
	coordinates.height = curheight;
	return coordinates;
}

function MeMSOObjectSetSize(objectname, newwidth, newheight) {
	var ourpointer = MeMSOObjectGetPointer(objectname, 0);
	if (InOpera) {
		ourpointer.style.pixelWidth = newwidth;
		ourpointer.style.pixelHeight = newheight;		
	} else if (InIE || DOMCompatible) {
		ourpointer.style.width = newwidth;
		ourpointer.style.height = newheight;
	} else if (InNS4) {
		ourpointer.offsetWidth = newwidth;
		ourpointer.offsetHeight = newheight;
	}
}

// Returns: An object having .top, .bottom, .left and .right properties which are the clipping positions of objectname
function MeMSOObjectGetClipping(objectname) {
	var ourpointer = MeMSOObjectGetPointer(objectname, 0);
	var coordinates = new Object();
	var t = 0, b = 0, l = 0, r = 0;
	var curpos = 0, q, curval, curchar, curstring;
	if (!InNS4) {
		curstring = ourpointer.style.clip;
		for (q = 0; q < 3; q++) {
			curchar = curstring.charCodeAt(curpos);
			while (curchar<48 || curchar>57) {
				curchar = curstring.charCodeAt(++curpos);
			}
			curval = 0;
			while (curchar>=48 && curchar<=57 && curpos<curstring.length) {
				curval = (curval * 10) + (curchar - 48);
				curchar = curstring.charCodeAt(++curpos);
			}
			switch (q) {
			case 0:
				t = curval;
				break;
			case 1:
				r = curval;
				break;
			case 2:
				b = curval;
				break;
			case 3:
				l = curval;
				break;
			}
		}
	} else {
		t = ourpointer.clip.top;
		b = ourpointer.clip.bottom;
		l = ourpointer.clip.left
		r = ourpointer.clip.right;
	}
	coordinates.top = t;
	coordinates.bottom = b;
	coordinates.right = r;
	coordinates.left = l;
	return coordinates;
}

function MeMSOObjectSetClipping(objectname, newleft, newtop, newright, newbottom) {
	var ourpointer = MeMSOObjectGetPointer(objectname, 0);
	if (!InNS4) {
		ourpointer.style.clip = 'rect(' + newtop + ' ' + newright + ' ' + newbottom + ' ' + newleft + ')';
	} else {
		ourpointer.clip.top = newtop;
		ourpointer.clip.bottom = newbottom;
		ourpointer.clip.left = newleft;
		ourpointer.clip.right = newright;
	}
}

// ---------------------------------------------------------------------------
// Internal Use Functions

// Functions for old IE to get position of an object
function MeMSO_IEGetPageOffsetLeft(curobject) {
	var curpos = curobject.offsetLeft;
	while ((curobject = curobject.offsetParent)!=null) {
		curpos += curobject.offsetLeft;
	}
	return curpos;
}

function MeMSO_IEGetPageOffsetTop(curobject) {
	var curpos = curobject.offsetTop;
	while ((curobject = curobject.offsetParent)!=null) {
		curpos += curobject.offsetTop;
	}
	return curpos;
}

// ---------------------------------------------------------------------------
// Administration Functions

function AdminAreYouSure(itemname, someurl) {
	if (confirm('Are you sure you want to permanently delete ' + itemname + '?'))
		window.location = someurl;
}

function ASPUpload_ShowProgress(CurrentBarHREF, FormName) {
	strAppVersion = navigator.appVersion;
	if (eval('document.' + FormName + '.FILE1.value') != "") {
		if (InIE && BrowserVerMajor>=4) {
			winstyle = "dialogWidth=375px; dialogHeight: 180px; center:yes";
			window.showModelessDialog(CurrentBarHREF + '&b=IE', null, winstyle);
		} else {
			window.open(CurrentBarHREF + '&b=NN', '', 'width=370,height=165', true);
		}
	}
	return true;
}

// ---------------------------------------------------------------------------
// Advanced Editor Functions

function AdvancedEditor_TextUpdate(formname, elementname, updatetype) {
	var cursel=document.selection.createRange()
	var somestring='', addbefore='', addafter='', addper='';
	var parentelement=cursel.parentElement();
	if (parentelement.name==elementname && parentelement.form.id==formname) {
		if (updatetype<256) {
			switch (updatetype) {
			case 0: // Bold
				addbefore = '<b>';
				addafter = '</b>';
				break;
			case 1: // Italic
				addbefore = '<i>';
				addafter = '</i>';
				break;
			case 2: // Underline
				addbefore = '<u>';
				addafter = '</u>';
				break;
			case 8: // Smaller
				addbefore = '<small>';
				addafter = '</small>';
				break;
			case 9: // Bigger
				addbefore = '<big>';
				addafter = '</big>';
				break;
			case 16:// Make Red
				addbefore = '<span style="color: #FF0000;">';
				addafter = '</span>';
				break;
			case 32:// Link
				if (cursel.text.charAt(cursel.text.length-1)==' ') {
					addbefore = '<a href="' + cursel.text.substring(0, cursel.text.length-1) + '">';
				} else {
					addbefore = '<a href="' + cursel.text + '">';
				}
				addafter = '</a>';
				break;
			case 33:// New Window Link
				if (cursel.text.charAt(cursel.text.length-1)==' ') {
					addbefore = '<a href="' + cursel.text.substring(0, cursel.text.length-1) + '" target="_blank">';
				} else {
					addbefore = '<a href="' + cursel.text + '" target="_blank">';
				}
				addafter = '</a>';
				break;
			case 64:// Indent
				addbefore = '<table border="0" cellspacing="0" cellpadding="0" width="100%"><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td width="100%">';
				addafter = '</td></tr></table>';
				break;
			case 96:// Bullet
				addbefore = '<img src="/images/bullet.gif" width="8" height="10" alt="" /> ';
				addafter = '';
				break;
			}
			if (cursel.text.charAt(cursel.text.length-1)==' ') {
				cursel.text = addbefore + cursel.text.substring(0, cursel.text.length-1) + addafter + ' ';
			} else {
				cursel.text = addbefore + cursel.text + addafter;
			}
		} else {
			switch (updatetype) {
			case 256:// Bullet
				addbefore = '<ul><li>';
				addafter = '</ul>';
				addper = '<li>';
				break;
			case 257:// Numbered List
				addbefore = '<ol type="1"><li>';
				addafter = '</ol>';
				addper = '<li>';
				break;
			}
			somestring = cursel.text;
			somestring = somestring.replace(/\r?\n/g, '\r\n' + addper);
			if (somestring.charAt(somestring.length-1)==' ') {
				cursel.text = addbefore + somestring.substring(0, cursel.text.length-1) + addafter + ' ';
			} else {
				cursel.text = addbefore + somestring + addafter;
			}
		}
	}
}

function AdvancedEditor_Preview(elementname, nlconvert) {
	var curtext = eval(elementname + ".value");
	var win = window.open(', ', '', 'width=600,height=400,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes');
	if (nlconvert)
		curtext = curtext.replace(/\r?\n/g, '<br />');
	curtext = '<html><head><link rel="stylesheet" type="text/css" href="/general.css" /></head><body class="PopupPreviewWindow">' +
		'<span class="MainText"><b>HTML Preview</b> (<small><a href="javascript: window.close();">close this window</a></small>)</span><br />' +
		'<table border="0" cellspacing="0" cellpadding="0" width="100%">' +
		'<tr><td bgcolor="#000000"><img src="/images/dot.gif" width="1" height="1" alt="" /></td></tr></table><br />' +
		'<span class="MainText">' + curtext + '<br /><br /></span></body></html>';
	win.document.write(curtext);
}

function AdvancedEditor_SelectUpdate(formname, elementname, dropdownname) {
	var curvalue = eval('document.' + formname + '.' + dropdownname + '.value');
	if (curvalue!='') {
		AdvancedEditor_TextUpdate(formname, elementname, parseInt(curvalue));
	}
	eval('document.' + formname + '.' + dropdownname + '.selectedIndex = 0;');
}

function AdvancedEditor_PopulateDropdown(formname, elementname) {
	var curstring = '', curidregion = formname + '_' + elementname + '_dd_div';
	curstring = '<select name="' + formname + '_' + elementname + '_dropdown" style="font-size: 8pt;" ' +
		'onchange="AdvancedEditor_SelectUpdate(\'' + formname + '\', \'' + elementname + '\', \'' + formname + '_' + elementname + '_dropdown\');">' +
		'<option value="" selected="selected">select to alter highlighted text</option>' +
		'<option value="">----------------------</option>';
	curstring +=
		'<option value="0">Bold</option>' +
		'<option value="1">Italic</option>' +
		'<option value="2">Underline</option>' +
		'<option value="8">Smaller Text</option>' +
		'<option value="9">Bigger Text</option>' +
		'<option value="16">Red Text</option>' +
		'<option value="">----------------------</option>' +
		'<option value="32">Convert to a Link</option>' +
		'<option value="33">Convert to a Popup Link</option>' +
		'<option value="">----------------------</option>' +
		'<option value="96">Bullets</option>' +
		'<option value="64">Indent</option>';
	curstring += '</select>';
	MeMSOObjectUpdate(curidregion, curstring);
}


// ---------------------------------------------------------------------------
// Deprecated Functions
function MeMSOStyleChange(objectname, styletochange, newvalue) {
	MeMSOObjectStyleChange(objectname, styletochange, newvalue);
}

function MeMSOLayerMove(objectname, newx, newy) {
	MeMSOObjectMove(objectname, newx, newy);
}

function MeMSOLayerUpdate(objectname, newcontent) {
	MeMSOObjectUpdate(objectname, newcontent);
}

function MeMSOLayerSetVisible(objectname, turniton) {
	MeMSOObjectSetVisible(objectname, turniton)
}

function AdvancedTextUpdate(formname, elementname, updatetype) {
	AdvancedEditor_TextUpdate(formname, elementname, updatetype);
}

function AdvancedPreview(elementname, nlconvert) {
	AdvancedEditor_Preview(elementname, nlconvert);
}

// End Deprecated Functions
// ---------------------------------------------------------------------------
