﻿// JScript File

<!--- Hall of Fame Ajax --->
function replace(file,element) {
	var http = false;
	
	try{
		// Opera 8.0+, Firefox, Safari
		http = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			http = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				http = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Your browser broke!");
				return false;
			}
		}
	}
  http.open("GET", file, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4 && http.status == 200) {
      document.getElementById(element).innerHTML = http.responseText;
    }
  }
  http.send(null);
}
