function ajax_load_page(page,tinymcename,targetid,evalcode,lazymethod)
{
  var xmlhttp_type = '';
  var xmlhttp = false; //Clear our fetching variable
  try
  {
    xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
  }
  catch (e)
  {
    try
    {
      xmlhttp = new ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
    }
    catch (E)
    {
      xmlhttp = false;
    }
  }

  if (!xmlhttp && typeof XMLHttpRequest!='undefined')
  {
    xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
    var xmlhttp_type = 'fallback';
  }

  if(tinymcename || xmlhttp_type == 'fallback' || lazymethod == true)
  {
    xmlhttp.open('GET', page, true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
  }
  else
  {
    xmlhttp.open('GET', page, false); //Open the file through GET, and add the page we want to retrieve as a GET variable **
  }

  xmlhttp.onreadystatechange=function()
  {
    if (xmlhttp.readyState==4)
    { //Check if it is ready to recieve data
      var content = xmlhttp.responseText; //The content data which has been retrieved ***
      if( content )//Make sure there is something in the content variable
      {
        //alert('Content Returned');
        if (tinymcename)
        {
          //alert('Output-A');
          tinyMCE.execCommand('mceFocus',false,tinymcename);
          tinyMCE.execCommand('mceInsertContent',false,content);
          return;
        }
        else if(evalcode)
        {
          //alert('Output-B');
          eval(evalcode);
          return;
        }
        else if(targetid)
        {
          //alert('Output-C');
          document.getElementById(targetid).innerHTML = content;
          return;
        }
        else
        {
          //alert('Output-D');
          return content;
        }
        //document.getElementById('content').innerHTML = content; //Change the inner content of your div to the newly retrieved content ****
      }
    }
  }
  xmlhttp.send(null) //Nullify the XMLHttpRequest
  return;
}
