﻿  $(function() {

  // Set up default dates in forms
  var d = new Date();
  var year = d.getFullYear();

  // Add two years, now and next to find hotel
  var options = '<option selected value="' + year + '">' + year + '</option>';
  options += '<option value="' + (year+1) + '">' + (year+1) + '</option>';

  $("select#start_year").html(options);
  $("select#end_year").html(options);

  var month = ('0' + (d.getMonth() + 1)).substring(0,2); // Pad month
  var day = d.getDate();
 
  // Today
  $("#start_day").val(day);
  $("#start_month").val(month);

  // Tomorrow
  d.setDate(d.getDate() + 1);
  month = ('0' + (d.getMonth() + 1)).substring(0,2); // Pad month
  day = d.getDate();

  $("#end_day").val(day);
  $("#end_month").val(month);

  $("select#SearchUserControl1_DropDownCategory").change(function(){
  $("select#SearchUserControl1_DropDownEvent").attr("disabled","disabled");

  })
  });