$(document).ready(function() {									
  $("a[name^='faq-']").each(function() {
    var $link = $(this);
    
    $link.click(function() {
      $("div[id^='faq-']").each(function() {
        var $this = $(this);
        
        if($this.attr('id') == $link.attr('name')) {
	
			if( $(this).is(":visible") ) {
  			$this.slideUp('fast');
			}
			else {
   			$this.slideDown('fast');
			}
					  
        } else {
          $this.slideUp('fast');
        }
		 
		
      });
      
      return false;
    });
  });
});


function Venster(URL) {
	
	HorPos = screen.height;
	HorPos = (HorPos-600) / 2;
	VerPos = screen.width;
	VerPos = (VerPos-700) / 2;
	
venster = window.open(URL, 'popupvenster', 'width=698, height=418, left=' + VerPos + ', top=' + HorPos + ', resizable=no, menubar=no, scrollbars=no, status=no, toolbar=no');
}


function Venster2(URL) {

	HorPos = screen.height;
	HorPos = (HorPos-600) / 2;
	VerPos = screen.width;
	VerPos = (VerPos-700) / 2;

venster = window.open(URL, 'popupvenster', 'width=700, height=650, left=' + VerPos + ', top=' + HorPos + ', resizable=no, menubar=no, scrollbars=no, status=no, toolbar=no');
}

function Venster3(URL) {

	HorPos = screen.height;
	HorPos = (HorPos-600) / 2;
	VerPos = screen.width;
	VerPos = (VerPos-700) / 2;

venster = window.open(URL, 'popupvenster', 'width=550, height=700, left=' + VerPos + ', top=' + HorPos + ', resizable=no, menubar=no, scrollbars=no, status=no, toolbar=no');
}



function CheckForm() {
		if (document.formulier.montageplaats.value=="") {
			alert ("Uw montage plaats moet nog ingevuld worden")
			document.formulier.montageplaats.focus();
			
		} else if (document.formulier.telefoonnummer.value=="") {
			alert ("Uw telefoonnummer moet nog ingevuld worden")
			document.formulier.telefoonnummer.focus();
		
		} else {
			document.formulier.submit();
		}
	}
	
	
	function CheckForm2() {
		if (document.formulier.telefoonnummer.value=="") {
			alert ("Uw telefoonnummer moet nog ingevuld worden")
			document.formulier.telefoonnummer.focus();
		} else {
			document.formulier.submit();
		}
	}
