// JavaScript Document

/*Javascript for history stock quote */
function checkform()
{

	var bval
	bval=true;
		
		
	if(document.frmmovingcalc.scripname.value=="")
	{
		alert('Please Write Scrip Name');
		bval=false;
	}
	
	if(document.frmmovingcalc.exchange.value=="")
	{
		alert('Please Select Exchange');
		bval=false;
	}
	
	if(bval){
		document.frmmovingcalc.submit();
	}else{
		return false;
	}
	
	
}


function submitLink(iScriptID,iScriptName){
	document.frmmovingcalc.ScriptID.value=iScriptID;
	document.frmmovingcalc.scripname.value=iScriptName;
	if(checkform()){
		return true;	
	}else{
		return false;
	}
}

function PageNoSubmit(iNo){
	document.frmmovingcalc.pageno.value=iNo;
	if(checkform()){
		return true;	
	}else{
		return false;
	}
}

