function createRequestObject()
{
   var ro;
   var browser = navigator.appName;
   
   if(browser == "Microsoft Internet Explorer")
   {
      ro = new ActiveXObject("Microsoft.XMLHTTP");
   }
   else
   {
      ro = new XMLHttpRequest();
   }
   
   return ro;
}

var http = createRequestObject();

function sndReq(action)
{
   http.open('get', action);
   http.onreadystatechange = handleResponse;
   http.send(null);
}

function handleResponse()
{
   if(http.readyState == 4)
   {
      var response = http.responseText;
      var update = new Array();
      var update1 = new Array();
      var update2 = new Array();

      if(response.indexOf('|') != -1)
      {
         update = response.split('|');

         if (update[1].indexOf('**') != -1)
         {
            update1 = update[0].split('**');
            update2 = update[1].split('**');
            document.getElementById(update1[0]).innerHTML = update1[1];
            document.getElementById(update2[0]).innerHTML = update2[1];
         }
         else
         {
            document.getElementById(update[0]).innerHTML = update[1];
         }
      }
   }
}

function openWin(page)
{
   window.open(page,"win","width=400,height=350,status=0,scrollbars=0,resizable=0")
}

function openWinTxt(page)
{
   window.open(page,"winTxt","width=370,height=700,status=0,scrollbars=1")
}

function openWinTxtSmall(page)
{
   window.open(page,"winTxtSmall","width=350,height=220,status=0,scrollbars=0,resizable=0")
}

function openWinMedia(page)
{
   window.open(page,"winMedia","width=520,height=450,status=0,scrollbars=0,resizable=0")
}


function adjustIndex(status)
{
   if (status == "over")
   {
      document.getElementById('content').style.zIndex = 0;
   }
   else if (status == "out")
   {
      document.getElementById('content').style.zIndex = 3;
  }
}


