

function ajaxInit(){
var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  return xmlHttp;
}

function ShowQuestion(x,e)
{
var Name="PHPSESSID";
var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    // if cookie exists
    if (offset != -1) { 
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1) end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }

var xmlHttp=ajaxInit();
if(window.event){
var xCoord=window.event.clientX;
var yCoord=window.event.clientY;
}else{
	var xCoord=e.clientX;
var yCoord=e.clientY;
	
}
  xmlHttp.onreadystatechange=function()
    {
	
    if(xmlHttp.readyState==4)
      {
	  var response=xmlHttp.responseXML;
	
var text=response.getElementsByTagName('text');

var content=text[0].childNodes[0].nodeValue;
win3 = window.open("", "Window3", "width=300,height=300,scrollbars=no");
win3.focus();
var html="<head><title>What is this?</title>";
html+="</head><body  style=\"background:#ffffff;color:#1cccb1;\" onBlur='self.close();'> <div id=\"content\" style=\"display:inline;width:200px\">";
html+="<span onBlur='self.close();' style=\"background:#ffffff;color:#1cccb1;\" class='price'>"+content+"</span></div><br/><br/>";
win3.document.writeln(html);
win3.moveTo(xCoord-300,yCoord);
win3.opener.onfocus=function(){
	win3.close();
}



	//recreate the calculator
	
	  }
	}
///////////
var location=window.location;
	
	//var url=location.protocol+"//"+location.host+"/~website/include/Ajax/helpQuestionsAjax.php?Q="+x;
var  url=location.protocol+"//"+location.host+"/include/Ajax/helpQuestionsAjax.php?Q="+x;



  xmlHttp.open("GET",url,true,'developer','As7Qx3m');
  xmlHttp.send(null);

 }