// JavaScript Document
//Hide Show popup window
function hideLayer(whichLayer) {

if (document.getElementById) {
// this is the way the standards work
document.getElementById(whichLayer).style.visibility = "hidden";
}
else if (document.all) {
// this is the way old msie versions work
document.all[whichlayer].style.visibility = "hidden";
}
else if (document.layers) {
// this is the way nn4 works
document.layers[whichLayer].visibility = "hidden";
}

}

function showLayer(whichLayer) {

if (document.getElementById) {
// this is the way the standards work
document.getElementById(whichLayer).style.visibility = "visible";
}
else if (document.all) {
// this is the way old msie versions work
document.all[whichlayer].style.visibility = "visible";
}
else if (document.layers) {
// this is the way nn4 works
document.layers[whichLayer].visibility = "visible";
}

}

function handleClick(whichClick) {

if (whichClick == "hide it") {
// then the user wants to hide the layer
hideLayer("vcpopup");

}
else if (whichClick == "show it") {
// then the user wants to show the layer
showLayer("vcpopup");
}

}

  var WinNum;
  
  function neues_popup_definieren(url,name,breit,hoch,scroll,menubar) {
      var fname = name+WinNum;

    fenster = window.open(url,fname,'width='+breit+',height='+hoch+',toolbar=no,location=no,directories=no,status=no,menubar='+menubar+',scrollbars='+scroll+',resizable=yes,copyhistory=yes');
	if (WinNum==0) { WinNum=1; } else { WinNum=0; }

    if (typeof fenster != 'undefined') { fenster.focus(); }
  }

  function pop_up(url,name,breit,hoch,scroll,menubar) {

    if (typeof fenster == 'undefined' || fenster.closed) {
      neues_popup_definieren(url,name,breit,hoch,scroll,menubar);
    } else {
        fenster.close();
        neues_popup_definieren(url,name,breit,hoch,scroll,menubar);
    }
  }
	
function pop_up_name(url,name,breit,hoch,scroll,menubar)
{
fenster=window.open(url,name,'width='+breit+',height='+hoch+',toolbar=no,location=no,directories=no,status=no,menubar='+menubar+',scrollbars='+scroll+',resizable=yes,copyhistory=yes');
fenster.focus();
}

function launchFull(address)
	{
	window.open(address, 'assistant', 'fullscreen=1, left=0, top=0, menubar=no, resizable=no, status=no, scrollbars=no'); 
	}







