// JavaScript Document

/*Javascript for history stock quote */
function checkform()
{

	var bval
	bval=true;
		
	/*if(document.frmcorporateaction.actiontype.value=="")
	{
		alert('Please Select Action Type');
		bval=false;
	}*/
	if(document.frmcorporateaction.timeschedule.value=="")
	{
		alert('Please Select Period');
		bval=false;
	}
	
	
	if(bval){
		document.frmcorporateaction.submit();
	}else{
		return false;
	}
	
	
}

function submitLink(iScriptID,iScriptName){
	/*document.frmcorporateaction.ScriptID.value=iScriptID;
	document.frmcorporateaction.scripname.value=iScriptName;
	if(checkform()){
		return true;	
	}else{
		return false;
	}*/
}

function SubmitIndex(indexval){
	document.frmrptsectorcom.ind.value=indexval;
	if(checkform()){
		return true;	
	}else{
		return false;
	}
}

function PageNoSubmit(iNo){
	document.frmcorporateaction.pageno.value=iNo;
	if(checkform()){
		return true;	
	}else{
		return false;
	}
}