function Story(id,sno,secid,subsecid)
{	
	fileName = "NewsDetails.asp?id="+ id+"&sno="+ sno+"&secid="+ secid+"&subsecid="+ subsecid;
  	var w1=screen.width;
 	 w1-=300;
 	 var h1=screen.height;
 	 h1-=200;
	 var newWin=window.open(fileName,'win1','x=0,y=0,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=580,height=360,screenX=0,screenY=0,left=300,top=237');	
	newWin.focus();	 
}

 function discHome()
 {
   var newWin=window.open("disclaimer.asp", "gop", "status = 1, height = 420, width =500, resizable = 0,scrollbars=1,left=220,top=150" )
   newWin.focus();
 }
 
 function disc()
 {
   var newWin=window.open("../disclaimer.asp", "gop", "status = 1, height = 420, width =500, resizable = 0,scrollbars=1,left=220,top=150" )
   newWin.focus();
 }

 function privacyHome()
 {
   var newWin=window.open("privacy.asp", "gop", "status = 1, height = 300, width =500, resizable = 0,scrollbars=1,left=220,top=150" )
   newWin.focus();
 }

 function privacy()
 {
   var newWin=window.open("../privacy.asp", "gop", "status = 1, height = 300, width =500, resizable = 0,scrollbars=1,left=220,top=150" )
   newWin.focus();
 }
 
function empty()
{
	if (document.frmQuotes.txtQuotes.value=="enter company name")
	{
	  document.frmQuotes.txtQuotes.value="";
	 }
}

function fill()
{
	var getquote=document.frmQuotes.txtQuotes.value;
	if (getquote=="")
	{
		document.frmQuotes.txtQuotes.value="enter company name";
	}
}

function CheckQuote()
{
	var getquote=document.frmQuotes.txtQuotes.value;
	if (getquote=="" || getquote=="enter company name")
	{
		alert('Please enter few Characters')
		document.frmQuotes.txtQuotes.focus();
		window.status='Please enter first few Characters of a company';
		return false;
	}
	else{
	document.frmQuotes.submit();
	return true;
	}
}

function chkGQuote()
{
if (document.form2.txtQuotes.value=="")
	{
		alert("Enter Script Name or Code !");
		document.form2.txtQuotes.focus();
		return false;
	} 
}

function ShowPage()
{
	var opt;
	opt=document.frmPriceAnal.Opt.value;
	location.href=opt;
	 
}

function BSE52HighLow(){
option=document.frmPriceAnal.Opt.value;
switch (option){ 
	case 'A' : 
		document.location= "Bse52HighLow.asp?Fld=A&FldG=R&Exchg=BSE&id=15"
	break; 
	case 'B' : 
		document.location="Bse52HighLow.asp?Fld=B&FldG=R&Exchg=BSE&id=15"
	break; 
	
	case 'T' : 
		document.location= "Bse52HighLow.asp?Fld=T&FldG=R&Exchg=BSE&id=15"
	break; 
	case 'Z' : 
		document.location= "Bse52HighLow.asp?Fld=Z&FldG=R&Exchg=BSE&id=15"
	break; 
	case 'ALL' : 
		document.location= "Bse52HighLow.asp?Fld=ALL&FldG=R&Exchg=BSE&id=15"
	break;
} 
}