// JavaScript Document
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
  return false;
}

function popup(W,H,url)
{
	if(screen.width <= W || screen.height <= H)
	{
		location.href = alt;
	}else{
		splashWin = window.open(url,"","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+W+",height="+H);
		splashWin.moveTo((screen.availWidth-W)*0.5,(screen.availHeight-H)*0.5);
		splashWin.focus();
	}
}

function checkAnmeldung(form) {
	
	if(!$('check_agb').checked) {
		alert("Sie müssend die AGB's bestätigen um sich anzumelden!");
		return;
	}
	var error = '';
	if(!$('form_male').checked && !$('form_female').checked ) error += 'Geschlecht, ';
	if($('form_vorname').value == "") error += 'Vorname, ';
	if($('form_name').value == "" ) error += 'Name, ';
	if($('form_firma').value == "") error += 'Firma, ';
	if($('form_adresse').value == "") error += 'Adresse, ';
	if($('form_plz').value == "") error += 'PLZ, ';
	if($('form_ort').value == "") error += 'Ort, ';
	if($('form_land').value == "") error += 'Land, ';
	if($('form_email').value == "") error += 'E-Mail, ';
	if($('form_telefon').value == "") error += 'Telefon, ';
	var ichbin = Form.getInputs(form,'radio','GroupSel[]').find(function(radio) { return radio.checked; }).value;
	if(ichbin == 15 && ($('form_ichbin_text').value == "")) error += 'Ich bin (Sonstiges), ';
	if(error != "") {
		alert("Pflichtfelder vergessen: " + error.substring(0,(error.length-2)));
		return;
	} else {
		form.submit();	
	}
}