<!--// JavaScript Document

var origcontent;
var syntax;

if(document.getElementById)
{
	syntax="document.getElementById";
}else if(document.all){
	syntax="document.all";
}else if(document.layers){
	syntax="document.layers";
}

function toggleshow(x)
{
	var thisobj;
	thisobj=eval(syntax+"('"+x+"')");
	if(thisobj.style.display=="none")
	{	
		thisobj.style.display="inline";
	}else{
		thisobj.style.display="none";
	}
}	

function toggleindicator()
{
	var thisobj;
	thisobj=eval(syntax+"('indicator')");
	if(thisobj.innerHTML=="[-]")
	{	
		thisobj.innerHTML="[+]";
	}else{
		thisobj.innerHTML="[-]";
	}
}	
/*
function showhide(x, status)
{
	var thisobj;
	thisobj=eval(syntax+"('"+x+"')");
	if(status)
	{	
		thisobj.style.display="inline";
	}else{
		thisobj.style.display="none";
	}
}	*/
	
function checkloginform()
{
	if(document.loginform.username=="")
	{
		alert("Please enter your username to access this portion of the website.");
		document.loginform.username.focus();
		return false;
	}else if(document.loginform.password==""){
		alert("Please enter your password to access this portion of the website.");
		document.loginform.password.focus();
		return false;
	}else{
		return true;
	}
}

function checksearchform()
{
	if(document.searchform.searchstring=="")
	{
		alert("Please enter at least one keyword to be used for the search.");
		document.searchform.searchstring.focus();
		return false;
	}else{
		return true;
	}
}

function winpop(URL, winname, features)
{
	var objwin;
	
	if(features!="")
	{
		objwin=window.open(URL,winname,features);
	}else{
		objwin=window.open(URL,winname);
	}
	objwin.focus();
}

function nonefound()
{
	alert("The page you have requested cannot be found.\n\r We have therefore redirected you to the main page of this website.");
}

function showsub(id,state)
{
	var subobj=document.getElementById(id);
	var tail=(state==0 ? "_h" : "");
	
	subobj.className="floatmenu"+tail;
}
