<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} 
}


function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}


function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

  
function changeBGI(imgaddy){
if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Firefox/x.x or Firefox x.x (ignoring remaining digits);
 var ffversion=new Number(RegExp.$1) // capture x.x portion and store as a number
 if (ffversion>=1)
  	sfeer_foto = document.getElementById("sfeer_foto"); 
	sfeer_foto.style.backgroundImage='url('+imgaddy+')'; 
}
else
	sfeer_foto.style.backgroundImage='url('+imgaddy+')'; 
}

/* Images pre loader */
function lightup(imgName)
 {
   if (document.images)
    {
      imgOn=eval(imgName + "on.src");
      document[imgName].src= imgOn;
	  document[imgName].style.cursor = 'pointer';
    }
 }

function turnoff(imgName)
 {
   if (document.images)
    {
      imgOff=eval(imgName + "off.src");
      document[imgName].src= imgOff;
	  document[imgName].style.cursor = 'auto';
    }
 }

/* Meer Informatie Contact Form */
function checkForm()
 {
 	var done = true;
	var elem;
	
	//if (document.contactform.bedrijfsnaam.value == "") {
	//	done = false;
	//	document.contactform.bedrijfsnaam.className = 'contactInputVerplicht';
	//} else {
	//	document.contactform.bedrijfsnaam.className = 'contactInput';
	//}
	if (document.contactform.voorletters.value == "") {
		done = false;
		document.contactform.voorletters.className = 'contactInputVerplicht';
	} else {
		document.contactform.voorletters.className = 'contactInput';
	}
	if (document.contactform.achternaam.value == "") {
		done = false;
		document.contactform.achternaam.className = 'contactInputVerplicht';
	} else {
		document.contactform.achternaam.className = 'contactInput';
	}
	if (document.contactform.adres.value == "") {
		done = false;
		document.contactform.adres.className = 'contactInputVerplicht';
	} else {
		document.contactform.adres.className = 'contactInput';
	}
	if (document.contactform.postcode.value == "") {
		done = false;
		document.contactform.postcode.className = 'contactInputVerplicht';
	} else {
		document.contactform.postcode.className = 'contactInput';
	}
	if (document.contactform.plaatsnaam.value == "") {
		done = false;
		document.contactform.plaatsnaam.className = 'contactInputVerplicht';
	} else {
		document.contactform.plaatsnaam.className = 'contactInput';
	}
	if (document.contactform.telefoon.value == "") {
		done = false;
		document.contactform.telefoon.className = 'contactInputVerplicht';
	} else {
		document.contactform.telefoon.className = 'contactInput';
	}
	if (document.contactform.email.value == "") {
		done = false;
		document.contactform.email.className = 'contactInputVerplicht';
	} else {
		document.contactform.email.className = 'contactInput';
	}
	
  	if (done) document.contactform.submit();
 }
 
function checkOfferteForm()
 {
 	var done = true;
	var elem;
	
  	if (done) document.contactform.submit();
 }

function displayNextOfferte(nextOne)
 {
	 var prevElem;
	 var nextElem;
	 var done = true;
	 
	 switch (nextOne) {
	 case '0', 0:
	 	prevElem = document.getElementById('offerte1');
		nextElem = document.getElementById('offerte2');
		prevElem.style.display = 'block';
		nextElem.style.display = 'none';
		break;
	 case '1', 1:
		if (document.contactform.voorletters.value == "") {
			done = false;
			document.contactform.voorletters.className = 'contactInputVerplicht';
		} else {
			document.contactform.voorletters.className = 'contactInput';
		}
		if (document.contactform.achternaam.value == "") {
			done = false;
			document.contactform.achternaam.className = 'contactInputVerplicht';
		} else {
			document.contactform.achternaam.className = 'contactInput';
		}
		if (document.contactform.adres.value == "") {
			done = false;
			document.contactform.adres.className = 'contactInputVerplicht';
		} else {
			document.contactform.adres.className = 'contactInput';
		}
		if (document.contactform.postcode.value == "") {
			done = false;
			document.contactform.postcode.className = 'contactInputVerplicht';
		} else {
			document.contactform.postcode.className = 'contactInput';
		}
		if (document.contactform.plaatsnaam.value == "") {
			done = false;
			document.contactform.plaatsnaam.className = 'contactInputVerplicht';
		} else {
			document.contactform.plaatsnaam.className = 'contactInput';
		}
		if (document.contactform.telefoon.value == "") {
			done = false;
			document.contactform.telefoon.className = 'contactInputVerplicht';
		} else {
			document.contactform.telefoon.className = 'contactInput';
		}
		if (document.contactform.email.value == "") {
			done = false;
			document.contactform.email.className = 'contactInputVerplicht';
		} else {
			document.contactform.email.className = 'contactInput';
		}
		
		// If okay move on
		if (done) {
			prevElem = document.getElementById('offerte1');
			nextElem = document.getElementById('offerte2');
			prevElem.style.display = 'none';
			nextElem.style.display = 'block';
		}
		break;
	 case '2', 2:
	 	prevElem = document.getElementById('offerte2');
		nextElem = document.getElementById('offerte3');
		prevElem.style.display = 'none';
		nextElem.style.display = 'block';
		break;
	 case '3', 3:
	 	prevElem = document.getElementById('offerte3');
		nextElem = document.getElementById('offerte2');
		prevElem.style.display = 'none';
		nextElem.style.display = 'block';
		break;
	 case '4', 4:
		if (document.contactform.aantal_a.value == "") {
			done = false;
			document.contactform.aantal_a.className = 'contactInputVerplicht';
		} else {
			document.contactform.aantal_a.className = 'contactInput';
		}
		if (document.contactform.breedte_a.value == "") {
			done = false;
			document.contactform.breedte_a.className = 'contactInputVerplicht';
		} else {
			document.contactform.breedte_a.className = 'contactInput';
		}
		if (document.contactform.hoogte_a.value == "") {
			done = false;
			document.contactform.hoogte_a.className = 'contactInputVerplicht';
		} else {
			document.contactform.hoogte_a.className = 'contactInput';
		}
	 
	 	if (done) {
			prevElem = document.getElementById('offerte3');
			nextElem = document.getElementById('offerte4');
			prevElem.style.display = 'none';
			nextElem.style.display = 'block';
		}
		break;
	 case '5', 5:
	 	prevElem = document.getElementById('offerte4');
		nextElem = document.getElementById('offerte3');
		prevElem.style.display = 'none';
		nextElem.style.display = 'block';
		break;
	 }
 }
 
function disableAlumnium(dir)
 {
	 var elem1 = document.contactform.behandeling[0];
	 var elem2 = document.contactform.behandeling[1];
	 
	 if (dir == 1) {
		 elem1.disabled = true;
		 elem2.disabled = true;
	 } else {
		 elem1.disabled = false;
		 elem2.disabled = false;
	 }
 }


function winopen(){ 
  window.open("/kiesuwluik/applicatieisoluik.htm", "popup", "toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=975,height=580,top=0,left=0")
}


<!-- Nieuwsbrief check script--!>
function CheckEmail(strData){
	var posAt = strData.indexOf("@"); var strName = strData.substring(0, posAt) ; 
	var strDomain = strData.substring(posAt + 1, strData.length) ; var posDot = strDomain.indexOf(".") ;
  	var strSubDomain = strDomain.substring(posDot + 1, strDomain.length) ; 
	if ( strName=="" || strDomain==""  || posDot < 1 || strSubDomain =="")return false;   else return true; 
} 


<!-- Naam in tekstveld--!>
function clearText(thefield) {
    if (thefield.defaultValue == thefield.value)
            thefield.value = ""
    else thefield.value = thefield.defaultValue
}

<!-- Google Maps script http://www.gpscoordinaten.nl/bepaal-gps-coordinaten.php--!>
//<![CDATA[
function load() {
  if (GBrowserIsCompatible()) {
	var map = new GMap2(document.getElementById("map"));
	var point = new GLatLng(52.03579, 5.10698);
	map.addControl(new GMapTypeControl());
	map.setCenter(new GLatLng(52.03579, 5.10698), 14, G_NORMAL_MAP);
	map.addControl(new GLargeMapControl());
	map.setCenter(point, 15);
	var marker = new GMarker(point);
	map.addOverlay(marker);
	GEvent.addListener(marker, "click", function() {
		marker.openInfoWindowHtml("<b>Isoluik Nederland B.V.</b><br>Archimedesbaan 10<br>3439 ME Nieuwegein"); <!--,{maxUrl:"details.html"}-->

	});
  }
}
//]]>
