var condo_now = new Date();
var calCndoDS = new CalendarPopup("condoDateStartDiv");
calCndoDS.addDisabledDates(null,formatDate(condo_now,"yyyy-MM-dd"));
function condoCheckDateStart() {
	if (document.frmCondoSearch.date_start.value == '' && document.frmCondoSearch.date_end.value != '')
	document.frmCondoSearch.date_start.value = document.frmCondoSearch.date_end.value;
}

var calCndoDE = new CalendarPopup("condoDateEndtDiv");
calCndoDE.addDisabledDates(null,formatDate(condo_now,"yyyy-MM-dd"));
function condoCheckDateEnd() {
	if (document.frmCondoSearch.date_end.value == '' && document.frmCondoSearch.date_start.value != '')
    document.frmCondoSearch.date_end.value = document.frmCondoSearch.date_start.value;
}

function condoAutoCheckOption2() {
	var sv1 = document.getElementById('condo_sview1');
	if (sv1 == 'undefined' || sv1 == null) return false;
	sv1.checked = false;
	document.getElementById('condo_sview2').checked = true;
}

function condoShowCheckout(rentalID) {
	document.getElementById('condo_checkoutrow').style.display = 'none';
	document.getElementById('condo_mwdays').style.display = 'none';
	
	switch (rentalID) {
	case '1':
		document.getElementById('condo_checkoutrow').style.display = '';
		break;    
	case '2':
		document.getElementById('condo_mwdays').style.display = '';
		break;
	}
	
	document.getElementById('condo_viewrtype').value = document.getElementById('condo_rtype').value;
}