// JavaScript Document

/*Javascript for history stock quote */
function checkform()
{

	var bval
	bval=true;
		
		
	if(document.frmbelowmovingavg.indexval.value=="")
	{
		alert('Please Select Index');
		return false;
	}
	
	if(document.frmbelowmovingavg.totaldays.value=="")
	{
		alert('Please Select Days');
		return false;
	}
	
	if(document.frmbelowmovingavg.mcap.value=="")
	{
		alert('Please Select Market Capitalization');
		return false;
	}
	if(document.frmbelowmovingavg.percentgap.value=="")
	{
		alert('Please Select Percent Gap');
		return false;
	}
	
	
	document.frmbelowmovingavg.submit();
	
	
	
}


function submitLink(iScriptID,iScriptName){
	document.frmbelowmovingavg.ScriptID.value=iScriptID;
	document.frmbelowmovingavg.scripname.value=iScriptName;
	if(checkform()){
		return true;	
	}else{
		return false;
	}
}


function PageNoSubmit(iNo){
	document.frmbelowmovingavg.pageno.value=iNo;
	if(checkform()){
		return true;	
	}else{
		return false;
	}
}
