// JavaScript Document


   http_request = new Array();
   function makeRequest(url, parameters, xId) {
      if (window.XMLHttpRequest) { // Mozilla, Safari,...
         http_request[xId] = new XMLHttpRequest();
         if (http_request[xId].overrideMimeType) {
            http_request[xId].overrideMimeType('text/html');
         }
      } else if (window.ActiveXObject) { // IE
         try {
            http_request[xId] = new ActiveXObject("Msxml2.XMLHTTP");
         } catch (e) {
            try {
               http_request[xId] = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {}
         }
      }
      if (!http_request[xId]) {
	 document.getElementById(xId).innerHTML = 'Result not available';
         return false;
      }
      http_request[xId].onreadystatechange = function() {

          if (http_request[xId].readyState == 4) {
                document.getElementById(xId).innerHTML = http_request[xId].responseText;
          }
        }

      http_request[xId].open('GET', url + parameters, true);
      http_request[xId].send(null);
   }
 
 var newWin = null; 
function popUp(strURL, strType, strHeight, strWidth) {
 if (newWin != null && !newWin.closed) 
   newWin.close(); 
 var strOptions=""; 
 if (strType=="console") 
   strOptions="resizable,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="fixed") 
   strOptions="status,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="elastic") 
   strOptions="toolbar,menubar,scrollbars,"+ 
     "resizable,location,height="+ 
     strHeight+",width="+strWidth; 
 newWin = window.open(strURL, 'newWin', strOptions); 
 newWin.focus(); 
}

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

