//Jumpmenu

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


// Checks the forms for correct input

function checkformcontact ( form )
{
	
//         if (form.initialen.value == "") {
//        alert( "Vul a.u.b. uw initialen in" );
//        form.initialen.focus();
//        return false ;
//    }
	
         if (form.naam.value == "") {
        alert( "Vul a.u.b. uw naam in" );
        form.naam.focus();
        return false ;
    }


	
			       if (form.telefoonnummer.value == "") {
        alert( "Vul a.u.b. uw telefoonnummer in" );
        form.telefoonnummer.focus();
        return false ;
    }
	
				       if (form.opmerkingen.value == "") {
        alert( "Het opmerkingenveld is leeg" );
        form.opmerkingen.focus();
        return false ;
    }
	
	
	
		
 
	return true ;
}

function checkformbestelling ( form )
{
	
         if (form.initialen.value == "") {
        alert( "Vul a.u.b. uw initialen in" );
        form.initialen.focus();
        return false ;
    }
	
         if (form.naam.value == "") {
        alert( "Vul a.u.b. uw naam in" );
        form.naam.focus();
        return false ;
    }
	
        if (form.adres.value == "") {
        alert( "Vul a.u.b. uw adres in" );
        form.adres.focus();
        return false ;
    }	
	
	       if (form.postcode.value == "") {
        alert( "Vul a.u.b. uw postcode in" );
        form.postcode.focus();
        return false ;
    }
	
		       if (form.woonplaats.value == "") {
        alert( "Vul a.u.b. uw woonplaats in" );
        form.woonplaats.focus();
        return false ;
    }
	
			       if (form.telefoonnummer.value == "") {
        alert( "Vul a.u.b. uw telefoonnummer in" );
        form.telefoonnummer.focus();
        return false ;
    }
	
			       if (form.email_from.value == "") {
        alert( "Vul a.u.b. uw e-mailadres in" );
        form.email_from.focus();
        return false ;
    }
	
		var formObj = document.forms[0];
var count = 0;
for (i=0;i<formObj.length; i++)
{
if(formObj.elements[i].type == 'radio')
if(formObj.elements[i].checked)
count++;
}
if (count < 1)
{
alert("Selecteer a.u.b. hoe het pand verwamrd is");
return false;
} 
		
		
 
	return true ;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



	function showLayer(whichLayer) {
//				alert(whichLayer);
		if (document.getElementById) {
//            alert("document.getElementById");
			// this is the way the standards work
			document.getElementById(whichLayer).style.display = "block";
		}
		else if (document.all) {
//            alert("document.all");
			// this is the way old msie versions work
			document.all[whichlayer].style.display = "block";
		}
		else if (document.layers) {
//            alert("nn");
			// this is the way nn4 works
			document.layers[whichLayer].display = "block";
		}
	}

 	function colorize(thisLayer) {
//    alert(thisLayer);
		if (document.getElementById) {
            document.getElementById('henk_blok1_1').style.background = "";
            document.getElementById('henk_blok1_2').style.background = "";
            document.getElementById('henk_blok1_3').style.background = "";
            document.getElementById('henk_blok1_4').style.background = "";
            document.getElementById('henk_blok2_1').style.background = "";
            document.getElementById('henk_blok2_2').style.background = "";
			document.getElementById(thisLayer).style.background = "#F2F8FB";
		}
		else if (document.all) {
			document.all[thisLayer].style.background = "#F2F8FB";
		}
		else if (document.layers) {
			document.layers[thisLayer].background = "#F2F8FB";
		}
    }
	function colorize2(thisLayer) {
//    alert(thisLayer);
		if (document.getElementById) {
            document.getElementById('henk_blok2_1').style.background = "";
            document.getElementById('henk_blok2_2').style.background = "";
			document.getElementById(thisLayer).style.background = "#F2F8FB";
		}
		else if (document.all) {
			document.all[thisLayer].style.background = "#F2F8FB";
		}
		else if (document.layers) {
			document.layers[thisLayer].background = "#F2F8FB";
		}
    }
    var link;
 	function setlink(valeu) {
        link = valeu;
    }
 	function alertlink(valeu2) {
//        alert(link+valeu2);
        if((link+valeu2)== '11'){
            setTimeout ( window.location = "/assortiment/cv-ketels/inclusief-montage.html", 4000 );
        }
        if((link+valeu2)== '12'){
            setTimeout ( window.location = "/assortiment/cv-ketels/zonder-montage.html", 4000 );
        }
        if((link+valeu2)== '21'){
            setTimeout ( window.location = "/assortiment/cv-ketels/inclusief-montage.html", 4000 );
        }
        if((link+valeu2)== '22'){
            setTimeout ( window.location = "/assortiment/cv-ketels/zonder-montage.html", 4000 );
        }
        if((link+valeu2)== '31'){
            setTimeout ( window.location = "/complete-cv-installatie-gemonteerd.html", 4000 );
        }
        if((link+valeu2)== '32'){
            setTimeout ( window.location = "/complete-cv-installatie-zelfbouw.html", 4000 );
        }
        if((link+valeu2)== '41'){
            setTimeout ( window.location = "/complete-cv-installatie-gemonteerd.html", 4000 );
        }
        if((link+valeu2)== '42'){
            setTimeout ( window.location = "/complete-cv-installatie-zelfbouw.html", 4000 );
        }
//        'http://www.mulcotherm.nl/offerteinstallatie/'
    }
