var   	nGap = 166;
var 	ieGap = nGap;		
function getHeight(){
	if (navigator.appName!=document.all)
      {	
	  	jheight = 0;
	  	if( window.innerHeight ){
			jheight = (window.innerHeight-nGap);
		}
		else{
			jheight = (document.body.clientHeight - ieGap);
		}
		if ((jheight-50) <= 0){
			jheight = 1;
		}
		return jheight;
	}
}

function doResize(){
	document.resizer.height = getHeight();
}



//reload on resize for ie
function unic_resize(){
   //alert(document.frames['inhalt'].location.href);		  
   location.reload()
}

window.onresize = unic_resize;
		  
/*
Toggle Layer Visibility
&#169; Eddie Traversa (http://dhtmlnirvana.com/)
*/
function toggleVisibility(id, NNtype, IEtype, W3Ctype) {
		
    if (document.getElementById) {
		eval("document.getElementById(id).style.visibility = \"" + W3Ctype + "\"");
    } else {
    if (document.layers) {
		document.layers[id].visibility = NNtype;
    } else {
    if (document.all) {
		eval("document.all." + id + ".style.visibility = \"" + IEtype + "\"");
            }
        }
    }
}
		
function win_open(href, width, height){
	if (width == '' && height == '')  
	{
		printwin = window.open(href, 'print_window', 'toolbar=1,location=0,status=1,menubar=0,personalbar=0,scrollbars=1,resizable=1,screenx=50,left=50,screenY=50,top=50');
		printwin.focus();
	} 
	else
	{
		printwin = window.open(href, 'print_window', 'toolbar=1,location=0,status=1,menubar=0,personalbar=0,scrollbars=1,width=' + width + ',height=' + height + ',resizable=1,screenx=50,left=50,screenY=50,top=50')
		printwin.focus();
	}
}


function dyn_popup(theURL,winName,win_width,win_height) {
		dyn_win = open(theURL,winName,'toolbar=0,location=0,directories=0,statusbar=0,menubar=0,scrollbars=0,resizable=0,width='+win_width+',height='+win_height+',top=10,left=10');dyn_win.focus();
			}



