function ibspeakEditor_tag(thetag)
{


	inserttext = prompt("\n[" + thetag + "]xxx[/" + thetag + "]");
	posttext = my_getbyid('shoutcontent');
	
	if(inserttext != null) {
		posttext.value = posttext.value + "[" + thetag + "]"+inserttext + "[/" + thetag + "]";
	}
}

function ibspeakEditor_popcolor(obj)
{
	id = "ibspeakPallete";
	object = my_getbyid(id);
	
	if(object.style.display != "block"){
		object.style.width = "150px"; 
		height = obj.offsetHeight;
		width = obj.offsetWidth;
		
		object.style.position = "absolute";
		left = parseInt(getOffsetLeft(obj));
		
		object.onclick = function() {
			toggleview(id);
		}
		
		
		object.style.left = left +"px";
		
		object.style.top = parseInt(getOffsetTop(obj) + height + 45) +"px";
		
		object.style.zIndex = 100; 
	}
	toggleview(id);
}

function insertColor(color) {
	posttext = my_getbyid('shoutcontent');
	posttext.value = posttext.value + "[color=#"+color+"][/color]";
}

function ibspeak_addemo(theSmilie)

{

	posttext = my_getbyid('shoutcontent');
	
	posttext.value = posttext.value + " " + theSmilie + " ";



	if ( (ua_vers >= 4) && is_ie && is_win && emowindow != 'undefined' )

	{

		emowindow.focus();

	}

}