ns4 = (document.layers) ? true:false; //required for Functions to work
ie4 = (document.all) ? true:false; //required for Functions to work
ng5 = (document.getElementById) ? true:false; //required for Functions to work

function off(id) {
	if (id!="")
	{
		if (ng5) document.getElementById(id).style.visibility = "hidden";
		else if (ns4) document.id.visibility = "hide";
		else if (ie4) document.all[id].style.visibility ="hidden";
	}
	else
	{
		for (i=0;i<pages.length;i++)
		{
			if (ng5) document.getElementById(pages[i]).style.visibility = "hidden";
			else if (ns4) document.pages[i].visibility = "hide";
			else if (ie4) document.all[pages[i]].style.visibility ="hidden";
		}
	}
}

function on(id)
{
	if (ng5) document.getElementById(id).style.visibility = "visible";
	else if (ns4) document.id.visibility = "show";
	else if (ie4) document.all[id].style.visibility ="visible";
}

function chsrc(id,u)
{
	if (ng5) document.getElementById(id).src = u;
	else if (ns4) document.id.src = u;
	else if (ie4) document.all[id].src = u;
}

function chtitle(id,t)
{
	if (ng5) document.getElementById(id).innerHTML = t;
	else if (ns4) document.id.innerHTML = t;
	else if (ie4) document.all[id].innerHTML = t;
}

function show(n,m,u) // pageid / iframeid / url
{
	off('');
	on(n);
	
	if(m!='')
	{
		on('loading');
		chsrc(m,u);
	}
	return true;
}

function frameprint(f){
	parent[f].focus();
	parent[f].print();
}