// JavaScript Document
 var xmlhttp = false;
 
 
function executePage(url,qs, obj, beginDelimiter, endDelimiter) {
	document.getElementById(obj).innerHTML = "Loading...",46;
  var reply = "";
  var temp;
  try {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
   } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
   }
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
    xmlhttp = new XMLHttpRequest();
  }

  xmlhttp.open("POST", url,true);

    try
	{   
		xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		//alert('method is POST')
	}
	catch (e) {alert('Problem with setRequestHeader');}



	xmlhttp.onreadystatechange=function() {
          if (xmlhttp.readyState==4) {
                reply = xmlhttp.responseText;
                
                var indexOfBeginDelimiter = reply.indexOf(beginDelimiter);
                var startingIndex = indexOfBeginDelimiter + beginDelimiter.length;
                var indexOfEndDelimiter = reply.indexOf(endDelimiter);
                temp = reply.substring(startingIndex, indexOfEndDelimiter)
                document.getElementById(obj).innerHTML = temp;
          }
  }
  xmlhttp.send(qs);
}


function executePageWithText(url,qs,obj,textForProcessing,cbFunc)
{
	document.getElementById(obj).innerHTML = textForProcessing;
	var xmlhttp = false;
	var reply = "";
	var temp;
	try 
	{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} 
	catch (e) 
	{
		try 
		{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} 
		catch (E) 
		{
			xmlhttp = false;
		}
	}
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();
	}
	
	xmlhttp.open("POST", url,true);

    try
	{   
		xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		//alert('method is POST')
	}
	catch (e) {alert('Problem with setRequestHeader');}


   xmlhttp.onreadystatechange=function() {
	  if (xmlhttp.readyState==4) {
			cbFunc(xmlhttp.responseText)	  
			}
		}

	xmlhttp.send(qs);
}
function executePageBackground(url,qs,cbFunc)
{
	var xmlhttp = false;
	var reply = "";
	var temp;
	try 
	{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} 
	catch (e) 
	{
		try 
		{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} 
		catch (E) 
		{
			xmlhttp = false;
		}
	}
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();
	}
	
	xmlhttp.open("POST", url,true);

    try
	{   
		xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		//alert('method is POST')
	}
	catch (e) {alert('Problem with setRequestHeader');}

	xmlhttp.onreadystatechange=function() {
	  if (xmlhttp.readyState==4) {
			cbFunc(xmlhttp.responseText)	  
			}
		}

	xmlhttp.send(qs);
}

function executePage(url,qs,obj)
{
	document.getElementById(obj).innerHTML = "Processing...",46;
	var xmlhttp = false;
	var reply = "";
	var temp;
	try 
	{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} 
	catch (e) 
	{
		try 
		{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} 
		catch (E) 
		{
			xmlhttp = false;
		}
	}
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();
	}
	
	
	xmlhttp.open("POST", url,true);

    try
	{   
		xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		//alert('method is POST')
	}
	catch (e) {alert('Problem with setRequestHeader');}


	xmlhttp.onreadystatechange=function() {
	  if (xmlhttp.readyState==4) {
			reply = xmlhttp.responseText;
			
/*			var indexOfBeginDelimiter = reply.indexOf(beginDelimiter);
			var startingIndex = indexOfBeginDelimiter + beginDelimiter.length;
			var indexOfEndDelimiter = reply.indexOf(endDelimiter);
			temp = reply.substring(startingIndex, indexOfEndDelimiter)
*/			document.getElementById(obj).innerHTML = reply;
	  }
	}
	xmlhttp.send(qs);

}