var isNS = false;
var isIE = false;
var isW3C = false;

if (navigator.appName.indexOf('Netscape')>-1) {isNS=true; isIE=false; isW3C=false;}
if (document.getElementById) {isNS=false; isIE=false; isW3C=true;}
if (document.all) {isNS=false; isIE=true; isW3C=false;}

function zl_lref(l)
{
	if (isIE) return document.all[l];
	if (isW3C) return document.getElementById(l);
}

function changeStyle(id,styleName)
{
	zl_lref(id).className = styleName;
}

function changeImg(id,src) {
	zl_lref(id).src = src;
}

function changeContent(obj,content)
{
	zl_lref(obj).innerHTML=content;
}

function changeValue(obj,content)
{
	zl_lref(obj).value=content;
}

function hideBlock(id)
{
	zl_lref(id).style.display = 'none';
}

function showBlock(id)
{
	zl_lref(id).style.display = 'block';
}

function hideContent(id)
{
	zl_lref(id).style.visibility = 'hidden';
}

function showContent(id)
{
	zl_lref(id).style.visibility = 'visible';
}

function hideSRub(currentItem)
{
	for(var i=0; i<tabItem.length; i++)
	{
		if(tabItem[i] != currentItem) hideContent(tabItem[i]);
	}
}

function popUp(src,name,x,y,w,h)
{
	w = window.open(src,name,"left="+x+",top="+y+",height="+h+",width="+w+",scrollbars=0,status=0,location=0,menubar=0,resizable=0");
	w.focus();
}

function popUpScroll(src,name,x,y,w,h)
{
	w = window.open(src,name,"left="+x+",top="+y+",height="+h+",width="+w+",scrollbars=1,status=0,location=0,menubar=0,resizable=0");
	w.focus();
}
