function jump() {
 if(document.jumpform.fach.options[document.jumpform.fach.selectedIndex].value != -1) document.jumpform.submit();
}

function ViewImage(ifile,ix,iy,ititle)
{
  var win;
  var sWidth;
  var sHeight;
  win = window.open("","imageviewer","width="+ix+",height="+iy+",menubar=no,toolbar=no");

  win.document.open();
  win.document.write("<html><head><title>"+ititle+"</title>");
  win.document.write("</head><body>");
  win.document.write('<div style="position:absolute; width:'+ix+'px; height:'+iy+'px; left:0px;top:0px">');
  win.document.write('<a href="#" onclick="self.close()"><img src='+ifile+' border="0" alt=""></a></div></body></html>');
  win.document.close();
}

function PreviewCountry (isocode)
{
  document.getElementById('CountryImg').src = './flags/' + isocode + '.gif';
}

function AdminPreviewCountry (isocode)
{
  document.getElementById('CountryImg').src = './../flags/' + isocode + '.gif';
}


function PreviewIcon (isocode)
{
  document.getElementById('IconImg').src = 'images/icons/' + isocode + '';
}

function displaynews(id)
{
  if (document.getElementById("News_" + id).style.display == 'none')
  {
	document.getElementById("News_" + id).style.display = "";
    document.getElementById("NewsImg_" + id).src = "images/collapse.gif";
 	document.getElementById("NewsImg_" + id).alt = "-";
	document.getElementById("NewsImg_" + id).title = "-";
  } else {
	document.getElementById("News_" + id).style.display = "none";
    document.getElementById("NewsImg_" + id).src = "images/expand.gif";
	document.getElementById("NewsImg_" + id).alt = "+";
	document.getElementById("NewsImg_" + id).alt = "+";
  }
}

function toggle_navi(id)
{
  if (document.getElementById("Navi_" + id).style.display == "none")
  {
    document.getElementById("Navi_" + id).style.display = "";
    document.getElementById("NaviImg_" + id).src = "./images/cos_dot_collapse.jpg";
    document.getElementById("NaviImg_" + id).alt = "-";
    document.getElementById("NaviImg_" + id).title = "-";
    document.cookie = "Navi_" + id + "=1;path=/;0";
  } else {
    document.getElementById("Navi_" + id).style.display = "none";
    document.getElementById("NaviImg_" + id).src = "./images/cos_dot_expand.jpg";
    document.getElementById("NaviImg_" + id).alt = "+";
    document.getElementById("NaviImg_" + id).title = "+";
    document.cookie = "Navi_" + id + "=0;path=/;0";
  }
}
