/*
Lac des herons
webflow webdesign - www.webflow.be
Wouter Verstuyf
*/

/* jquery png fix */
$(document).ready(function(){ 
	$(document).pngFix(); 
}); 

/* trim function */
function trim(value) {
  value = value.replace(/^\s+/,'');
  value = value.replace(/\s+$/,'');
  return value;
}

//ga naar vorige maand
function goPrevMonth(month, year) {
  if(month == 1) {
    --year;
    month = 13;
  }
  document.location.href = '/nl/verhuur/?month='+(month-1)+'&year='+year;
}

// ga naar volgend jaar
function goNextYear(month, year) {
  ++year;
  document.location.href = '/nl/verhuur/?month='+ month +'&year='+year;
}

// ga naar vorig jaar
function goPrevYear(month, year) {
    --year;
  document.location.href = '/nl/verhuur/?month='+ month +'&year='+year;
}

// ga naar volgende maand
function goNextMonth(month, year) {
  if(month == 12) {
    ++year;
    month = 0;
  }
  document.location.href = '/nl/verhuur/?month='+(month+1)+'&year='+year;
}

// get data
function get (year, month) {
	document.location.href = '/nl/verhuur/?month='+ month +'&year='+year;
	return false;
}
