//-->Function for Button

function confirmSubmit()
{
var agree=confirm("Wollen Sie sich wirklich ausloggen?");
if (agree)
	return true ;
else
	return false ;
}


function confirmDelete()
{
var agree=confirm("Die Datei wird gelöscht! Sind Sie sicher?");
if (agree)
	return true ;
else
	return false ;
}


function Exit()
{
var agree=confirm("What do you want Sir?");
if (agree)
	return true ;
else
	return false ;
	
}
//-->End Function for Button


/* FAVORITEN ICON */
document.writeln("<link rel='icon' href='/favicon.ico'>");
document.writeln("<link rel='shortcut icon' href='/favicon.ico'>");

/* S E I T E   L A D E N */
function warten() {
if (document.getElementById) {  // DOM3 = IE5, NS6
document.getElementById('seiteladen').style.visibility = 'hidden';
}
else {
if (document.layers) {  // Netscape 4
document.seiteladen.visibility = 'hidden';
}
else {  // IE 4
document.all.seiteladen.style.visibility = 'hidden';
      }
   }
}

/* N E T S C A P E  4   R E L O A D */
function reload(init) {
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reload; }}
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reload(true);

/* P O P U P */
function tivoli(page) {
OpenWin = this.open(page, "CtrlWindow", "width=500px,height=390px,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,top=70px,left=70px;");
}

/* P O P U P */
function open_window(page) {
OpenWin = this.open(page, "CtrlWindow", "width=670px,height=330px,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,top=50px,left=150px;");
}

/* P O P U P   V O R N E */
function immervorn() {
  self.focus();
  window.setTimeout("immervorn()",100);
}

/* S E I T E   A U S D R U C K E N */
function printit() {
bV = parseInt(navigator.appVersion);
if (bV >= 4) window.print();
}

/* E M A I L */
function ghostmail(name, domain, display) {
displayed=(typeof(display)=="undefined") ? name+"@"+domain : display
document.write('<a class="info" href=mailto:' + name + '@' + domain + '>' + displayed + '</a>');
}

/* K E I N E   F E H L E R A N Z E I G E */
function clearerror() {
return true;
}
window.onerror = clearerror;

function printit(){  
if (window.print) {
    window.print() ;  
} else {
    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
    WebBrowser1.ExecWB(6, 2);
}
}
isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
NS4 = (document.layers) ? true : false;
IEmac = ((document.all)&&(isMac)) ? true : false;
IE4plus = (document.all) ? true : false;
IE4 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 4.")!=-1)) ? true : false;
IE5 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 5.")!=-1)) ? true : false;

IE6 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 6.")!=-1)) ? true : false;
ver4 = (NS4 || IE4plus) ? true : false;
NS6 = (!document.layers) && (navigator.userAgent.indexOf('Netscape')!=-1)?true:false;

IE5plus = IE5 || IE6;
IEMajor = 0;

if (IE4plus)
{
	var start = navigator.appVersion.indexOf("MSIE");
	var end = navigator.appVersion.indexOf(".",start);
	IEMajor = parseInt(navigator.appVersion.substring(start+5,end));
	IE5plus = (IEMajor>=5) ? true : false;
}
function createwindow(page,width,height,name) {
	LeftPosition = (screen.width) ? (screen.width-width)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-height)/2 : 0;
		name=window.open(page,name,'width=' + width+ ',height=' + height + ',top='+TopPosition+',left='+LeftPosition+',toolbars=no,scrolling=no,scrollbars=no');
	}
function Mini(page,width,height,name) {
	LeftPosition = (screen.width) ? (screen.width-width)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-height)/2 : 0;
		name=window.open(page,name,'width=' + width+ ',height=' + height + ',top='+TopPosition+',left='+LeftPosition+',toolbars=no,scrolling=no,scrollbars=no');
	}
	function printit(){  
if (window.print) {
    window.print() ;  
} else {
    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
    WebBrowser1.ExecWB(6, 2);
}
}

var NS = (navigator.appName == "Netscape");
var VERSION = parseInt(navigator.appVersion);
if (VERSION > 3) {
    document.write('');        
}
var win=null;
function createdwindows(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
