function validateBest()
{
	var msg;
	var errors = "";

	if (document.form1.tittel1.value || document.form1.komp1.value || document.form1.type1.value || document.form1.prodnr1.value || document.form1.antall1.value)
	{
		if (document.form1.tittel1.value =="")
		{
	      errors += "\n"+"- Tittel må fylles ut!";
		}
		if (document.form1.antall1.value =="")
		{
	      errors += "\n"+"- Antall må fylles ut!";
		}
		if (isNaN(document.form1.antall1.value))
		{
	      errors += "\n"+"- Antall må fylles ut med tall!";
		}
	}
	if (document.form1.tittel2.value || document.form1.komp2.value || document.form1.type2.value || document.form1.prodnr2.value || document.form1.antall2.value)
	{
		if (document.form1.tittel2.value =="")
		{
	      errors += "\n"+"- Tittel må fylles ut!";
		}
		if (document.form1.antall2.value =="")
		{
	      errors += "\n"+"- Antall må fylles ut!";
		}
		if (isNaN(document.form1.antall2.value))
		{
	      errors += "\n"+"- Antall må fylles ut med tall!";
		}
	}
	if (document.form1.tittel3.value || document.form1.komp3.value || document.form1.type3.value || document.form1.prodnr3.value || document.form1.antall3.value)
	{
		if (document.form1.tittel3.value =="")
		{
	      errors += "\n"+"- Tittel må fylles ut!";
		}
		if (document.form1.antall3.value =="")
		{
	      errors += "\n"+"- Antall må fylles ut!";
		}
		if (isNaN(document.form1.antall3.value))
		{
	      errors += "\n"+"- Antall må fylles ut med tall!";
		}
	}
	if (document.form1.tittel4.value || document.form1.komp4.value || document.form1.type4.value || document.form1.prodnr4.value || document.form1.antall4.value)
	{
		if (document.form1.tittel4.value =="")
		{
	      errors += "\n"+"- Tittel må fylles ut!";
		}
		if (document.form1.antall4.value =="")
		{
	      errors += "\n"+"- Antall må fylles ut!";
		}
		if (isNaN(document.form1.antall4.value))
		{
	      errors += "\n"+"- Antall må fylles ut med tall!";
		}
	}
	if (document.form1.fornavn.value =="")
	{
      errors += "\n"+"- Fornavn må fylles ut!";
	}
	if (document.form1.etternavn.value =="")
	{
      errors += "\n"+"- Etternavn må fylles ut!";
	}
	if (document.form1.postnr.value =="")
	{
      errors += "\n"+"- Postnummer må fylles ut!";
	}
	if (isNaN(document.form1.postnr.value))
	{
      errors += "\n"+"- Postnummer må fylles ut med tall!";
	}
	if (document.form1.poststed.value =="")
	{
      errors += "\n"+"- Poststed må fylles ut!";
	}
	if (document.form1.telefon.value =="")
	{
      errors += "\n"+"- Telefon (dag) må fylles ut!";
	}
	if (isNaN(document.form1.telefon.value))
	{
      errors += "\n"+"- Telefon (dag) må fylles ut med tall!";
	}
	if (document.form1.epost.value =="")
	{
      errors += "\n"+"- E-post må fylles ut!";
	}
	
	if (errors)
	{
		msg="";
   		msg  += "Følgende felt må fylles ut: \n";
   		msg	 +=  errors+ "\n";

   		alert (msg);
   		return false;
	}
 return true;
}
