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_checkCFForm_1(_CF_this) { if (!_CF_hasValue(_CF_this.Title, "TEXT" )) { if (!_CF_onError(_CF_this, _CF_this.Title, _CF_this.Title.value, "You need to provide a title.")) { return false; } } if (!_CF_hasValue(_CF_this.Author, "TEXT" )) { if (!_CF_onError(_CF_this, _CF_this.Author, _CF_this.Author.value, "You need to provide the author's name.")) { return false; } } if (!_CF_hasValue(_CF_this.name, "TEXT" )) { if (!_CF_onError(_CF_this, _CF_this.name, _CF_this.name.value, "You must provide your name. It will not be displayed with review.")) { return false; } } if (!_CF_hasValue(_CF_this.studentID, "TEXT" )) { if (!_CF_onError(_CF_this, _CF_this.studentID, _CF_this.studentID.value, "You must provide your student ID. It will not be displayed with review.")) { return false; } } return true; } //-->