



function load_results()
{
	try
	{
		if(typeof(SpeedCtrl.mVersion) == "undefined")
		{
			location.href="activexdisabled.htm"
			return;
		}
	}
	catch(exception) 
	{
		location.href="activexdisabled.htm"
		return;
	}
	
	document.val.version.value = SpeedCtrl.mVersion
}

function getVersion()
{
	document.write('Version ');
	document.write(document.val.version.value);
}

function Print()
{	
	//javascript:window.print();
	SpeedCtrl.Print();
}

function Save()
{
	SpeedCtrl.Save();
}

function OnPing()
{
	var val = PingHost.value;
	
	if(val == "")
	{
		alert('you must enter a hostname before we can process command');
		return
	}
	
	//wait.SetBusy()
	SpeedCtrl.PingHost(val)
}

function OnFTP()
{
	//wait.SetBusy()
	if(select.value == "1MB")
		SpeedCtrl.FTPSingNet("test1.exe",1012510)
	else
		SpeedCtrl.FTPSingNet("wmsetup.exe",2742001)


}

function OnTrace()
{
	var val = TraceHost.value;
	
	if(val == "")
	{
		alert('you must enter a hostname before we can process command');
		return
	}
	
	//wait.SetBusy()
	SpeedCtrl.TraceHost(val)
}

function OnRes()
{
	//wait.SetBusy()
	SpeedCtrl.ResHost()
}

function ResetCursor()
{
	//wait.SetNormal()
}

function OnViewFTP()
{
	SpeedCtrl.OnViewFTP()
}

function OnViewPing()
{
	SpeedCtrl.OnViewPing()
}

function OnViewTrace()
{
	SpeedCtrl.OnViewTrace()
}

function OnIPConfig()
{
	var val = IPConfig.value;
	SpeedCtrl.OnIPConfig(val)
}

function OnViewIPConfig()
{
	SpeedCtrl.OnViewIPConfig()
}

function OnCompleted(x)
{
	if(x == 0)
	{
		PingOut.value = SpeedCtrl.GetPingResult();
	}
	
	if(x == 3)
	{
		FTPOut.value = SpeedCtrl.GetFTPResult();
	}
	
	if(x == 4)
	{
		IPConfigOut.value = SpeedCtrl.GetIPConfigResult();
	}
}