function validate_subsform() {
	var frm=document.email_subs;
	var allesgut = true;
	var email_checkchar1=frm.email.value.indexOf("@");
	var email_checkchar2=frm.email.value.lastIndexOf(".");
	var msg = '';

	if(frm.name.value.length < 1){
		msg = msg+"You have to enter your name. Please do so.\n";
		allesgut = false;
	}
	
	if(frm.email.value.length<8 || email_checkchar1==-1 || email_checkchar2==-1 || email_checkchar2 < email_checkchar1){
		msg = msg+"The email value you entered is not a valid email. Please enter the correct email.\n";
		allesgut = false;
	}
				
	if (allesgut == false) {
		alert(msg);
		return false;
	}
}
