Xoffset=0;
Yoffset= 18;
var yyy=-2000;xxx=-2000;
var skn=tips_table.style;
document.onmousemove=get_mouse;
function show_tips(msg)
	{
		yyy=Yoffset;xxx=Xoffset;
		document.all("tips_table").innerHTML="<TABLE BORDER=0 CELLPADDING=5 CELLSPACING=1 bgcolor=#FFD101 width=300><TR><TD bgcolor=#EFEFEF>"+msg+"</TD></TR></TABLE>";skn.visibility="visible";
	}

function show_tips_help(msg)
	{
		yyy=-80;xxx=0;
		document.all("tips_table").innerHTML="<TABLE BORDER=0 CELLPADDING=5 CELLSPACING=1 bgcolor=#000000 HEIGHT=80><TR><TD bgcolor=#E7E7E7 VALIGN=top ALIGN=left><FONT COLOR=#000000>"+msg+"</FONT></TD></TR></TABLE>";skn.visibility="visible";
	}
	
function show_tips_form(msg)
	{
		yyy=-160;xxx=120;
		document.all("tips_table").innerHTML="<TABLE BORDER=0 CELLPADDING=5 CELLSPACING=1 bgcolor=#FFD101 width=320 HEIGHT=192><TR><TD bgcolor=#FFFFFF VALIGN=top ALIGN=left BACKGROUND=./html/images/stips.jpg>"+msg+"</TD></TR></TABLE>";skn.visibility="visible";
	}

function get_mouse(e)
	{
		var x=event.x+document.body.scrollLeft;skn.left=x+xxx;var y=event.y+document.body.scrollTop;skn.top=y+yyy;	
	}

function break_tips()
	{
		yyy=-1000;xxx=-1000;skn.visibility="hidden";
	}

function break_tips_s()
	{
		yyy=-1000;xxx=-1000;skn.visibility="hidden";
	}

function TestConf(){
	form1.acts.value="test";
	form1.submit();
}

currObj = "uuuu";
function getActiveText(obj)
{
	currObj = obj;
}

function addTag(code)
{
	addText(code);
}

function addText(ibTag)
{
	var isClose = false;
	var obj_ta = currObj;

	if (obj_ta.isTextEdit)
	{
		obj_ta.focus();
		var sel = document.selection;
		var rng = sel.createRange();
		rng.colapse;

		if((sel.type == "Text" || sel.type == "None") && rng != null)
		{
			rng.text = ibTag;
		}

		obj_ta.focus();

		return isClose;
	}
	else
		return false;
}	
