var HelpStatus = 0;
var LinksStatus = 1;

var expDays = 5000;
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));


var HelpCookie = document.cookie;
var HelpValue = HelpCookie.indexOf("showhelp=")
HelpValue = HelpCookie.indexOf("=",HelpValue)+1
var HelpValueEnd = HelpCookie.indexOf(";",HelpValue);
HelpValue = unescape(HelpCookie.substring(HelpValue,HelpValueEnd))
HelpStatus = HelpValue 

var LinksCookie = document.cookie;
var LinkValue = LinksCookie.indexOf("showlinks=")
LinkValue = LinksCookie.indexOf("=",LinkValue)+1
var LinkValueEnd = LinksCookie.indexOf(";",LinkValue);
LinkValue = unescape(LinksCookie.substring(LinkValue,LinkValueEnd))
LinksStatus = LinkValue

function hideQHelp(which)
{
	which.style.display="none";
}
function showQHelp(which)
{
	which.style.display="";
}
function hideshowQHelp(which,act)
	{
	if (!document.getElementById)
		return
		
		if (which.style.display=="")
			{
				which.style.display="none"
				if(act == 'qhelp')
				{
					HelpStatus = 0;
					document.cookie = "showhelp=" + HelpStatus + "; path=/; expires=" + exp.toGMTString();
				}
				else
				{
					LinksStatus = 0;
					document.cookie = "showlinks=" + LinksStatus + "; path=/; expires=" + exp.toGMTString();
				}			
			}	
		else
			{
				which.style.display=""
				if(act == 'qhelp')
				{
					HelpStatus = 1;
					document.cookie = "showhelp=" + HelpStatus + "; path=/; expires=" + exp.toGMTString();
				}
				else
				{
					LinksStatus = 1;
					document.cookie = "showlinks=" + LinksStatus + "; path=/; expires=" + exp.toGMTString();
				}
			}
	}

function hide(which)
	{
		if (!document.getElementById)
		{
			return
		}
		else		
		{
			which.style.display="none"
		}
	}
function show(which)
	{
		if (!document.getElementById)
		{
			return
		}
		else		
		{
			which.style.display=""
		}
	}
	

