function bestelProduct(id, aantal, groep, meerinfo) {
  if(aantal <= 0) {
    rc = alert('U heeft nog geen aantal opgegeven!');
     } else {
//  if (confirm('Weet zeker dat u dit product '+ aantal +' keer in uw mandje wilt plaatsen')) 
//   {
    var product_id = id;
    var hoeveel = aantal;
	var groep = groep;
	var meerinfo = meerinfo;
  gotoURL('?go=mandje&product_id=' + product_id + '&product_aantal=' + hoeveel + '&action=add&groep=' + groep + '&meerinfo=' + meerinfo);
//  }
 }
}
function bestelProducts(id, pakket, groep, meerinfo) {
//  if (confirm('Weet zeker dat u dit product bij het pakket wilt plaatsen')) 
//   {
    var product_id = id;
    var pakket_id = pakket;
	var groep = groep;
	var meerinfo = meerinfo;

  gotoURL('?go=mandje&product_id=' + product_id + '&pakket_id=' + pakket_id + '&action=add&groep=' + groep + '&meerinfo=' + meerinfo + '&add=products');
//  }
 }

function MySubmit() {
 {
  gotoURL('?go=mandje&action=refresh');
 }
}

function emailCheck(emailStr) {
var emailPat = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
var matchArray = emailStr.match(emailPat);
if (matchArray == null) {
alert("Het opgegeven E-mailadres is niet correct.");
return false;
}
return true;
}


 function gotoURL(url)
{
  document.location.href = url;
}


function PopupPic(sPicURL) 
	{ 
	window.open("popup.htm?"+sPicURL, "", "resizable=1,HEIGHT=200,WIDTH=200");
	}

function checkcontact( form )
{
  if (form.naam.value == "") {
    alert( "Er is nog geen naam opgegeven" );
    form.naam.focus();
    return false ;
  }
  if (form.telefoon.value == "") {
    alert( "Er is nog geen telefoon nummer ingevuld" );
    form.telefoon.focus();
    return false ;
  }
  if (form.email.value == "") {
    alert( "Er is nog geen e-mailadres ingevuld" );
    form.email.focus();
    return false ;
  }
  return true ;
}
function checkbrochure( form )
{
  if (form.naam.value == "") {
    alert( "Er is nog geen naam opgegeven" );
    form.naam.focus();
    return false ;
  }
  if (form.adres.value == "") {
    alert( "Er is nog geen adres ingevuld" );
    form.adres.focus();
    return false ;
  }
  if (form.postcode.value == "") {
    alert( "Er is nog posctode ingevuld" );
    form.postcode.focus();
    return false ;
  }    
  if (form.woonplaats.value == "") {
    alert( "Er is nog woonplaats ingevuld" );
    form.woonplaats.focus();
    return false ;
  }  
  if (form.telefoon.value == "") {
    alert( "Er is nog geen telefoon nummer ingevuld" );
    form.telefoon.focus();
    return false ;
  }
  if (form.email.value == "") {
    alert( "Er is nog geen e-mailadres ingevuld" );
    form.email.focus();
    return false ;
  }
  return true ;
}
function icon(theicon)
{
	document.nieuwsaanmaken.tekst.value += ""+theicon;
	document.nieuwsaanmaken.tekst.focus();
}

