function checkForm()	{

	var strForm = document.anmalan_form;
	var strError = "";

	if (strForm.namn.value == "")	{
		strError = strError + "Du måste fylla i namn.\n";
	}
	if (strForm.org_foretag.value == "")	{
		strError = strError + "Du måste fylla i organisation/företag.\n";
	}
	if (strForm.adress.value == "")	{
		strError = strError + "Du måste fylla i adress.\n";
	}
	if (strForm.postnr_ort.value == "")	{
		strError = strError + "Du måste fylla i postadress.\n";
	}
	if (strForm.telefon.value == "")	{
		strError = strError + "Du måste fylla i telefon.\n";
	}
	if (strForm.epost.value == "")	{
		strError = strError + "Du måste fylla i e-postadress.\n";
	}
	else	{
		//Kontrollera syntax för email
		var i;
		var s_email = new String(strForm.epost.value);
		i = s_email.indexOf("@");
		if( i == -1 ) {
			strError = strError + "E-postadress har fel syntax.\nExempel: namn@carelink.se.\n";
		}
		else	{
			i = s_email.indexOf(".", i );
			if( i == -1 ) {
				strError = strError + "E-postadress har fel syntax.\nExempel: namn@carelink.se.\n";
			}
		}
	}

	if(strForm.notes.value != "")	{
		if(strForm.notes.value.length > 500)	{
			strError = strError + "Meddelandet får endast innehålla 500 tecken.\n";
		}
	}

	if (strError != "")	{
		alert(strError);
	}
	else	{
		strForm.submit();
	}

}