<!--
// All the arguments are optional
// Year - If this parameter is not set, then current year will be used
// Month - If this parameter is not set, then current month and the given Year / Current year will be shown
// Day - this parameter can be used for selecting a particular day

function getEntaMonth() {
  adate = new Date();
  var acal;

  var url = 'http://www.malmostadsteater.se/Transport.php?';
  //var pars = "url=http://nettbillett.billettportalen.no/mst/bpCalendar.aspx";
  var pars = "url=http://boka.malmostadsteater.se/mst/bpCalendar.aspx";



  new Ajax.Request(
    url,
    {
      method: 'post',
      postBody: pars,
      encoding: 'ISO-8859-1',
      onSuccess: function(resp) {
          $('entaMooCalendar').innerHTML = resp.responseText.replace('﻿','');
          acal = new calclick('entaMooCalendar');
      },
      onFailure: function(resp) {
          $('entaMooCalendar').innerHTML = '<div id="entaMooCalendarTable"><h1>' + calcklick.title + '</h1></div>';
      },
      parameters: 'fromdate='
    });
}


// Render a list of available shows based on enta_play_id

function getEntaPlayDates(enta_shoid) {

  var url = 'http://www.malmostadsteater.se/Transport.php?';
  //var pars = "url=http://nettbillett.billettportalen.no/mst/EVENTLISTFULL.ASPX&shoid=" + enta_shoid; //full list
  //var pars = "url=http://nettbillett.billettportalen.no/mst/EVENTLISTTINY.ASPX&rows=10&shoid=" + enta_shoid; //short list
  var pars = "url=http://boka.malmostadsteater.se/mst/EVENTLISTTINY.ASPX&rows=10&shoid=" + enta_shoid; //short list

  new Ajax.Request(
    url,
    {
      method: 'post',
      postBody: pars,
      encoding: 'ISO-8859-1',
      onSuccess: function(resp) {
          $('entaPlayDates').innerHTML = resp.responseText.replace('﻿','');
      },
      onFailure: function(resp) {
          $('entaPlayDates').innerHTML = '<h1>Fel</h1>';
      },
      parameters: 'shoid=' + enta_shoid
    });
}


//temporary function (maybe)...
function entaShowAllPlayDates(enta_shoid) {

  var url = 'http://www.malmostadsteater.se/TransportNoCache.php?';
  //var pars = "url=http://billettsystem.billettportalen.no/msttest/EventListFull.aspx&shoid=" + enta_shoid; //short list
  //var pars = "url=http://nettbillett.billettportalen.no/mst/EVENTLISTTINY.ASPX&rows=100&shoid=" + enta_shoid; //short list
  var pars = "url=http://boka.malmostadsteater.se/mst/EVENTLISTTINY.ASPX&rows=100&shoid=" + enta_shoid; //short list

  new Ajax.Request(
    url,
    {
      method: 'post',
      postBody: pars,
      encoding: 'ISO-8859-1',
      onSuccess: function(resp) {
          $('entaPlayDates').innerHTML = resp.responseText.replace('﻿','');
      },
      onFailure: function(resp) {
          $('entaPlayDates').innerHTML = '<h1>Fel</h1>';
      },
      parameters: 'shoid=' + enta_shoid
    });

}

//-->