// JavaScript Document

/*Javascript for history stock quote */
function checkform()
{

	var bval
	bval=true;
		
		
	if(document.frmscripcalculator.scripname.value=="")
	{
		alert('Please Enter Scrip Name');
		document.frmpricevolumetrnd.scripname.focus();
		return false;
	}
	if(document.frmscripcalculator.timespan.value=="")
	{
		alert('Please Select Period');
		return false;
	}
	
		
	if(bval){
		document.frmscripcalculator.submit();
	}else{
		return false;
	}
	
	
}

function submitLink(iScriptID,iScriptName){
	document.frmscripcalculator.ScriptID.value=iScriptID;
	document.frmscripcalculator.scripname.value=iScriptName;
	if(checkform()){
		return true;	
	}else{
		return false;
	}
}

function SubmitIndex(indexval){
	document.frm52wklow.ind.value=indexval;
	if(checkform()){
		return true;	
	}else{
		return false;
	}
}

function PageNoSubmit(iNo){
	document.frmscripcalculator.pageno.value=iNo;
	if(checkform()){
		return true;	
	}else{
		return false;
	}
}