
function openWin(where, width, height, name, resizable, scrollbars){
	var name = (typeof name == 'undefined') ? ('popup') : (name);
	var posx = screen.width / 2 - width / 2;
	var posy = screen.height / 2 - height / 2;
	var propsZ = (document.all) ? ('top=' + posy + ',left=' + posx) : ('screenX=' + posx + ',screenY=' + posy);
	props = 'width=' + width + ',height=' + height + ',resizable=' + resizable + ',scrollbars=' + scrollbars + ',' + propsZ;

	newWin = window.open('', name, props);
    newWin.location.href = where;
}

function openPopup(where, name, resizable, scrollbars) {
	openWin(where, 600, 470, name, resizable, scrollbars);
}

function check() {
	if(document.login.nickname.value=="") {
		alert("Bitte geben Sie zum Login Ihren Nickname, bzw. beim\nersten Login Ihre Email-Adresse an.");
		document.login.nickname.focus();
		return false;
	}
	if(document.login.passwort.value=="") {
		alert("Bitte geben Sie zum Login Ihr persönliches Kennwort\nbzw. beim ersten Login Ihren Aktivierungscode an.");
		document.login.passwort.focus();
		return false;
	}
	document.login.submit();
}

function initAxroi() {
	var ref   = escape(document.referrer)+" ";
	var entry = escape(unescape(location.href));
	document.write( '<' + 'script language="javascript" src="http://www.direct-date.de/axroi/script.php?ref=' + ref + '&entry=' + entry+ '"><' + '/script>' );
}

