function tradetop_load()
{
	//return;
	tradetop = document.frames['iframe_dg_top'];
	//alert(tradetop);
	if(tradetop.document.readyState=='complete')
	{
		tradetopLoad = true;
	}
	else
	{
		tradetopLoad = false;
	}
	if(tradetopLoad&&bottomLoad&&middleLoad)
	{
		
		GetSysSet();
		GetTimeComparetoServer();
		showActiveExpect();
		FirstLoadTouzhuExpect = true;
		
		SelectTouzhuExpectType(1);
		
	}
}
function todayopencode_load()
{
	//return;
	todayopen = document.frames['iframe_todayopencode'];
	if(todayopen.document.readyState=='complete')
	{
		ShowTodayOpenCode();
		//f_frameStyleResize(todayopen);
	}
}

function middle_load()
{
	//return;
	middle = document.frames['iframe_dg'];
	//alert(middle.document.readyState);
	if(middle.document.readyState=='complete')
	{
		middleLoad = true;
		f_frameStyleResize(middle);
	}
	else
	{
		middleLoad = false;
	}
	if(loginLoad&&bottomLoad&&middleLoad)
	{
	//	SetCostHTML();
	}
	if(tradetopLoad&&bottomLoad&&middleLoad)
	{
		GetSysSet();
		GetTimeComparetoServer();
		showActiveExpect();
		FirstLoadTouzhuExpect = true;
		//var TouzhuExpectType=topindex.document.all("TouzhuExpectType").value;
		SelectTouzhuExpectType(1);
	}
}
function bottom_load()
{
	//return;
	bottom = document.frames['iframe_dg_bottom'];

	if(bottom.document.readyState=='complete')
	{
		bottomLoad = true;
		//f_frameStyleResize(bottom);
	}
	else
	{
		bottomLoad = false;
	}
	if(loginLoad&&bottomLoad&&middleLoad)
	{
		SetCostHTML();
	}
	if(tradetopLoad&&bottomLoad&&middleLoad)
	{
		GetSysSet();
		GetTimeComparetoServer();
		showActiveExpect();
		FirstLoadTouzhuExpect = true;
		//var TouzhuExpectType=topindex.document.all("TouzhuExpectType").value;
		SelectTouzhuExpectType(1);
	}
}
function touzhu_load()
{
	//return;
	touzhu = document.frames['iframe_mytouzhu'];
	if(touzhu.document.readyState=='complete')
	{
		touzhuLoad = true;
		
	}
	else
	{
		touzhuLoad = false;
	}
	if(loginLoad&&touzhuLoad&&LoadTouzhuTimes==0)
	{
		LoadTouzhuTimes++;
		touzhu.document.location.href = "/b_trade/ssc/LastTouzhu.asp";
	}
		
}
