function showChaletSubMenu(blnShowMenu){
	var objSubmenu = document.getElementById('divSelectChaletSubmenu');
	
	if(blnShowMenu){
		objSubmenu.style.display = 'block';
	}else{
		objSubmenu.style.display = 'none';
	}
	
}


function checkContactForm(strFormId){
	objForm = document.getElementById(strFormId);
	
	if(objForm.name.value.length < 2){
		alert(objForm.strErrorMsg.value);
		objForm.name.focus();
		return false;
	}
	
	if(objForm.email.value.length < 2){
		alert(objForm.strErrorMsg.value);
		objForm.email.focus();
		return false;
	}
	
	if(objForm.comment.value.length < 2){
		alert(objForm.strErrorMsg.value);
		objForm.comment.focus();
		return false;
	}
		
	objForm.submit();
	return true;
}

function checkBookingForm(strFormId){
	objForm = document.getElementById(strFormId);
	
	if(objForm.agreeterms.checked != 1){
		alert(objForm.strErrorMsg.value);
		objForm.agreeterms.focus();
		return false;
	}
	
	if(objForm.name.value.length < 2){
		alert(objForm.strErrorMsg.value);
		objForm.name.focus();
		return false;
	}
	
	if(objForm.rentfrom.value.length < 2){
		alert(objForm.strErrorMsg.value);
		objForm.rentfrom.focus();
		return false;
	}
	
	if(objForm.renttill.value.length < 2){
		alert(objForm.strErrorMsg.value);
		objForm.renttill.focus();
		return false;
	}
	
	if(objForm.address.value.length < 3){
		alert(objForm.strErrorMsg.value);
		objForm.address.focus();
		return false;
	}
	
	if(objForm.city.value.length < 3){
		alert(objForm.strErrorMsg.value);
		objForm.city.focus();
		return false;
	}
	
	if(objForm.country.value.length < 4){
		alert(objForm.strErrorMsg.value);
		objForm.country.focus();
		return false;
	}
	
	if(objForm.tel.value.length < 6){
		alert(objForm.strErrorMsg.value);
		objForm.tel.focus();
		return false;
	}
	
	if(objForm.mobile.value.length < 7){
		alert(objForm.strErrorMsg.value);
		objForm.mobile.focus();
		return false;
	}
	
	if(objForm.email.value.length < 5){
		alert(objForm.strErrorMsg.value);
		objForm.email.focus();
		return false;
	}
	
	if(objForm.dateofbirth.value.length < 4){
		alert(objForm.strErrorMsg.value);
		objForm.dateofbirth.focus();
		return false;
	}
	
	objForm.submit();
	return true;
}

function showForm(strFormId){
	var contactform = document.getElementById('form_contact');
	contactform.style.display = "none";
	
	var bookingform = document.getElementById('form_booking');
	bookingform.style.display = "none";
	
	var form = document.getElementById(strFormId);
	form.style.display = 'block';
	return false;
}
