function popup(url) {
  var winname="WindowID";
  var args="toolbar=no,menubar=no,location=yes,scrollbars=yes,resizable=yes,height=480,width=640";
  
  if (typeof(popupWin) != "object") {
    popupWin = window.open(url,winname,args);
  } 
  else { 
    if (!popupWin.closed) {
      popupWin.location.href = url;
    }
    else { 
      popupWin = window.open(url, winname,args);
    }
  }
  popupWin.focus();
}


function popupseats(url) {
  var winname="WindowID";
  var args="toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=1024";
  
  if (typeof(popupWin) != "object") {
    popupWin = window.open(url,winname,args);
  } 
  else { 
    if (!popupWin.closed) {
      popupWin.location.href = url;
    }
    else { 
      popupWin = window.open(url, winname,args);
    }
  }
  popupWin.focus();
}

function redirect()   { 
    var months=new Array(13);
    months[1]="January";
    months[2]="February";
    months[3]="March";
    months[4]="April";
    months[5]="May";
    months[6]="June";
    months[7]="July";
    months[8]="August";
    months[9]="September";
    months[10]="October";
    months[11]="November";
    months[12]="December";
    var time=new Date();
    var mon=String(months[time.getMonth() + 1]);
    window.location.href = mon.toLowerCase().slice(0,3) +".html";
}


function monthname() {
  var sPath = window.location.pathname;
  if (sPath.indexOf('/',2)==-1) {
    var page = sPath.substring(sPath.lastIndexOf('\\') + 1);
  } else {
    var page = sPath.substring(sPath.lastIndexOf('/') + 1);
  }
  page = page.substring(0,page.indexOf('.'));
  var months=new Array(13);
  months[1]="January";
  months[2]="February";
  months[3]="March";
  months[4]="April";
  months[5]="May";
  months[6]="June";
  months[7]="July";
  months[8]="August";
  months[9]="September";
  months[10]="October";
  months[11]="November";
  months[12]="December";
  var time=new Date();
  for (i=0;i<4;i++) {
    var month=String(months[time.getMonth() + i + 1]);
    var mon=month.toLowerCase().slice(0,3);
    if ( mon == page) {
      document.write("<p class='selected'><a href='" + mon +".html'>" + month +  "</a></p>");
    } else {
      document.write("<p><a href='" + mon +".html'>" + month +  "</a></p>");
    }
  }
} 

function newAjax(){
  var request=false;
  // Because object name varies with browser & version, must find what works...
  if (window.XMLHttpRequest) { //we're in Mozilla, Safari, Konqueror etc
     request = new XMLHttpRequest(); //create XMLHTTP object
     // next line MAY be required to force correct MIME type for XML response:
     // if (request.overrideMimeType) {request.overrideMimeType('text/xml');}
  } else if (window.ActiveXObject) { //we're in Internet Explorer
     try { request = new ActiveXObject("Msxml2.XMLHTTP");  //try newer version IE
     } catch(err) { //that didn't work, so...
        try { request = new ActiveXObject("Microsoft.XMLHTTP"); //try older IE
        } catch(err) { // that failed too, request remains false
        }
     }
  }
  return request;
}




