function addb(txtarea)
	{	
	var sl = (txtarea.value).substring(txtarea.selectionStart,txtarea.selectionEnd); 
	var tex = (txtarea.value);
	var a = txtarea.selectionStart;
	var b = tex.length;
	var c = txtarea.selectionEnd;
	var t1 = (txtarea.value).substring(0,a);
	var t2 = (txtarea.value).substring(c)
	var t3 = "[B]" + sl + "[/B]";
	tex = t1 + t3 + t2;
	(txtarea.value) = tex;
	}

function addi(txtarea)
	{	
	var sl = (txtarea.value).substring(txtarea.selectionStart,txtarea.selectionEnd); 
	var tex = (txtarea.value);
	var a = txtarea.selectionStart;
	var b = tex.length;
	var c = txtarea.selectionEnd;
	var t1 = (txtarea.value).substring(0,a);
	var t2 = (txtarea.value).substring(c)
	var t3 = "[I]" + sl + "[/I]";
	tex = t1 + t3 + t2;
	(txtarea.value) = tex;
	}
	
function addu(txtarea)
	{	
	var sl = (txtarea.value).substring(txtarea.selectionStart,txtarea.selectionEnd); 
	var tex = (txtarea.value);
	var a = txtarea.selectionStart;
	var b = tex.length;
	var c = txtarea.selectionEnd;
	var t1 = (txtarea.value).substring(0,a);
	var t2 = (txtarea.value).substring(c)
	var t3 = "[U]" + sl + "[/U]";
	tex = t1 + t3 + t2;
	(txtarea.value) = tex;
	}

function showdiv() {
document.getElementById('hideshow').style.visibility = 'visible';
}

function ratingloader() {
document.getElementById('ratingloader').style.visibility = 'visible';
}