function popup(URL, width, height) {
	var left, top, id;

	if (screen.width) {
		left = screen.width/2-width/2;
		top= screen.height/2-height/2;
	}

	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width="+width+",height="+height+",left="+left+",top="+top+"');");
}


/** NAJKI START **/
function $(id) {
	return document.getElementById(id);
}

function newsletter_check () {
	if ( $('email').value == '' ) {
		alert('Bitte um Angabe Ihrer E-Mailadresse');
		return false;
	}
	else if ( ($('category1').checked==true) || ($('category2').checked==true) || ($('category3').checked==true) || ($('category4').checked==true) || ($('category5').checked==true) || ($('category6').checked==true) || ($('category7').checked==true) )
		return true;
	else {
		$('categories').className = 'show';
		alert('Bitte eine Newsletter-Kategorie auswählen');
		return false;
	}
}

function showhide_categories () {
	if ( $('categories') ) {
		if ( $('categories').className == 'hide' )
			$('categories').className = 'show';
		else
			$('categories').className = 'hide';
	}
}
/** NAJKI END **/