// JavaScript Document

/*Javascript for history stock quote */
function checkform()
{
	var bval
	bval=true;	
	if(document.frmadvancedecline.Indexvalue.value=="")
	{
		alert('Please Select Index.');
		return false;
	}
	if(document.frmadvancedecline.selectdays.value=="")
	{
		alert('Please Select Period.');
		return false;
	}
	

	//document.frmsearchquote.action='history-stockquote.asp';
	if(bval)
	{
		document.frmadvancedecline.submit();
	}	
	
}

function PageNoSubmit(iNo){
	document.frmadvancedecline.pageno.value=iNo;
	if(checkform()){
		return true;	
	}else{
		return false;
	}
}
//var graphKey=new Array("NSE", "BSE", "Tony") //Graph items
//var graphvalue=new Array('<%=strAdvancePer%>', '<%=strDeclinePer%>', '<%=strUnchangePer%>'); //Graph values (in percentage, so 70=70%)
