return false; } else if (obj_type == "SINGLE_VALUE_RADIO" || obj_type == "SINGLE_VALUE_CHECKBOX") { if (obj.checked) return true; else return false; } else if (obj_type == "RADIO" || obj_type == "CHECKBOX") { for (i=0; i < obj.length; i++) { if (obj[i].checked) return true; } return false; } } function _CF_checkreservation(_CF_this) { if (!_CF_hasValue(_CF_this.FirstName, "TEXT" )) { if (!_CF_onError(_CF_this, _CF_this.FirstName, _CF_this.FirstName.value, "Please enter your First Name")) { return false; } } if (!_CF_hasValue(_CF_this.LastName, "TEXT" )) { if (!_CF_onError(_CF_this, _CF_this.LastName, _CF_this.LastName.value, "Please enter your Last Name")) { return false; } } if (!_CF_hasValue(_CF_this.Phone, "TEXT" )) { if (!_CF_onError(_CF_this, _CF_this.Phone, _CF_this.Phone.value, "Please enter your phone number")) { return false; } } if (!_CF_hasValue(_CF_this.Country, "TEXT" )) { if (!_CF_onError(_CF_this, _CF_this.Country, _CF_this.Country.value, "Please enter your country")) { return false; } } if (!_CF_hasValue(_CF_this.Email, "TEXT" )) { if (!_CF_onError(_CF_this, _CF_this.Email, _CF_this.Email.value, "Please enter your Email address")) { return false; } } if (!_CF_hasValue(_CF_this.NumberOfNights, "TEXT" )) { if (!_CF_onError(_CF_this, _CF_this.NumberOfNights, _CF_this.NumberOfNights.value, "Please enter the number of nights")) { return false; } } return true; } //-->