﻿// JScript File

function toggle( group, index, i, anchor_a )
{
	var list = [];

	var a=i-1;
	while(a>0)
	{
		onClear('a'+a);
		a--;
	}
	onSet(anchor_a);

	while(i>1)
	{
		var q = document.getElementById( group + (i-1) );
		
		if( i == index )
		{
			q.className = "visible";
		}
		else
		{
			q.className = "hidden";
			document.getElementById("div12").className="hidden";
		}
		
		i--;
	}
}

function onClear(a)
{
	document.getElementById(a).style.display="block";
}
function onSet(a)
{
	document.getElementById(a).style.display="none";
}

function showPDF()
{
	document.getElementById("div12").className="visible";
	document.getElementById("div2").className="hidden";
}

function openwindow(href)
{
window.open(href,"smallwindow","width=395,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=no")
}