//********************************
// select all text in embed box
function SelectAll(id)
{
    document.getElementById(id).focus();
    document.getElementById(id).select();
}

var http = false;

if(navigator.appName == "Microsoft Internet Explorer") {
  http = new ActiveXObject("Microsoft.XMLHTTP");
} else {
  http = new XMLHttpRequest();
}

//*********************************
// report spam fon
function reportSpam(commentID) {

http.abort();
 
  http.open("GET", "http://fliiby.com/reportSpam.php?commentID=" + commentID, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
      	  alert(http.responseText);
    }
  }
  http.send(null);
    
}
//*************************************
/**
	A fon to change the text of a link
	and call a function according to each content.
*/	

var textDevelop = "more";
var textSummarize = "less";
function switchText(element)
{
	var d = textDevelop.length;
	var s = textSummarize.length;
	
	var content = element.firstChild.data;

	if(content == textDevelop)
	{		
		element.firstChild.data = textSummarize;
		develop();
		return;				
	}
	if(content == textSummarize)
	{
		element.firstChild.data = textDevelop;
		summarize();
		return;				
	}
}