//框架内容跳转(所以框架的最外层)
function opefc61(from,stockcode)
{
	if(from=="1")
	{
		parent.location.href='fc61.asp?code='+stockcode;
	}
	else
	{
		parent.location.href='fc61.asp?code='+stockcode+'&step=72';
	}
}

//PingjiPaimingTable.ascx 表格用
function frameOpenfc61(stockcode)
{
		parent.location.href='fc61.asp?code='+stockcode;
}

//Indexdetail.asp 表格用
function DuoframeOpenfc61(stockcode)
{
		parent.parent.location.href='fc61.asp?code='+stockcode;
}

//弹出K线图页面
function OpenKline(id)
{
		window.open ('topview/Stockklinesmall.asp?stockcode='+ id,'newwindow','width=400,height=300,top=400,left=300,toolbar=no,menubar=no,scrollbars=yes, titlebar=no,z-look=yes,resizable=no,location=no, status=no') 
}

//
function Open6j1(id)
{
	parent.location.href="fc61.asp?code=" + id;
}

//点击跳转搜索页面 fc61.asp
function btnSearch_Click(key)
{
 var txt = document.getElementById("txtKeyWord").value; 
 var   obj   =   document.getElementsByName('rbl');   
	if(obj[0].checked)
	{
		window.location.href='fc61.asp?code=' + txt;
	}
	else
	{
		window.location.href='Search.aspx?tableid=-1&pu=' + escape(txt);
	}
}

//软件首页查询跳转 fc61.asp
function btnSearch_defaultnew4(key)
{
 var txt = document.getElementById("txtKeyWord").value; 
 //var   obj   =   document.getElementsByName('rbl');   
	//if(obj[0].checked)
	//{
		window.location.href='fc61.asp?code=' + txt;
	//}
	//else
	//{
	//	window.location.href='Search.aspx?tableid=-1&pu=' + escape(txt);
	//}
}

//点击跳转搜索页面 61.asp
function btnSearch_61(key)
{
 var txt = document.getElementById("txtKeyWord").value; 
 var   obj   =   document.getElementsByName('rbl');   
	if(obj[0].checked)
	{
		window.location.href='61.asp?code=' + txt;
	}
	else
	{
		window.location.href='Search.aspx?tableid=-1&pu=' + escape(txt);
	}
}


 function SetCwinHeight()
 {
  var mainframe=document.getElementById("mainframe");
  if (document.getElementById)
  {
   if (mainframe && !window.opera)
   {
    if (mainframe.contentDocument && mainframe.contentDocument.body.offsetHeight)
	{
     mainframe.height = mainframe.contentDocument.body.offsetHeight;
    }
	else if(mainframe.Document && mainframe.Document.body.scrollHeight)
	{
     mainframe.height = mainframe.Document.body.scrollHeight;
    }
   }
  }
 }


