function submitActie() {
	
	var fout=0;
	
	if(document.form1.voorletters.value=='') {
		fout=1;
		document.form1.voorletters.className='red';
	} else {
		document.form1.voorletters.className='';
	}
	
	if(document.form1.naam.value=='') {
		fout=1;
		document.form1.naam.className='red';
	} else {
		document.form1.naam.className='';
	}
	
	if(document.form1.adres.value=='') {
		fout=1;
		document.form1.adres.className='red';
	} else {
		document.form1.adres.className='';
	}
	
	if(document.form1.postcode.value=='') {
		fout=1;
		document.form1.postcode.className='red';
	} else {
		document.form1.postcode.className='';
	}
	
	if(document.form1.woonplaats.value=='') {
		fout=1;
		document.form1.woonplaats.className='red';
	} else {
		document.form1.woonplaats.className='';
	}
	
	if(document.form1.bouwplaats.value=='') {
		fout=1;
		document.form1.bouwplaats.className='red';
	} else {
		document.form1.bouwplaats.className='';
	}
	
	if(document.form1.telefoonnummer.value=='') {
		fout=1;
		document.form1.telefoonnummer.className='red';
	} else {
		document.form1.telefoonnummer.className='';
	}
	
	if(document.form1.emailadres.value=='') {
		fout=1;
		document.form1.emailadres.className='red';
	} else {
		document.form1.emailadres.className='';
	}
	
	if(!fout) {
		
		document.form1.submit();
	}
}
function bestellen(){
	window.location = '/?/Documentatie/'
}

function preview(){
	var win = window.open("/brochure_preview/brochure.html","","width=800,height=570")
	win.moveTo( (screen.width/2)-400 , (screen.height/2)-287)
}

function openKleurPlaatJongens(){
	window.open('http://www.ninet-cms.nl/bedrijven/selecth/uploads/kleurplaat_SelektHuis_jongens.pdf','Kleurplaat','');
	window.location = 'http://www.selekthuis.nl/?/Kidz/';
}

function openKleurPlaatMeisjes(){
	window.open('http://www.ninet-cms.nl/bedrijven/selecth/uploads/kleurplaat_selekthuis_meisjes.pdf','Kleurplaat','');
	window.location = 'http://www.selekthuis.nl/?/Kidz/';
}

function correctPNG() {
   for(var i=0; i<document.images.length; i++)
      {
	  var img = document.images[i]
	  var imgName = img.src.toUpperCase()
	  if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
	     {
		 var imgID = (img.id) ? "id='" + img.id + "' " : ""
		 var imgClass = (img.className) ? "class='" + img.className + "' " : ""
		 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
		 var imgStyle = "display:inline-block;" + img.style.cssText 
		 if (img.align == "left") imgStyle = "float:left;" + imgStyle
		 if (img.align == "right") imgStyle = "float:right;" + imgStyle
		 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle		
		 var strNewHTML = "<span " + imgID + imgClass + imgTitle
		 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
	     + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
		 + "(src=\'" + img.src + "\', sizingMethod='noscale');\"></span>" 
		 img.outerHTML = strNewHTML
		 i = i-1
	     }
      }
   }

	function sendContact1(zipcode){
		if(zipcode.value){
			baseUrl = 'http://maps.google.nl/maps?daddr=Kalanderstraat 51,+Rijssen&';
			baseUrl += 'saddr=' + zipcode.value;		
			window.open(baseUrl, '', '');
		}
	}
	
	function sendContact2(zipcode){
		if(zipcode.value){
			baseUrl = 'http://maps.google.nl/maps?daddr=Koperslagersstraat 21,+Sneek&';
			baseUrl += 'saddr=' + zipcode.value;		
			window.open(baseUrl, '', '');	
		}
	}

	function sendContact3(zipcode){
		if(zipcode.value){
			baseUrl = 'http://maps.google.nl/maps?daddr=Ambachtweg 14,+Moordrecht&';
			baseUrl += 'saddr=' + zipcode.value;		
			window.open(baseUrl, '', '');
		}
	}
	
	function sendContact4(zipcode){
		if(zipcode.value){
			baseUrl = 'http://maps.google.nl/maps?daddr=Stevinweg 13,+Tholen&';
			baseUrl += 'saddr=' + zipcode.value;		
			window.open(baseUrl, '', '');	
		}
	}
	
	function sendContact5(zipcode){
		if(zipcode.value){
			baseUrl = 'http://maps.google.nl/maps?daddr=Euroweg 39,+Amersfoort&';
			baseUrl += 'saddr=' + zipcode.value;		
			window.open(baseUrl, '', '');		
		}
	}