function checkFields() { if ((document.Tran7.TAAnnoFile.value == "")&& (document.Tran7.TASeqFile.value =="")&& (MyMain.FAnnoFile.value =="")&& (MyMain.FSeqFile.value =="")) { alert("Please Add Annotation and/or Sequence Data."); return false; } else return true; } //-------------------------------------------------------------------------------------// function chechparam() { if (document.Tran7.LBMatchLevel.selectedIndex >0) { alert ("Selecting 'Mach level' less then 100%, will disable The Tract Frequncies & Sub-Region Distribution reports "); } chechparam1(); } function chechparam1() { MyMain = document.Tran7; var Cb1C = MyMain.CBOutReport1.checked; var Cb1D = MyMain.CBOutReport1.disabled ; var Cb2C = MyMain.CBOutReport2.checked ; var Cb2D =MyMain.CBOutReport2.disabled ; var Cb3C =MyMain.CBOutReport3.checked; var Cb3D =MyMain.CBOutReport3.disabled ; var Cb4C =MyMain.CBOutReport4.checked ; var Cb4D =MyMain.CBOutReport4.disabled ; var Cb5C = MyMain.CBOutReport5.checked; var Cb5D =MyMain.CBOutReport5.disabled; if (!((MyMain.TAAnnoFile.value == "") && (MyMain.TASeqFile.value == "") && (MyMain.FAnnoFile.value == "") && (MyMain.FSeqFile.value == ""))) { if((MyMain.TAAnnoFile.value != "") || (MyMain.FAnnoFile.value != "")) { Cb4D = false; MyMain.LBMinLnGn.disabled = false; if ( MyMain.CBOutReport5.disabled == true) { Cb5C = true ; Cb5D = false; } } if((MyMain.TASeqFile.value != "") || (MyMain.FSeqFile.value != "")) { Cb4D = false; } if (MyMain.RBTracks[0].checked == true) { Cb1C = false ; Cb1D = true; MyMain.LBMaxLnGn.disabled = true; Cb2C = false ; Cb2D = true; Cb3C = false ; Cb3D = true; MyMain.LBMedLnGn.disabled = true; MyMain.LBMinLnGn.disabled = true; } else { if ( MyMain.CBOutReport1.disabled == true) { Cb1C = true ; Cb1D = false; } if ((MyMain.RBTracks[10].checked == true) || (MyMain.RBTracks[11].checked == true) || (MyMain.RBTracks[12].checked == true) || (MyMain.RBTracks[13].checked == true)) { Cb2C = false ; Cb2D = true; Cb3C = false ; Cb3D = true; MyMain.LBMedLnGn.disabled = true; } else { if ( MyMain.CBOutReport2.disabled == true) { Cb2C = true ; Cb2D = false; } if ( MyMain.CBOutReport3.disabled == true) { Cb3C = true ; Cb3D = false; MyMain.LBMedLnGn.disabled = false; } } MyMain.LBMaxLnGn.disabled = false; MyMain.LBMinLnGn.disabled = false; } if (MyMain.LBMatchLevel.selectedIndex >0) { Cb2C = false ; Cb2D = true; Cb3C = false ; Cb3D = true; MyMain.LBMedLnGn.disabled = true; } if (((MyMain.TAAnnoFile.value == "") && ( MyMain.TASeqFile.value != "" )) || ((MyMain.FAnnoFile.value == "") && ( MyMain.FSeqFile.value != "" ))) { Cb3C = false ; Cb3D = true; Cb5C = false ; Cb5D = true; } } else { Cb1C = false; Cb1D = true; Cb2C = false; Cb2D = true; Cb3C = false; Cb3D = true; Cb4C = false; Cb4D = true; Cb5C = false; Cb5D = true; MyMain.LBMinLnGn.disabled = true; MyMain.LBMedLnGn.disabled = true; MyMain.LBMaxLnGn.disabled = true; } MyMain.CBOutReport1.checked = Cb1C; MyMain.CBOutReport1.disabled = Cb1D; MyMain.CBOutReport2.checked = Cb2C; MyMain.CBOutReport2.disabled = Cb2D; MyMain.CBOutReport3.checked = Cb3C; MyMain.CBOutReport3.disabled = Cb3D; MyMain.CBOutReport4.checked = Cb4C; MyMain.CBOutReport4.disabled = Cb4D; MyMain.CBOutReport5.checked = Cb5C; MyMain.CBOutReport5.disabled = Cb5D; } // End -->
The Tracts Program