var isNS4 = (navigator.appName=="Netscape")?1:0; var maxx = 100; var maxy = 2; var count = 0; var graph = new Array(maxx) allok = new Boolean(true) for (x = 0; x <= maxx; x++) {graph [x] = new Array(maxy)} function sequencecheck() { var sequence = document.submit_form.seq.value; var secseq = document.submit_form.SSInfo.value; if(sequence.length==0) { alert('Please sumit the sequence'); return false; } if(secseq.length==0) { alert('Please sumit the Secondary Structure Data'); return false; } if((document.submit_form.CHOICEOPT[0].checked==true)&&(document.submit_form.SSInfo.value.length == 0)) { alert('Please provide the secondary structure information for the sequence'); return false; } } function changeSecondaryInfo(Ssecvalue){ document.submit_form.Ssec[0].value=Ssecvalue; } function setinfo(value){ document.submit_form.seq.value+=value; } function AddInfo(){ var Initialvalue=document.submit_form.startRange.value; var Finalvalue=document.submit_form.endRange.value; var Sec=document.submit_form.SSInfo.value; var len=document.submit_form.seq.value.length; if((Initialvalue.length>0)&&(Finalvalue>0)) { // alert("length = "+len); if((parseInt(Finalvalue) > parseInt(Initialvalue))&&(parseInt(Finalvalue) > 0) && (parseInt(Initialvalue)> 0) && (parseInt(Finalvalue)<=len)) { if(count==0) { document.submit_form.SSInfo.value=Sec + document.submit_form.HB.value + " " + Initialvalue + " " + Finalvalue + "\n"; graph[count][0]=Initialvalue; graph[count][1]=Finalvalue; count++; } else { allok=true; for(i=0;i=graph[i][0])&&(parseInt(Initialvalue)<=graph[i][1]))||((parseInt(Finalvalue)>=graph[i][0])&&(parseInt(Finalvalue)<=graph[i][1]))||((parseInt(Initialvalue)graph[i][1]))) {alert("Please check the values !!!");allok=false;} } if(allok) { document.submit_form.SSInfo.value=Sec + document.submit_form.HB.value + " " + Initialvalue + " " + Finalvalue + "\n"; graph[count][0]=Initialvalue; graph[count][1]=Finalvalue; count++; } } } else {alert("Please check the values !!!");} } else {alert("Please check the values !!!");} } function changeChoice(optChoice){ document.submit_form.CHOICEOPT[0].value=optChoice; document.submit_form.seq.value=""; } function clearForm(){ document.submit_form.reset(); document.submit_form.seq.value=""; document.submit_form.SSInfo.value=""; return true; } function popUp(URL){ fname = document.getElementsByName("myFile")[0].value; if (fname != "") window.open(URL+"?first&uplMonitor="+encodeURIComponent(fname),"","width=400,height=150,resizable=yes,depend=yes") } //-->