	//------------------popups
	function openWindow (nameurl, namewindow, width, height){

    x = (640 - width)/2, y = (480 - height)/2;
    
    if (screen) {
        y = (screen.availHeight - height)/2;
        x = (screen.availWidth - width)/2;
    }
	
    var prevwin = window.open(nameurl,namewindow,'width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+',scrollbars=no');
    prevwin.focus();
	}
function openWindow2 (nameurl, namewindow, width, height){

    x = (640 - width)/2, y = (480 - height)/2;
    
    if (screen) {
        y = (screen.availHeight - height)/2;
        x = (screen.availWidth - width)/2;
    }
	
    var prevwin = window.open(nameurl,namewindow,'width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+',scrollbars=yes');
    prevwin.focus();
	}
	function subscribe()
	{
		if(document.newsletter.email.value=="E-MAIL") {
		alert("'E-MAIL' ist bestimmt nicht deine E-Mail Adresse...");
		return;
	}
	if(document.newsletter.an[0].checked == 1)
	{
		//spamtxt = "yes";
		openWindow2("http://newsletter.phenomedia.de/subscribe.php?regDomainID=5&eMail="+document.newsletter.email.value, "newsletter", 1000, 700);
	} else {
		//spamtxt = "no";
		openWindow2("http://newsletter.phenomedia.de/unsubscribe.php?eMail="+document.newsletter.email.value, "newsletter", 1000, 700 );
	}	
	
	document.newsletter.email.value="E-MAIL";
	}
	
	
