function writeOS()
{
	if( navigator.userAgent.indexOf('IRIX') != -1 )
		{ var OpSys = "<b><font color=red>Irix</font></b>"; }
	else if( (navigator.userAgent.indexOf('Win') != -1) && (navigator.userAgent.indexOf('NT 5.0') != -1) )
		{ var OpSys = "<b><font color=red>Windows 2000</font></b>"; }
	else if( (navigator.userAgent.indexOf('Win') != -1) && (navigator.userAgent.indexOf('NT 5.1') != -1) )
		{ var OpSys = "Windows XP"; }
	else if( (navigator.userAgent.indexOf('Win') != -1) && (navigator.userAgent.indexOf('NT 5.2') != -1) )
		{ var OpSys = "Windows XP 64-Bit"; }
	else if( (navigator.userAgent.indexOf('Win') != -1) && (navigator.userAgent.indexOf('NT 6.0') != -1) )
		{ var OpSys = "Windows Vista"; }
	else if ((navigator.userAgent.indexOf('Win') != -1) && (navigator.userAgent.indexOf('NT 6.1') != -1))
		{ var OpSys = "Windows 7"; }
	else if ((navigator.userAgent.indexOf('Win') != -1) && (navigator.userAgent.indexOf('NT 4') != -1))
		{ var OpSys = "<b><font color=red>Windows NT 4.x</font></b>"; }
	else if( (navigator.userAgent.indexOf('Win') != -1) && (navigator.userAgent.indexOf('NT') != -1) )
		{ var OpSys = "<b><font color=red>Windows NT</font></b>"; }
	else if( (navigator.userAgent.indexOf('Win') != -1) && (navigator.userAgent.indexOf('98') != -1) )
		{ var OpSys = "<b><font color=red>Windows 98</font></b>"; }
	else if( (navigator.userAgent.indexOf('Win') != -1) && (navigator.userAgent.indexOf('ME') != -1) )
		{ var OpSys = "<b><font color=red>Windows ME</font></b>"; }
	else if( (navigator.userAgent.indexOf('Win') != -1) && (navigator.userAgent.indexOf('95') != -1) )
		{ var OpSys = "<b><font color=red>Windows 95</font></b>"; }
	else if( navigator.userAgent.indexOf('Win') != -1 )
		{ var OpSys = "<b><font color=red>Windows</font></b>"; }
	else if( navigator.userAgent.indexOf('Mac') != -1 )
		{ var OpSys = "<b><font color=red>Macintosh</font></b>"; }
	else { var OpSys = "<b><font color=red>Other</font></b>"; }
	
	document.write(OpSys);
}

function writeRes()
{
	var ScWdth = screen.width;
	var ScHght = screen.height;
	if (ScWdth < 1024 || ScHght < 768)
		document.writeln('<b><font color=red>' + ScWdth + 'x' + ScHght + '</font></b>');
	else
		document.writeln(ScWdth + 'x' + ScHght);
}

function writeCol()
{
	var Coldep = window.screen.colorDepth
	if( Coldep < 8 )
		document.write('<b><font color=red>' + Coldep + ' bit</font></b>');
	else
		document.write( Coldep + ' bit');
}

function writeCookies()
{
	var oneDay= 1*24*60*60*1000;
	var expDate = new Date();
	expDate.setTime (expDate.getTime() + oneDay);
	var cookieExpires = expDate.toGMTString();
	document.cookie = ('verifyCookie=test; expires=' + cookieExpires);
	if (document.cookie.length>0)
		document.write('Supported');
	else
		document.write('<b><font color=red>Not Supported</font></b>');
	document.cookie='verifyCookie=CLEAR; expires=Mon, 28-Jan-02 00:00:00 GMT';
}

function writeSilverlight()
{
    if (Silverlight.isInstalled("4.0"))
    {
        document.write("Supported");
        return false;
    }
    else
    {
        document.write("<b><font color=red>Not Detected</font></b>");
        return true;
    }
}

function writeIso()
{
	var IsoVer;
	var IsoLit;
	try
	{
		IsoVer = document.getElementById('ivx1').GetVersion();
		IsoLit = ('Version<br />' + IsoVer);
	}
	catch(e)
	{
		IsoLit = ('<b><font color=red>Not Detected</font></b>');
		IsoVer = (' ');
	}
	finally
	{
		document.writeln(IsoLit);
	}
	return IsoVer;
}

function writeXvlPlayer()
{
	var xvlVer;
	var xvlLit;
	try
	{
		xvlVer = document.getElementById('xvl_player').appVersion;
		if( xvlVer != undefined )
		{
			xvlLit = ('Version '+xvlVer);
		}
		else
		{
			xvlVer = 0;
			xvlLit = ('<b><font color=red>Not Detected</font></b>');
		}
	}
	catch(e)
	{
		xvlVer = 0;
		xvlLit = ('<b><font color=red>Not Detected</font></b>');
	}
	finally
	{
		document.writeln(xvlLit);
	}
	return xvlVer;
}

