/*Javascript for history stock quote */
function checkform()
{
		
	if(document.frmrptsectorcom.exchange.value=="")
	{
		alert('Please Select Exchange');
		return false;
	}
	
	if(document.frmrptsectorcom.mcap.value=="")
	{
		alert('Please Select Market Capitalization.');
		return false;
	}
	

	//document.frmsearchquote.action='history-stockquote.asp';
	document.frmrptsectorcom.submit();
	
}


function SubmitIndex(indexval){
	document.frmrptsectorcom.ind.value=indexval;
	if(checkform()){
		return true;	
	}else{
		return false;
	}
}




function PageNoSubmit(iNo,indexval){
	document.frmrptsectorcom.pageno.value=iNo;
	document.frmrptsectorcom.ind.value=indexval;
	if(checkform()){
		return true;	
	}else{
		return false;
	}
}

function detailstock(id,date)
	{
		//alert(id);
		//alert(date);
		//window.location ="http://www.eggheadcafe.com/articles/querystringjs.htm?name="+sName+"&email="+sEmail;
		window.location.href="get-quote.asp?_SCID="+id+ "&copydate="+date;
		
	}

