function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;  document.MM_returnValue = true;
}

function checkFields()
{
	window.name = 'content';
	var txtLimit = 250
	var str = "";
	var oms = "";
	var tot = "";
	var omsnl = document.info.oms_nl.value;
	
	if(document.info.voornaam.value == "")
	    str += "Vul uw Voornaam in\n";
	if(document.info.naam.value == "")
	    str += "Vul uw Achternaam in\n";
	if(document.info.adres.value == "")
	    str += "Vul uw Adres in\n";
	if(document.info.postcode.value == "")
	    str += "Vul uw Postcode in\n";
	if(document.info.woonplaats.value == "")
	    str += "Vul uw Woonplaats in\n";
	if(document.info.land.value == "")
	    str += "Vul uw Land in\n";
	if(document.info.telefoon.value == "")
	    str += "Vul uw Telefoon in\n";
	if(document.info.email.value == "")
	    str += "Vul uw E-mail in\n";
		//controle of email "@" bevat en een "." na de apestaat
    if (document.info.email.value.length>0&&(document.info.email.value.indexOf("@",0)==-1||document.info.email.value.indexOf(".",0)==-1)) 
	 	str += "Vul een correct E-mail adres in\n"	;
		
	if (omsnl.length > txtLimit){
 	 oms += "Uw nederlandse toelichting is " + omsnl.length + 
                      " characters lang." +
        "  Kort deze tekst in tot " + txtLimit + 
                      " characters.\n";
	} 		

tot += str + oms;

	 if(tot == ""){
		 document.info.target= "content";
		 document.info.action = "adv_save.asp?taal=be";
		  document.info.submit();  
	 }
	 else {
			alert(tot);
	 }

}

function formButtonFever(formName,action){
	var myString = "document."+formName+"."+action+"();";
	eval(myString);
	}

function preview(form)
      {

       form.action = "preview.asp";
	   
	   var popup = window.open('','prev','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=600,height=400');
		form.target= "prev";
		form.submit();
      }


