function ajaxmemberfinished(mid, pid)
  {
if(mid !=-1){// if the member exisits
  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;
        }
      }
    }
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        { 
//document.getElementById("puzzleinfo1").innerHTML=xmlHttp.responseText;
        }
      }
    xmlHttp.open("GET","ajaxfiles/updatememberfinished.php?mid="+mid+"&pid="+pid,true);
    xmlHttp.send(null);
}//endif mid is not -1
  }
  




function ajaxmemberfaved(mid,pid) {
if(mid !=-1){// if the member exisits
  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;
        }
      }
    }
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        { 
//document.getElementById("puzzleinfo1").innerHTML=xmlHttp.responseText+"faved";
document.getElementById("pointsinfotxtb").innerHTML="Puzzle Faved!";
document.getElementById("pointsinfotxtf").innerHTML="Puzzle Faved!";
        }
      }
    xmlHttp.open("GET","ajaxfiles/updatememberfaved.php?mid="+mid+"&pid="+pid,true);

    xmlHttp.send(null);
}//endif mid is not -1
  }





function ajaxgetmemberpoints(mid) {
if(mid !=-1){// if the member exisits
  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;
        }
      }
    }
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        { 
document.getElementById("pointsinfotxtb").innerHTML=xmlHttp.responseText+" PP <<";
document.getElementById("pointsinfotxtf").innerHTML=xmlHttp.responseText+" PP <<";
        }
      }
    var refreshme=Math.floor(Math.random()*5); //this is to keep ie from caching the page
 
    xmlHttp.open("GET","ajaxfiles/getmemberpoints.php?mid="+mid+"&refreshme="+refreshme,true);
    xmlHttp.send(null);
}//endif mid is not -1
  }
  