var SymbIndex="";var ExpIndex ="";var ExpiryDate="";var SymbolVal="";var SymbIndexHist="";var ExpIndexHist ="";var ExpiryDateHist="";var SymbolValHist="";function populateHist(){ 	document.get_quote_form_hist.SymbolHist.options.length =shist.length+1; 	document.get_quote_form_hist.ExpiryDateHist.options.length=1; 	document.get_quote_form_hist.SymbolHist.selectedIndex=0; 	document.get_quote_form_hist.ExpiryDateHist.selectedIndex=0; for (i=0;i<shist.length;i++) { 	document.get_quote_form_hist.SymbolHist.options[i+1].value = shist[i]; 	document.get_quote_form_hist.SymbolHist.options[i+1].text = shist[i]; }}function fillExpiryDateHist(){ SymbolValHist=document.get_quote_form_hist.SymbolHist.options[document.get_quote_form_hist.SymbolHist.selectedIndex].value; SymbIndexHist=document.get_quote_form_hist.SymbolHist.selectedIndex; document.get_quote_form_hist.ExpiryDateHist.selectedIndex=0; if(SymbIndexHist>0) { a1=new Array(); a1=Ahist[SymbIndexHist-1]; for(var cc=0;cc<a1.length;cc++){ for(var cc1=cc+1;cc1<a1.length;cc1++){ var temp=0; if(parseInt(a1[cc])>parseInt(a1[cc1])){ temp=a1[cc1]; a1[cc1]=a1[cc]; a1[cc]=temp; } } } document.get_quote_form_hist.ExpiryDateHist.options.length = a1.length + 1; for(i=0;i<a1.length;i++){ document.get_quote_form_hist.ExpiryDateHist.options[i+1].value = ehist[a1[i]]; document.get_quote_form_hist.ExpiryDateHist.options[i+1].text = ehist[a1[i]];} }}function populate(){ 	document.get_quote_form.Symbol.options.length =s.length+1; 	document.get_quote_form.ExpiryDate.options.length=1; 	document.get_quote_form.Symbol.selectedIndex=0; 	document.get_quote_form.ExpiryDate.selectedIndex=0; for (i=0;i<s.length;i++) { 	document.get_quote_form.Symbol.options[i+1].value = s[i]; 	document.get_quote_form.Symbol.options[i+1].text = s[i]; }}function fillExpiryDate(){ SymbolVal=document.get_quote_form.Symbol.options[document.get_quote_form.Symbol.selectedIndex].value; SymbIndex=document.get_quote_form.Symbol.selectedIndex; document.get_quote_form.ExpiryDate.selectedIndex=0; if(SymbIndex>0) { a1=new Array(); a1=A[SymbIndex-1]; for(var cc=0;cc<a1.length;cc++){ for(var cc1=cc+1;cc1<a1.length;cc1++){ var temp=0; if(parseInt(a1[cc])>parseInt(a1[cc1])){ temp=a1[cc1]; a1[cc1]=a1[cc]; a1[cc]=temp; } } } document.get_quote_form.ExpiryDate.options.length = a1.length + 1; for(i=0;i<a1.length;i++){ document.get_quote_form.ExpiryDate.options[i+1].value = e[a1[i]]; document.get_quote_form.ExpiryDate.options[i+1].text = e[a1[i]];} }} function validate() {	 document.get_quote_form.Symbol.options[document.get_quote_form.Symbol.selectedIndex].text;	 document.get_quote_form.ExpiryDate.options[document.get_quote_form.ExpiryDate.selectedIndex].text;       SymbIndex=document.get_quote_form.Symbol.selectedIndex;	   ExpIndex=document.get_quote_form.ExpiryDate.selectedIndex;          if(SymbIndex!=0){			 if(ExpIndex!=0)			 {			 }			 else			 {			 alert("Please Select Expiry Date Before You Proceed");	 	 return false;			 }		  }else{		 	alert("Please Select The Symbol Before You Proceed");	        return false;		  } } function validateHist() {	 document.get_quote_form_hist.SymbolHist.options[document.get_quote_form_hist.SymbolHist.selectedIndex].text;	 document.get_quote_form_hist.ExpiryDateHist.options[document.get_quote_form.ExpiryDateHist.selectedIndex].text;       SymbIndexHist=document.get_quote_form_hist.SymbolHist.selectedIndex;	   ExpIndexHist=document.get_quote_form_hist.ExpiryDateHist.selectedIndex;          if(SymbIndexHist!=0){			 if(ExpIndexHist!=0)			 {			 }			 else			 {			 alert("Please Select Expiry Date Before You Proceed");	 	 return false;			 }		  }else{		 	alert("Please Select The Symbol Before You Proceed");	        return false;		  } }
