
function openWin(surl)
{
	var newwin = window.open('','_blank','scrollbars=1,resizable=1,left=0,top=0,width=620,height=420');	
	newwin.location=surl;
	newwin.focus();
}

function openWinI66(surl)
{
	var newwin = window.open('','_blank','scrollbars=1,resizable=1,left=0,top=0,width=722,height=580');	
	newwin.location=surl;
	newwin.focus();
}

function select_chart(id)
{
    var item_sel;
	switch (id){
	       case 1 : item_sel = "http://fif2.e-finet.net/guotai/intraday/drawIntraday.php?code=5007&key=schaiYNzmca";
		            document.images['market_1'].src = "../images/033.gif";
					break;
		   case 2 : item_sel = "http://fif2.e-finet.net/guotai/intraday/drawIntraday.php?code=5006&key=schaiYNzmca";
		            document.images['market_1'].src = "../images/033a.gif";
					break;
		   case 3 : item_sel = "http://fif2.e-finet.net/cgi-bin/guotai/chart/intraday.cgi?key=schaiYNzmca";
		            document.images['market_1'].src = "../images/033b.gif";
					break;
	}
	
	chart.location=  item_sel;
	return true;
}
function choice_chart(id)
{
    var choice_sel;
	switch (id){
	       case 1 : choice_sel = "http://www.cc168.com.cn/cgi-bin/rhstockgraphics.dll?GetTLine?code=10000001&cx=170&cy=155&am=0";
		            document.images['market'].src = "../images/032.gif";
					break;
		   case 2 : choice_sel = "http://www.cc168.com.cn/cgi-bin/rhstockgraphics.dll?GetTLine?code=20399106&cx=170&cy=155&am=0";
		            document.images['market'].src = "../images/032a.gif";
					break;
	}
	
	pic.location=  choice_sel;
	return true;
}

function jumping()
{
	document.PageForm.submit();
	return ;
}

function gotoPage(pagenum)
{
	document.PageForm.jumpPage.value = pagenum;
	document.PageForm.submit();
	return ;
}

function initMenuItem(menuObj, value)
{
	for(i=0; i<menuObj.length; i++)
	{
		if(menuObj.options[i].value == value)
		{
			menuObj.options[i].selected = true;
			break;
		}
	}
}
function changeType(type)
{
	thatForm.reporttype.value = type;
	thatForm.submit();
}