var xmlhttp1=false; 
var xmlhttp2=false; 
/*@cc_on @*/ 
/*@if (@_jscript_version >= 5) 
// JScript gives us Conditional compilation, we can cope with old IE versions. 
// and security blocked creation of the objects. 
  try { 
  xmlhttp1 = new ActiveXObject("Msxml2.XMLHTTP"); 
  } catch (e) { 
   try { 
    xmlhttp1 = new ActiveXObject("Microsoft.XMLHTTP"); 
   } catch (E) { 
    xmlhttp1 = false; 
   } 
  } 
@end @*/ 
if (!xmlhttp1 && typeof XMLHttpRequest!='undefined') { 
  xmlhttp1 = new XMLHttpRequest(); 
} 
/*@cc_on @*/ 
/*@if (@_jscript_version >= 5) 
// JScript gives us Conditional compilation, we can cope with old IE versions. 
// and security blocked creation of the objects. 
  try { 
  xmlhttp2 = new ActiveXObject("Msxml2.XMLHTTP"); 
  } catch (e) { 
   try { 
    xmlhttp2 = new ActiveXObject("Microsoft.XMLHTTP"); 
   } catch (E) { 
    xmlhttp2 = false; 
   } 
  } 
@end @*/ 
if (!xmlhttp2 && typeof XMLHttpRequest!='undefined') { 
  xmlhttp2 = new XMLHttpRequest(); 
} 

function loadFragmentInToElement1(fragment_url, element_id) { 
    var element = document.getElementById(element_id); 
    element.innerHTML = '&nbsp;'; 
    xmlhttp1.open("GET", fragment_url); 
    xmlhttp1.onreadystatechange = function() { 
      if (xmlhttp1.readyState == 4 && xmlhttp1.status == 200) { 
      element.innerHTML = xmlhttp1.responseText;
      } 
    } 
    xmlhttp1.send(null); 
} 
function loadFragmentInToElement2(fragment_url, element_id) { 
    var element = document.getElementById(element_id); 
    element.innerHTML = '&nbsp;'; 
    xmlhttp2.open("GET", fragment_url); 
    xmlhttp2.onreadystatechange = function() { 
      if (xmlhttp2.readyState == 4 && xmlhttp2.status == 200) { 
      element.innerHTML = xmlhttp2.responseText; 
      } 
    } 
    xmlhttp2.send(null); 
} 
function refresh()
{
	setTimeout('refresh2()', 100);
}
function refresh2()
{
	top.location.href='/index.php';
}

