/*Eingabe Elemente Style einer bei Focus und Blur*/
function behavior_input( element_id ) {
	Event.observe( element_id, 'focus', function(event) { Event.element(event).className = 'formFocus'; }	);
	Event.observe( element_id, 'blur', function(event) { Event.element(event).className = 'form'; } );
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_HideAllLayers() {
	var container = new Array ('layerA', 'layerB', 'layerC', 'layerD', 'layerE', 'layerF');
	for (var i = 0; i < 6; i++) {		
  		document.getElementById(container[i]).style.display = 'none';		
	}
}

function NewWindow(mypage,myname,w,h,scroll,pos,positionleft,positiontop)
{
        if(pos=="random"){LeftPosition=(screen.availWidth)?Math.floor(Math.random()*(screen.availWidth-w)):50;TopPosition=(screen.availHeight)?Math.floor(Math.random()*((screen.availHeight-h)-75)):50;}
        if(pos=="center"){LeftPosition=(screen.availWidth)?(screen.availWidth-w)/2:50;TopPosition=(screen.availHeight)?(screen.availHeight-h)/2:50;}
        if(pos=="default"){LeftPosition=50;TopPosition=50}
        if(typeof positionleft!="undefined" && typeof positiontop!="undefined")
        {
         LeftPosition=positionleft;
         TopPosition=positiontop;
         if(positionleft=="center"){LeftPosition=(screen.availWidth)?(screen.availWidth-w)/2:50;}
         if(positiontop=="center"){TopPosition=(screen.availHeight)?(screen.availHeight-h)/2:50;}
        }
        else if((pos!="center" && pos!="random" && pos!="default") || pos==null){LeftPosition=0;TopPosition=20}
        settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=no';
        win=window.open(mypage,myname,settings);
        //if(win.focus){win.focus();}
}



