140 function checkAllNull(){
141 if(document.getElementsByName('exp_method')[0].value == "coexp"){
142 if(document.getElementsByName('var_cutoff')[0].value == ""){
143 alert('this can\'t be null,please input');
144 document.getElementsByName('var_cutoff')[0].focus();
145 return false;
146 }
147 if(document.getElementsByName('cor_pvalue')[0].checked){
148 if(document.getElementsByName('cor_q_cutoff')[0].value == ""){
149 alert('this can\'t be null,please input');
150 document.getElementsByName('cor_q_cutoff')[0].focus();
151 return false;
152 }
153 if(document.getElementsByName('cor_top')[0].checked){
154 if(document.getElementsByName('top_cutoff')[0].value == ""){
155 alert('this can\'t be null,please input');
156 document.getElementsByName('top_cutoff')[0].focus();
157 return false;
158
159 }
160 }
161 }else{
162 if(document.getElementsByName('cor_top')[0].checked){
163 if(document.getElementsByName('top_cutoff')[0].value == ""){
164 alert('this can\'t be null,please input');
165 document.getElementsByName('top_cutoff')[0].focus();
166 return false;
167 }
168
169 }else{
170 alert("You should at least choose one option");
171 document.getElementsByName('cor_pvalue')[0].focus();
172 return false;
173 }
174
175 }
176 if(document.getElementsByName('module_cutoff')[0].value == ""){
177 alert('this can\'t be null,please input');
178 document.getElementsByName('module_cutoff')[0].focus();
179 return false;
180 }
181 if(document.getElementsByName('hub_cutoff')[0].value == ""){
182 alert('this can\'t be null,please input');
183 document.getElementsByName('hub_cutoff')[0].focus();
184 return false;
185 }
186 if(document.getElementsByName('colocate_cutoff')[0].value == ""){
187 alert('this can\'t be null,please input');
188 document.getElementsByName('colocate_cutoff')[0].focus();
189 return false;
190 }
191
192 if(document.getElementsByName('gene_cutoff')[1].value == ""){
193 alert('this can\'t be null,please input');
194 document.getElementsByName('gene_cutoff')[1].focus();
195 return false;
196 }
197 if(document.getElementsByName('pv_cutoff')[1].value == ""){
198 alert('this can\'t be null,please input');
199 document.getElementsByName('pv_cutoff')[1].focus();
200 return false;
201 }
202
203 }else{
204 if(document.getElementsByName('fdr_cutoff')[0].value == ""){
205 alert("This can\'t be null,please input");
206 document.getElementsByName('fdr_cutoff')[0].focus();
207 return false;
208 }
209 if(document.getElementsByName('compares')[0].value == ""){
210 alert("This can\'t be null,please input");
211 document.getElementsByName('compares')[0].focus();
212 return false;
213 }
214
215 if(document.getElementsByName('gene_cutoff')[0].value == ""){
216 alert('this can\'t be null,please input');
217 document.getElementsByName('gene_cutoff')[0].focus();
218 return false;
219 }
220 if(document.getElementsByName('pv_cutoff')[0].value == ""){
221 alert('this can\'t be null,please input');
222 document.getElementsByName('pv_cutoff')[0].focus();
223 return false;
224 }
225
226 }
227
228 return true;
229 }
阅读(1577) | 评论(0) | 转发(0) |