function show(fname) { if(fname != "") {    //get rid of the backgroundImage  var td = document.getElementById("b");  td.style.backgroundImage = 'none';     //alert(fname)  http.open("GET", fname, true);  http.onreadystatechange = getHttpRes;  http.send(null);    }}function getHttpRes() {   if (http.readyState == 4) {       res = http.responseText;      res = stripDesignText(res);    //alert(res);      document.getElementById('main').innerHTML = res;    }}function stripDesignText(s) {   startStr = "type=\"text/css\">" start = s.indexOf(startStr); if (start>0) {  //alert(res);  //alert(start);  //alert(end);  //alert(s.slice(start+startStr.length,end+3));  return s.slice(start+startStr.length); } else {  return s; }}//creates an XMLHttpRequest object for any browser, and returns that object. function getXHTTP() { //alert('Function 1')   var xhttp;   //The following "try" blocks get the XMLHTTP object for various browsers…    try {             xhttp = new ActiveXObject("Msxml2.XMLHTTP");      } catch (e) {         try {            xhttp = new ActiveXObject("Microsoft.XMLHTTP");         } catch (e2) {     //This block handles Mozilla/Firefox browsers...       try {          xhttp = new XMLHttpRequest();       } catch (e3) {          xhttp = false;       }         }      }   return xhttp; // Return the XMLHTTP object}//puts the XMLHttpRequest object into the http variable. //This executes when the page first loads.var http = getXHTTP();//var al = alert('Ajax Java Module Loaded');