// function to open a popup window
function openPopup(url)
{
  window.open(url, "new", "width=582, height=606, toolbar=no, menubar=no, scrollbars=yes");
}

// function to open a popup window for the full size apartment photos
function openAccomPopup(url)
{
  window.open(url, "new", "width=300, height=400, toolbar=no, menubar=no, scrollbars=yes");
}

// function to open a popup window for the full size apartment photos
function openAccomLargerPopup(url)
{
  window.open(url, "largerNew", "width=400, height=300, toolbar=no, menubar=no, scrollbars=yes");
}

function validateBooking()
{
return true;
}

function validateContact()
{
return true;
}

// date function
function writeDate()
{
  var now = new Date();
  var date = now.getDate();
  var year = now.getFullYear();

  var monthNumber = now.getMonth();
  var month = "";
  switch (monthNumber)
  {
    case 0:
      month = "January";
      break;
    case 1:
      month = "February";
      break;
    case 2:
      month = "March";
      break;
    case 3:
      month = "April";
      break;
    case 4:
      month = "May";
      break;
    case 5:
      month = "June";
      break;
    case 6:
      month = "July";
      break;
    case 7:
      month = "August";
      break;
    case 8:
      month = "September";
      break;
    case 9:
      month = "October";
      break;
    case 10:
      month = "November";
      break;
    case 11:
      month = "December";
      break;
  }


  var hour = now.getHours();
  var numMinutes = now.getMinutes();
  var minutes = "";
  if (numMinutes < 10)
  {
    minutes = "0" + numMinutes;
  }
  else
  {
    minutes = numMinutes;
  }

  var dateString = "<span class='date'>";
  dateString += date + " " + month + " " + year;
  dateString += "</span>";
  document.writeln(dateString);
}