function word_tip(){
	var contents = $('contents');
	var set_val = "contents="+encodeURIComponent(contents.innerHTML);
	new Ajax.Request("/word_tip.php",{
	method:'post',
	parameters: set_val,
	asynchronous:true,
	onSuccess:get_res,
	onFailure:error});

	function get_res(req){
		$("contents").innerHTML = "";
		xml = req.responseXML;
		res = xml.getElementsByTagName("content")[0].firstChild.nodeValue;
		$("contents").innerHTML += res;
	}

	function error(req){
		$('contents').innerHTML = contents.innerHTML;
	}
}

function tip_tip(id){
	var set_val = "id="+encodeURIComponent(id);
	new Ajax.Request("/word_tips.php",{
	method:'post',
	parameters: set_val,
	asynchronous:true,
	onSuccess:get_res,
	onFailure:error});

	function get_res(req){
		xml = req.responseXML;
		word_title = xml.getElementsByTagName("word_title")[0].firstChild.firstChild.nodeValue;
		word_value = xml.getElementsByTagName("word_title")[0].lastChild.firstChild.nodeValue;
		Tip(word_value, WIDTH, 250, TITLE, word_title, SHADOW, true, STICKY, 1, FADEIN, 300, FADEOUT, 300, CLOSEBTN, true, CLICKCLOSE, true, PADDING, 6, BORDERCOLOR, '#990000', BGCOLOR, '#fcfcfc', FONTCOLOR, '#000000');
	}

	function error(req){
	}
}

