
function use(u,c) {
	var bb_obj = document.postshout.msg;


	if(document.all && window.navigator.userAgent.toLowerCase().indexOf('opera')) {
		bb_obj.focus();
		selecttext = document.selection.createRange().text;

		if((selecttext && c) || bb_obj.isTextEdit) {
			if(bb_obj.isTextEdit && !selecttext) {
				var sel = document.selection;
				var nrn = sel.createRange();
				nrn.colapse;
				nrn.text = u;
				if(c) { nrn.text = c; }
			} else {
				document.selection.createRange().text = u+selecttext+c;
			}
		} else {
			bb_obj.value += u;
			if(c) { bb_obj.value += c; }
		}
	} else {
		if(!c) { c = ''; }
		bb_obj.value += u+c;
	}
	bb_obj.focus();
	selecttext = '';
}

function openuse(u) {
	var bbo_obj = opener.document.postshout.msg;
	bbo_obj.value += u;
}

function AddNewValue(bc,thenewvalue) {
	if(bc != '' && thenewvalue != '') {
		use("["+bc+"="+thenewvalue+"]","[/"+bc+"]");
		document.postshout.color.value = '';
		document.postshout.face.value = '';
		document.postshout.size.value = '';
//		document.postshout.glow.value = '';
//		document.postshout.shadow.value = '';
	}
}

function funclu (lookup) {
	document.getElementById('about').innerHTML = eval('func_'+lookup);
}