function checkSearchForm() {
	var field = document.getElementById("searchfield");
   	if ((field.value.length == 0) || (field.value == null)) {
      	return false;
   	} else { return true; }
}

function checkLoginForm() {
	var mail = document.getElementById("loginmail");
	var pass = document.getElementById("loginpass");
	
   	if ((mail.value.length == 0) || (mail.value == null) || (mail.defaultValue == mail.value)) {
      	return false;
   	} else {
   		return true;
   	}
}

function checkCreateForm() {
   	
	var curdate = new Date();
	var day = curdate.getDate();
	var month = curdate.getMonth()+1;
	var year = curdate.getFullYear();
	
	if(((document.getElementById('day').options[document.getElementById('day').selectedIndex].value == day && document.getElementById('month').options[document.getElementById('month').selectedIndex].value == month) && document.getElementById('year').options[document.getElementById('year').selectedIndex].value == year)) {
		alert('You need to choose an valid date'); return false;
	}
	if(document.getElementById('mail').value == "") {
		alert('You type in a mail'); return false;
	}
	if(document.getElementById('nick').value == "") {
		alert('You type in a nick'); return false;
	} 
	if(document.getElementById('pass1').value == "") {
		alert('You type in a password'); return false;
	} 
	if(document.getElementById('pass2').value == "") {
		alert('You type in a confirming password'); return false;
	}
	if(document.getElementById('realname').value == "") {
		alert('You type in your real name'); return false;
	}
	if(document.getElementById('street').value == "") {
		alert('You type in a street name'); return false;
	} 
	if(document.getElementById('street_nr').value == "") {
		alert('You type in a street nr'); return false;
	} 
	if(document.getElementById('postal').value == "") {
		alert('You type in a postal code'); return false;
	} 
	if(document.getElementById('city').value == "") {
		alert('You type in a City name'); return false;
	} 
	return true;
}

function checkForgetForm() {
   	return true;
}

function checkEditForm() {
   	return true;
}

function checkContactForm() {
   	return true;
}