function javaCheck()
{
	if (navigator.javaEnabled() != true)
	{
		window.location = "/missingres.html";
	}
}

function newwindow(where) 
{ 
var jop = location.hostname;
window.open('http://' + jop + '/hjaelp.html#C' + where,'','width=520,height=360,resizable=no, toolbar=yes, scrollbars=YES, menubar=no, location=no,status=no'); 
} 

function newwindowHigh(where) 
{ 
var jop = location.hostname;
//window.open('http://' + jop + '/' + where + '_high_all.inc','','width=280,height=360,left=100,resizable=no, toolbar=no, scrollbars=YES, menubar=no, location=no,status=no'); 
window.open('http://' + jop + '/highscore.php?dici=' + where,'','width=280,height=410,left=100,resizable=no, toolbar=no, scrollbars=YES, menubar=no, location=no,status=no'); 
} 


function focus(field)
{
	if(document.forms[0])
	{
		document.forms.theForm[field].focus();
	}
}

function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{
    if(document.layers)	   //NN4+
    {
       document.layers[szDivID].visibility = iState ? "show" : "hide";
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
        var obj = document.getElementById(szDivID);
        obj.style.visibility = iState ? "visible" : "hidden";
    }
    else if(document.all)	// IE 4
    {
        document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
    }
}
