//<!--
function szo_OpenBrWindow(theURL,winName,features) 
	{
  	SecondWin=window.open(theURL,winName,features);
	}

function setCookie(name, value, path) {
 document.cookie = name + "=" + value;
}

function getCookie(name) {
    var mycookie = document.cookie;
    mycookie = unescape(mycookie);
    cookiesplit = mycookie.split(";");
    for (i=0;i<cookiesplit.length;i++) {
        var part_of_split = cookiesplit[i];
        var find_name = part_of_split.indexOf(name);
        if (find_name!=-1) {
            var equal = part_of_split.indexOf("=") + 1;
            var value_of_split = part_of_split.substring(equal,part_of_split.length);
            return value_of_split;
        }
    }
    return 0;
};

function LayerVisible(layerid)
{
  if(document.getElementById)
  {
    document.getElementById(layerid).style.visibility="visible";
  }

  else if(document.all && !document.getElementById)
  {
    document.all[layerid].style.visibility="visible";
  }
}

function LayerHidden(layerid)
{
  if(document.getElementById)
  {
    document.getElementById(layerid).style.visibility="hidden";
  }

  else if(document.all && !document.getElementById)
  {
    document.all[layerid].style.visibility="hidden";
  }
}


function CenterWindow(selfWidth, selfHeight) {
	var ScreenWidth = screen.availWidth;
	var ScreenHeight = screen.availHeight;
	if(isNaN(ScreenWidth)==false && isNaN(ScreenHeight)==false) {
		selfX=Math.ceil((ScreenWidth-selfWidth)/2);
		selfY=Math.ceil((ScreenHeight-selfHeight)/2);
		self.moveTo(selfX,selfY);
		}
}
//-->