function Helper()
{
	this.get_helper = function(name) 
	{
		var url = '/ajax/helper.php?name='+name;
		var ajx = new AJAX();
		ajx.request(url, this);

	}
	this.get_response = function(response)
	{
		response = "<span style='border-bottom: 1px solid #cccccc; font-weight: bold; text-align: center'>More Information</span> - <b><a style='cursor: pointer;' onclick=\"document.getElementById('helper').style.visibility='hidden';\">close window</a></b><br><br>"+response;
		
		var obj =document.getElementById('helper');
		
		if(typeof obj != "undefined" && obj != null)
		{
	       obj.style.position = "absolute";
		   obj.style.left = "200px";
		   obj.style.top = "100px";
			obj.style.visibility = "visible";
			obj.innerHTML = response;
		}
		else
		{
			this.creatediv("helper", response, "250px", "130px", "0px", "0px");
		}
	}
	this.creatediv = function(id, html, width, height, left, top) 
	{

	   var newdiv = document.createElement('div');
	   newdiv.setAttribute('id', id);

	   if (width) {
	       newdiv.style.width = width;
	   }
	else{  newdiv.style.width = "200px"; }
	
	   if (height) {
	       newdiv.style.height = height;
	   }
	   else{  newdiv.style.height = "200px"; }

	       newdiv.style.position = "absolute";
		   newdiv.style.left = left;
		   newdiv.style.top = top;
	   newdiv.style.visibility = "visible";
		newdiv.style.overflow = "auto";
		newdiv.style.paddingLeft = "5px"
	   newdiv.style.background = "#eeeeee";
	   newdiv.style.border = "1px solid #cccccc";

	   if (html) {
	       newdiv.innerHTML = html;
	   } else {
	       newdiv.innerHTML = "";
	   }

	   document.body.appendChild(newdiv);

	} 	
}
var helper = new Helper();
