function populate01(objForm,selectIndex) {
timeA = new Date(objForm.doa_yy.options[objForm.doa_yy.selectedIndex].text, objForm.doa_mm.options[objForm.doa_mm.selectedIndex].value,1);
timeDifference = timeA - 86400000;
timeB = new Date(timeDifference);
var daysInMonth = timeB.getDate();
for (var i = 0; i < objForm.doa_dd.length; i++) {
objForm.doa_dd.options[0] = null;
objForm.dod_dd.options[0] = null;
}
for (var i = 0; i < daysInMonth; i++) {
objForm.doa_dd.options[i] = new Option(i+1);
objForm.dod_dd.options[i] = new Option(i+1);
}
x = document.forms.searchRoomsForm.doa_mm.options.selectedIndex;
z = document.forms.searchRoomsForm.doa_yy.options.selectedIndex;
document.forms.searchRoomsForm.doa_dd.options[0].selected = true;
document.forms.searchRoomsForm.dod_dd.options[0].selected = true;
document.forms.searchRoomsForm.dod_mm.options[x].selected = true;
document.forms.searchRoomsForm.dod_yy.options[z].selected = true;
}

function populate02(objForm,selectIndex) {
var thisSelectedMonth = objForm.dateLeavingMonth.options[objForm.dateLeavingMonth.selectedIndex].value;
thisRealDate = new Date();
var thisRealMonth = thisRealDate.getMonth()+1;
var thisSelectedYear = thisRealDate.getFullYear();
if (thisSelectedMonth > thisRealMonth) {
thisSelectedYear = thisSelectedYear+1;
}
timeA = new Date(thisSelectedYear, objForm.dateLeavingMonth.options[objForm.dateLeavingMonth.selectedIndex].value,1);
timeDifference = timeA - 86400000;
timeB = new Date(timeDifference);
var daysInMonth = timeB.getDate();
for (var i = 0; i < objForm.dateLeavingDay.length; i++) {
objForm.dateLeavingDay.options[0] = null;
objForm.dateReturningDay.options[0] = null;
}
for (var i = 0; i < daysInMonth; i++) {
objForm.dateLeavingDay.options[i] = new Option(i+1);
objForm.dateReturningDay.options[i] = new Option(i+1);
}
x = document.forms.searchAirForm.dateLeavingMonth.options.selectedIndex;
document.forms.searchAirForm.dateLeavingDay.options[0].selected = true;
document.forms.searchAirForm.dateReturningDay.options[0].selected = true;
document.forms.searchAirForm.dateReturningMonth.options[x].selected = true;
}

function populate03(objForm,selectIndex) {
var thisSelectedMonth = objForm.from_mm.options[objForm.from_mm.selectedIndex].value;
thisRealDate = new Date();
var thisRealMonth = thisRealDate.getMonth()+1;
var thisSelectedYear = thisRealDate.getFullYear();
if (thisSelectedMonth > thisRealMonth) {
thisSelectedYear = thisSelectedYear+1;
}
timeA = new Date(thisSelectedYear, objForm.from_mm.options[objForm.from_mm.selectedIndex].value,1);
timeDifference = timeA - 86400000;
timeB = new Date(timeDifference);
var daysInMonth = timeB.getDate();
for (var i = 0; i < objForm.from_dd.length; i++) {
objForm.from_dd.options[0] = null;
objForm.to_dd.options[0] = null;
}
for (var i = 0; i < daysInMonth; i++) {
if (i < 9) {
objForm.from_dd.options[i] = new Option(i+1, "0"+(i+1));
} else
objForm.from_dd.options[i] = new Option(i+1);
}
for (var i = 0; i < daysInMonth; i++) {
if (i < 9) {
objForm.to_dd.options[i] = new Option(i+1, "0"+(i+1));
} else
objForm.to_dd.options[i] = new Option(i+1);
}
x = document.forms.searchTourForm.from_mm.options.selectedIndex;
document.forms.searchTourForm.from_dd.options[0].selected = true;
document.forms.searchTourForm.to_dd.options[0].selected = true;
document.forms.searchTourForm.to_mm.options[x].selected = true;
}

function uncheckAll()
{
	document.forms.searchTourForm.ACTTYPE_all.checked = false;
}

function uncheck()
{
	document.forms.searchTourForm.ACTTYPE_attraction.checked 	= false;
	document.forms.searchTourForm.ACTTYPE_shows.checked 		= false;
	document.forms.searchTourForm.ACTTYPE_tours.checked 		= false;
	document.forms.searchTourForm.ACTTYPE_outdoor.checked 		= false;
	document.forms.searchTourForm.ACTTYPE_dining.checked		= false;
	document.forms.searchTourForm.ACTTYPE_transport.checked		= false;
}
