function setformvalue(){
document.search.stext.value="";
}
function popup( url ) {
 var F1 = window.open( url, "witexpopup", "dependent=yes,height=593,width=734,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no" );
}
function setcheckbox(form,feld,img){
if(document.getElementById(feld).value==1){
document.getElementById(feld).value=0;
document.getElementById(img).src="/imgs//bt_checkbox_unselected_988.gif";
}
else
{
document.getElementById(feld).value=1;
document.getElementById(img).src="/imgs//bt_checkbox_selected_830.gif";
}
}
var dd_MouseOut = new Array();
var dd_MouseOver = new Array();
function div_dropdown( id ) {
var element = document.getElementById( id );
if ( element ) {
var height = parseInt( element.style.height );
var maxheight = 50;
element.style.maxHeight = maxheight+"px";
if ( isNaN( height ) ) {
dd_MouseOut[ id ] = 0;
dd_MouseOver[ id ] = 0;
element.style.height = "5px";
}
height = parseInt( element.style.height );
if ( height <= 5 ) {
window.setTimeout( "dd_slideDown( '"+id+"' )", 10 );
} else {
document.getElementById('fbflyout').style.display = 'none';
window.setTimeout( "dd_slideUp( '"+id+"' )", 10 );
}
}
}
function div_mouseover( id ) {
var element = document.getElementById( id );
if ( element ) {
dd_MouseOver[ id ]++;
}
}
function div_dropup( id ) {
var element = document.getElementById( id );
if ( element ) {
window.setTimeout( "div_dropup2( '"+id+"' )", 300 );
}
return false;
}
function div_dropup2( id ) {
var element = document.getElementById( id );
if ( element ) {
dd_MouseOut[ id ]++;
if ( element.style.display == "block" && dd_MouseOut[ id ] == dd_MouseOver[ id ] ) {
dd_slideUp( id );
}
}
return false;
}
var dd_slideArray = new Array();
function dd_slideDown( id ) {
var element = document.getElementById( id );
if ( dd_slideArray[id] ) { window.clearTimeout( dd_slideArray[id] ); }
if ( element ) {
var height = parseInt( element.style.height );
var maxheight = parseInt( element.style.maxHeight );
if ( maxheight < 2 || isNaN(maxheight) ) { maxheight = parseInt( element.offsetHeight ); }
if ( maxheight < 2 || isNaN(maxheight) ) { maxheight = 50; }
if ( height < maxheight ) {
height += 2; if ( height > maxheight ) { height = maxheight; }
element.style.height = height+"px";
element.style.marginTop = parseInt( -18-height )+"px";
dd_slideArray[id] = window.setTimeout( "dd_slideDown( '"+id+"' )", 10 );
}
}
}
function dd_slideUp( id ) {
var element = document.getElementById( id );
if ( dd_slideArray[id] ) { window.clearTimeout( dd_slideArray[id] ); }
if ( element ) {
var height = parseInt( element.style.height );
var marginTop = parseInt( element.style.marginTop );
if ( height > 5 ) {
height -= 2;
element.style.height = height+"px";
element.style.marginTop = parseInt( -18-height )+"px";
dd_slideArray[id] = window.setTimeout( "dd_slideUp( '"+id+"' )", 10 );
} else {
element.style.height = "5px";
element.style.marginTop = parseInt( -18-5 )+"px";
}
}
}


