
//_________________WINDOW__________________________________________________________

function ZOOM(path) {
	var winl = (screen.width - 600) / 2;
	var wint = (screen.height - 350) / 2;
	winprops = "toolbar=no,width=600,height=350,directories=no,status=yes,scrollbars=yes,resizable=yes,menubar=no,top="+wint+",left="+winl;
	win = window.open(path, 'wip', winprops);
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
} // end of function

function ZOOM2(path) {
	var winl = (screen.width - 700) / 2;
	var wint = (screen.height - 500) / 2;
	winprops = "toolbar=no,width=700,height=500,directories=no,status=yes,scrollbars=yes,resizable=yes,menubar=no,top="+wint+",left="+winl;
	win = window.open(path, 'wip', winprops);
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
} // end of function

function ZOOM3(path) {
	var winl = (screen.width - 600) / 2;
	var wint = (screen.height - 500) / 2;
	winprops = "toolbar=no,width=600,height=500,directories=no,status=yes,scrollbars=yes,resizable=yes,menubar=no,top="+wint+",left="+winl;
	win = window.open(path, 'wip', winprops);
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
} // end of function

function ZOOM4(path) {
	var winl = (screen.width - 800) / 2;
	var wint = (screen.height - 600) / 2;
	winprops = "toolbar=no,width=800,height=600,directories=no,status=yes,scrollbars=yes,resizable=yes,menubar=no,top="+wint+",left="+winl;
	win = window.open(path, 'wip', winprops);
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	win.opener=self;
} // end of function


function delete_data(path) {			
		lDelete = confirm('Drücken Sie OK um den Datensatz zu löschen. \nACHTUNG: Diese Aktion kann nicht rückgängig gemacht werden.');	
			if (lDelete) {									
				ZOOM(path);	
			} // end if									
	} // end function	
	
function check_register() {			
		if (document.register.readme.checked == false) {
			alert ("Bitte lesen Sie Bedingungen durch.\nWenn Sie diese akzeptieren, aktivieren Sie das Kästchen.");
			return false;
		} else {
			return true;
		} // end if									
	} // end function	

function check_login(myForm) {
		if ( (myForm.login.value=="") || (myForm.pwd.value=="") ) {
			alert ("Bitte tragen Sie Ihre ID (Ihre E-Mail-Adresse)\nund Ihr Passwort ein.");
			return false;
		} else {
			return true;
		} // end if									
	} // end function		

