function setProperty() {
	var dropDown = document.getElementById('ComplexId');
	var url = document.URL.toUpperCase();
	
	if (url.indexOf('TREASURE') > 0)
		dropDown.value='365';
	if (url.indexOf('BRITANNIA') > 0)
		dropDown.value='366';
	if (url.indexOf('GRANDVIEW') > 0)
		dropDown.value='367';
	if (url.indexOf('GEORGETOWN') > 0)
		dropDown.value='368';
	if (url.indexOf('WHITE') > 0)
		dropDown.value='369';
	if (url.indexOf('COCO') > 0)
		dropDown.value='374';
	if (url.indexOf('GRAPE') > 0)
		dropDown.value='375';
	/*
	if (url.indexOf('SPECIAL') > 0){
			var opt = document.createElement("option");
			opt.text = 'Select One';
			opt.value = 0;
			dropDown.options.add(opt);
			dropDown.value = '0';
			var btnSubmit = document.getElementById('btnCheckAvailability');
			btnSubmit.disabled = 1;
		}

	dropDown.onchange = function() { 
		if (dropDown.value != '0')
			btnSubmit.disabled = 0;
	}
	*/
}
	

//to make sure I don't overwrite window.onload
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}
addLoadEvent(setProperty);

