liveConnect = false;

function InsertApplet()
{
	strApplet = "";
	strApplet += ("<applet name='message' codebase='/kiddonet/clientScripts/' code='message.class' width='1' height='1'>");
	strApplet += ("<param name='message' value='Built-in Java is enabled.'>");
	strApplet += ("<param name='color' value='808080'>");
	strApplet += ("<em>Built-in Java is not installed / enabled.</em>");
	strApplet += ("</applet>");
	document.write(strApplet)
}
//InsertApplet();

function Init()
{
	CheckJava();
}

function CheckJava()
{

  if (document.applets.message)
  {
    var m = "Built-in Java with LiveConnect is working.";
    document.applets.message.setMessage(m);
    if (m == document.applets.message.getMessage())
        liveConnect = true;
  }

  if ( (!navigator.javaEnabled() && !(document.all)) || (!liveConnect) )
  {
  	window.status = ":-(";
	InstallJava();
  }
  else
  {
  	window.status = ":-)";
  }
}

function InstallJava()
{
	theLink = "http://www.java.com/en/download/help/";
	//top.location.href=theLink;
	var installJavaWindowHandler = window.open(theLink,'installJavaWindow','width=600,height=400,top=167,left=165,menubar,status,scrollbars,resizable,toolbar,location');
	installJavaWindowHandler.focus();
}
