function nieuws1(){
var truukje = '@er';
      var addresses = ['f' + String.fromCharCode(118) + 'elden' + truukje.charAt(0) + 'idcollege.nl',
                       'mberger' + truukje.charAt(0) + 'idcolleg' + String.fromCharCode(101) + '.n' + String.fromCharCode(108),
                       String.fromCharCode(105) + 'n' + String.fromCharCode(102) + 'o' + truukje.charAt(0) + 'outdoorle' + String.fromCharCode(105) + 'sure.nl'];
      for (var i = 0; i < 3; i++) {
        var link = document.getElementById('mail' + (i + 1));
        link.href = 'mailto:' + addresses[i];
        link.innerHTML = addresses[i];
      }
}


function showoption(x){
document.getElementById('option').style.display="";
}

function reset(){ 
document.getElementById("option").style.display="none";
}

function CloseBar(){
document.getElementById('bar').style.display='none';
}

function BlueClose(){
document.getElementById('close').src='img/close_blue.png';
document.getElementById('vraag').src='img/vraag_blue.png';
}

function ResetClose(){
document.getElementById('close').src='img/close.png';
document.getElementById('vraag').src='img/vraag.png';
}

function showSpoiler(obj)
    {
    var inner = obj.parentNode.getElementsByTagName("div")[0];
    if (inner.style.display == "none")
        inner.style.display = "";
    else
        inner.style.display = "none";
    }


function FAQ(){
var y=1;
}


function showalbum(){
var select = document.getElementById("albumid");
var album = select.options[select.selectedIndex].text;
 document.getElementById("keuzeplaatje").innerHTML = "<img src='img/foto_album/" + album + ".jpg' title='Klik hier om het album te laden' alt='Klik hier om het album te laden' onclick='submitform();' height='97px' width='140px' />";

}



function DeleteAlbum(){
document.plaatje.submit();
}

function foto(){
document.plaatje.submit();
}

function bevestig(){
var c=confirm("Weet je zeker dat je de vraag wil verwijderen?");
if(c==false){
window.alert('Vraag niet verwijderd');
}
if(c!=false){
window.alert('test');
document.verwijder.submit();
}
}

function selecteer(){
document.select.submit();
}
function submitform()
{
document.album.submit();
}

function submitformtaal()
{

document.taal.submit();
}

function forumulier(){
if (document.ElementById("naam") ==""){
window.alert("Hee, vul wat in!")
}
}


function thx(){

window.open('index.php?modus=Bedankt', '_top'); 
}

function webthx(){

window.open('index.php?modus=Verzonden', '_top'); 
}

function res(){
var resolutie = screen.width;
if (resolutie > 1200){
document.write('<img src="img/ban3.png" title="OutdoorLeisure, Buitengewoon leerzaam" alt="Outdoor Leisure, Buitengewoon leerzaam" />');
}


}

function changeBack(form){
      for (var i = 0; i < form.select.options.length; i++) {
        if (form.select.options[i].selected){
          document.getElementById("keuzeplaatje").innerHTML = "<img src='img/" + form.map.options[i].text + ".jpg' alt='Klik hier om het album te laden' onclick='submitform();' height='97px' width='140px' />";
        }
      }

    }






function sloganklik(){
window.open('index.php?modus=Wie%20zijn%20wij','_top'); 
}



function mkdir(){

document.mkdirform.submit();
window.location.reload();
}

function rmdir(){

document.rmdirform.submit();
window.location.reload();

} 

function Nieuws(){
var truukje = '@er';
      var addresses = ['f' + String.fromCharCode(118) + 'elden' + truukje.charAt(0) + 'idcollege.nl',
                       'mberger' + truukje.charAt(0) + 'idcolleg' + String.fromCharCode(101) + '.n' + String.fromCharCode(108),
                       String.fromCharCode(105) + 'n' + String.fromCharCode(102) + 'o' + truukje.charAt(0) + 'outdoorle' + String.fromCharCode(105) + 'sure.nl',
String.fromCharCode(105) + 'n' + String.fromCharCode(102) + 'o' + truukje.charAt(0) + 'snowsportsacadamy.nl'];
      for (var i = 0; i < 3; i++) {
        var link = document.getElementById('mail' + (i + 1));
        link.href = 'mailto:' + addresses[i];
        link.innerHTML = addresses[i];
      }
}


function Contact(){
var truukje = '@er';
      var addresses = ['f' + String.fromCharCode(118) + 'elden' + truukje.charAt(0) + 'idcollege.nl',
                       'mberger' + truukje.charAt(0) + 'idcolleg' + String.fromCharCode(101) + '.n' + String.fromCharCode(108),
                       String.fromCharCode(105) + 'n' + String.fromCharCode(102) + 'o' + truukje.charAt(0) + 'outdoorle' + String.fromCharCode(105) + 'sure.nl',
String.fromCharCode(105) + 'n' + String.fromCharCode(102) + 'o' + truukje.charAt(0) + 'snowsportsacadamy.nl'];
      for (var i = 0; i < 3; i++) {
        var link = document.getElementById('mail' + (i + 1));
        link.href = 'mailto:' + addresses[i];
        link.innerHTML = addresses[i];
      }
}

function veranderTab(x,tekst) {
 document.getElementById('tab1').className = 'uit';
 document.getElementById('tab2').className = 'uit';
 document.getElementById('tab3').className = 'uit';
 document.getElementById('tab4').className = 'uit';
 document.getElementById('tab5').className = 'uit';
 document.getElementById('tab6').className = 'uit';
 document.getElementById(x).className='aan';
 document.getElementById('content').innerHTML=tekst;
}

function catagorie(x){
document.getElementById(x).selected=true;
}