function box_switch(aktiv, passiv){
		var obj = MM_findObj(aktiv);
		obj.style.display = 'block';

		var obj = MM_findObj(passiv);
		obj.style.display = 'none';
}
	
function checkinterest(){
	var obj = MM_findObj('intzell');
	var obj2 = MM_findObj('intzell2');
	var obj3 = MM_findObj('proinfotable');
	if(document.profil.nl_setting[1].checked==true){
		obj.style.display = 'none';
		obj2.style.display = 'none';
		obj3.style.display = 'none';
		document.profil.proinfo.checked=false;
	}else{
		obj.style.display = 'block';
		obj2.style.display = 'block';
		checktypereg();
	}
}

function checktypereg(){
	var obj = MM_findObj('proinfotable');
	if(document.profil.typereg[0].checked==true){
		obj.style.display = 'block';
		document.profil.proinfo.checked=true;
	}else{
		obj.style.display = 'none';
		document.profil.proinfo.checked=false;
	}
}

function check_login() {
		var status = 0

		if ((document.login.user.value.length=="0") || (document.login.user.value=="Username missing!")) {
		document.login.user.style.backgroundColor = "#dadad8";
		document.login.user.value = "Username missing!";
		status = 1;
		}

		if ((document.login.pass.value.length=="0") || (document.login.pass.value=="Email  missing!")) {
		document.login.pass.style.backgroundColor = "#dadad8";
		document.login.pass.value = "missing";
		status = 1;
		}

	return !status;
	}

function check_mail() {
		var status = 0

		if ((document.login.user.value.length=="0") || (document.login.user.value=="Username missing!")) {
		document.login.user.style.backgroundColor = "#dadad8";
		document.login.user.value = "Username missing!";
		status = 1;
		}

	return !status;
	}
	
	function check_login_mail() {
		var status = 0

		if ((document.pwd.email.value.length=="0") || (document.pwd.email.value=="#")) {
		document.pwd.email.style.backgroundColor = "#dadad8";
		status = 1;
		}


	return !status;
	}

	function setFirst_login(strField) {
		document.login[strField].select()
		document.login[strField].style.backgroundColor = "#FFFFFF";
		document.login[strField].style.borderColor = "#666666";

	}

	function setFirst_profil(strField) {
		document.profil[strField].select()
		document.profil[strField].style.backgroundColor = "#FFFFFF";
	}

	function setMenue_profil(strField) {
		document.profil[strField].style.backgroundColor = "#FFFFFF";
	}

	function check_user() {
		var status = 0

		if ((document.profil.firstname.value.length=="0") || (document.profil.firstname.value=="Firstname missing!")) {
		document.profil.firstname.style.backgroundColor = "#dadad8";
		document.profil.firstname.value = "Firstname missing!";
		status = 1;
		}
		
		if ((document.profil.surname.value.length=="0") || (document.profil.surname.value=="Surname missing!")) {
		document.profil.surname.style.backgroundColor = "#dadad8";
		document.profil.surname.value = "Surname missing!";
		status = 1;
		}
		
		if (document.profil.country.value.length=="0") {
		document.profil.country.style.backgroundColor = "#dadad8";
		status = 1;
		}
		
		if ((document.profil.email.value.length=="0") || (document.profil.email.value=="E-mail missing!")) {
		document.profil.email.style.backgroundColor = "#dadad8";
		document.profil.email.value = "E-mail missing!";
		status = 1;
		}
		
		if ((document.profil.password.value.length=="0") || (document.profil.password.value=="Missing!")) {
		document.profil.password.style.backgroundColor = "#dadad8";
		document.profil.password.value = "Missing!";
		status = 1;
		}
		
		if ((document.profil.password_confirm.value.length=="0") || (document.profil.password_confirm.value=="Missing!")) {
		document.profil.password_confirm.style.backgroundColor = "#dadad8";
		document.profil.password_confirm.value = "Missing!";
		status = 1;
		}
		
		if (document.profil.password_confirm.value!=document.profil.password.value) {
		document.profil.password_confirm.style.backgroundColor = "#dadad8";
		document.profil.password_confirm.value = "Missing!";
		document.profil.password.style.backgroundColor = "#dadad8";
		document.profil.password.value = "Missing!";
		status = 1;
		}

		
		if ((document.profil.adress.value.length=="0") || (document.profil.adress.value=="Street missing!")) {
		document.profil.adress.style.backgroundColor = "#dadad8";
		document.profil.adress.value = "Street missing!";
		status = 1;
		}
		
		if (document.profil.yyyy.value=="yyyy") {
		document.profil.yyyy.style.backgroundColor = "#dadad8";
		status = 1;
		}
		
		if ((document.profil.zip.value.length=="0") || (document.profil.zip.value=="Zip missing!")) {
		document.profil.zip.style.backgroundColor = "#dadad8";
		document.profil.zip.value = "Zip missing!";
		status = 1;
		}
		
		if ((document.profil.city.value.length=="0") || (document.profil.city.value=="City missing!")) {
		document.profil.city.style.backgroundColor = "#dadad8";
		document.profil.city.value = "City missing!";
		status = 1;
		}
		
		if ((document.profil.phone.value.length=="0") || (document.profil.phone.value=="Phone missing!")) {
		document.profil.phone.style.backgroundColor = "#dadad8";
		document.profil.phone.value = "Phone missing!";
		status = 1;
		}
			
		if ((document.profil.fax.value.length=="0") || (document.profil.fax.value=="Fax missing!")) {
		document.profil.fax.style.backgroundColor = "#dadad8";
		document.profil.fax.value = "Fax missing!";
		status = 1;
		}
		
		if ((document.profil.company.value.length=="0") || (document.profil.company.value=="Company missing!")) {
		document.profil.company.style.backgroundColor = "#dadad8";
		document.profil.company.value = "Company missing!";
		status = 1;
		}
		
		if ((document.profil.media_title.value.length=="0") || (document.profil.media_title.value=="Media title missing!")) {
		document.profil.media_title.style.backgroundColor = "#dadad8";
		document.profil.media_title.value = "Media title missing!";
		status = 1;
		}

		if ((document.profil.media_type.value.length=="0") || (document.profil.media_type.value=="Media type missing!")) {
		document.profil.media_type.style.backgroundColor = "#dadad8";
		document.profil.media_type.value = "Media type missing!";
		status = 1;
		}
		if((document.profil.nl_setting[0].checked==true) && (document.profil.offroad.checked==false) && (document.profil.street.checked==false) && (document.profil.us_racing.checked==false)){
			alert('If you want to receive our newsletter at least one topic must be chosen');
			status = 1;
		}
	return !status;
	}
	
	function setFirst_contact(strField) {
		document.contact[strField].select()
	}
