/*Javascript for history stock quote */
function checkform()
{

	var bval
	bval=true;	
	if(document.frmrptsectorcom.exchange.value=="")
	{
		alert('Please Select Exchange');
		bval=false;
	}
	
	if(document.frmrptsectorcom.sectorname.value=="")
	{
		alert('Please Select Sector Name');
		bval=false;
	}
	if(bval){
		document.frmrptsectorcom.submit();
	}else{
		return false;
	}
	
	
}

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;
		
	}
	
