var resize_timeout       = false;
var resize_correction   = 120;
var sticky_correction   = 40;
var last_height              = 0;

function resize_do(){	
	obi = document.getElementById('content');

	if(document.all){
             var x = ( document.compatMode == "CSS1Compat" ) ? document.documentElement.clientHeight  : document.body.clientHeight ;
	}
	else{
	     var x = window.innerHeight;
	}

         if(x == last_height){ 
               return;
        }

	obi.style.height = '0px';        
	var h = x  -   resize_correction;	
	obi.style.height = h + 'px';

        //sticky bottom
        obi = document.getElementById('stickybottom');
        if(obi){
             var h = parseInt(obi.style.height);
             var t = x - h - sticky_correction;
             obi.style.top = t + 'px';
        }

}

function init_resize(){
        if(resize_timeout){
             window.clearTimeout( resize_timeout );
        }
        resize_timeout = window.setTimeout( 'resize_do()', 20 );
}

function emptySearch(){
        obi = document.getElementById('q');
         if(obi.value == 'Suche'){
                 obi.value  = '';
         }
}

function sicher(){
     return confirm('Sind Sie sicher?');
}



function bb(obj){

}




