YAHOO.util.Event.onDOMReady(function ()
{
	ContactPage = new ContactPage();
	ContactPage.init();
});

function ContactPage()
{
	this.flydown = document.getElementById('subject');

	YAHOO.util.Event.addListener(this.flydown, 'change', this.handleChange,
		this, true);
}

ContactPage.prototype.handleChange = function(e)
{
	this.update();
}

ContactPage.prototype.init = function()
{
	this.update();
}

ContactPage.prototype.update = function()
{
	if (this.flydown.value.indexOf('booking') == -1) {
		arrival_date_obj.setSensitivity(false);
		departure_date_obj.setSensitivity(false);
	} else {
		arrival_date_obj.setSensitivity(true);
		departure_date_obj.setSensitivity(true);
	}
}

