Chinaunix首页 | 论坛 | 博客
  • 博客访问: 467466
  • 博文数量: 118
  • 博客积分: 4015
  • 博客等级: 上校
  • 技术积分: 1233
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-24 22:11
文章分类

全部博文(118)

文章存档

2013年(5)

2011年(61)

2010年(52)

分类: 系统运维

2011-01-06 20:28:41

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) |
给主人留下些什么吧!~~