<!-- preload images -->
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];}}
}

<!-- show text onclick link -->
function MM_setTextOfLayer(objId,x,newText) { //v9.0
  with (document) if (getElementById && ((obj=getElementById(objId))!=null))
    with (obj) innerHTML = unescape(newText);
}

<!-- navigatie -->
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

<!-- validatie -->
function MM_validateForm() { //v4.0
  if (document.getElementById){
    var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
    for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
      if (val) { nm=val.name; if ((val=val.value)!="") {
        if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
          if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
        } else if (test!='R') { num = parseFloat(val);
          if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
          if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
            min=test.substring(8,p); max=test.substring(p+1);
            if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
      } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
    } if (errors) alert('The following error(s) occurred:\n'+errors);
    document.MM_returnValue = (errors == '');
} }

function kijk(elmnt)
{
  document.getElementById(elmnt).style.visibility='visible';

}

function kijk_out(elmnt)
{
  document.getElementById(elmnt).style.visibility='hidden';

}



function showv()
{
  document.getElementById('showbord').src="http://www.dresmo.nl/gif/bord_veld.gif";
}
function show_out()
{
  document.getElementById('showbord').src="http://www.dresmo.nl/gif/bord.gif";
}

function showr()
{
  document.getElementById('showbord').src="http://www.dresmo.nl/gif/bord_rij.gif";
}

function showl()
{
  document.getElementById('showbord').src="http://www.dresmo.nl/gif/bord_lijn.gif";
}

function showd()
{
  document.getElementById('showbord').src="http://www.dresmo.nl/gif/bord_diagonaal.gif";
}

function shows()
{
  document.getElementById('bordkant').src="http://www.dresmo.nl/images/bord_snijpunt.jpg";
}


function show_outs()
{
  document.getElementById('bordkant').src="http://www.dresmo.nl/images/bord_kanten.jpg";
}



function showbk()
{
  document.getElementById('bordkoning').src="http://www.dresmo.nl/gif/bord_koningvelden.gif";
}


function show_outbk()
{
  document.getElementById('bordkoning').src="http://www.dresmo.nl/gif/bord_koning1.gif";
}



function showtk()
{
  document.getElementById('bordkoningen').src="http://www.dresmo.nl/gif/bord_tknee.gif";
}


function show_outtk()
{
  document.getElementById('bordkoningen').src="http://www.dresmo.nl/gif/bord_koningen.gif";
}


function showdv()
{
  document.getElementById('borddame').src="http://www.dresmo.nl/gif/bord_damevelden.gif";
}


function show_outdv()
{
  document.getElementById('borddame').src="http://www.dresmo.nl/gif/bord_dame1.gif";
}



function showtv()
{
  document.getElementById('bordtoren').src="http://www.dresmo.nl/gif/bord_torenvelden.gif";
}


function show_outtv()
{
  document.getElementById('bordtoren').src="http://www.dresmo.nl/gif/bord_toren1.gif";
}


function showtr()
{
  document.getElementById('bordlijn').src="http://www.dresmo.nl/gif/bord_torensrij.gif";
}


function show_outtr()
{
  document.getElementById('bordlijn').src="http://www.dresmo.nl/gif/bord_torenslijn.gif";
}


function showpv()
{
  document.getElementById('bordpaard').src="http://www.dresmo.nl/gif/bord_paardvelden.gif";
}


function show_outpv()
{
  document.getElementById('bordpaard').src="http://www.dresmo.nl/gif/bord_paard.gif";
}


function showpr()
{
  document.getElementById('bordrand').src="http://www.dresmo.nl/gif/bord_paardrandvelden.gif";
}


function show_outpr()
{
  document.getElementById('bordrand').src="http://www.dresmo.nl/gif/bord_paardrand.gif";
}




function showlv()
{
  document.getElementById('bordloper').src="http://www.dresmo.nl/gif/bord_lopervelden.gif";
}


function show_outlv()
{
  document.getElementById('bordloper').src="http://www.dresmo.nl/gif/bord_loper1.gif";
}



function showcentrumloper()
{
  document.getElementById('bordloper').src="http://www.dresmo.nl/gif/bord_centrum.gif";
}


function show_outcentrumloper()
{
  document.getElementById('bordloper').src="http://www.dresmo.nl/gif/bord_loper1.gif";
}


function showpion_1()
{
  document.getElementById('bordpion').src="http://www.dresmo.nl/gif/bord_pion1vooruit.gif";
}


function show_outpion1()
{
  document.getElementById('bordpion').src="http://www.dresmo.nl/gif/bord_pion1.gif";
}


function showpion_2()
{
  document.getElementById('bordpion').src="http://www.dresmo.nl/gif/bord_pion2vooruit.gif";
}


function show_outpion2()
{
  document.getElementById('bordpion').src="http://www.dresmo.nl/gif/bord_pion1.gif";
}



function showcentrumpaard()
{
  document.getElementById('bordpaard').src="http://www.dresmo.nl/gif/bord_centrum.gif";
}


function show_outcentrumpaard()
{
  document.getElementById('bordpaard').src="http://www.dresmo.nl/gif/bord_paard.gif";
}


function show_vuistregels()
{

window.open("vst.html","new", "width=600, height=600");


}

function bar()
{
  window.status="Schaakonderwerpen op www.dresmo.nl";
}

bar();




function pionxd5()
{
document.getElementById('bordanimatie').src="http://www.dresmo.nl/gif/bord_slaanxd5.gif";
}

function pionxd5_terug()
{
document.getElementById('bordanimatie').src="http://www.dresmo.nl/gif/bord_slaan1.gif";
}



function enpassantd3()
{
document.getElementById('bordenpassant').src="http://www.dresmo.nl/gif/bord_enpassantd3.gif";
}

function enpassantd3_terug()
{
document.getElementById('bordenpassant').src="http://www.dresmo.nl/gif/bord_enpassant.gif";
}



function enpassantd4()
{
document.getElementById('bordenpassant').src="http://www.dresmo.nl/gif/bord_enpassantd4.gif";
}

function enpassantd4_terug()
{
document.getElementById('bordenpassant').src="http://www.dresmo.nl/gif/bord_enpassant.gif";
}



function enpassantmaald3()
{
document.getElementById('bordenpassantslaan').src="http://www.dresmo.nl/gif/bord_enpassantxd3.gif";
}

function enpassantmaald3_terug()
{
document.getElementById('bordenpassantslaan').src="http://www.dresmo.nl/gif/bord_enpassantd3.gif";
}


function enpassantmaald4()
{
document.getElementById('bordenpassantslaand4').src="http://www.dresmo.nl/gif/bord_enpassantxd4.gif";
}

function enpassantmaald4_terug()
{
document.getElementById('bordenpassantslaand4').src="http://www.dresmo.nl/gif/bord_enpassantd4.gif";
}



function rok_kort()
{
document.getElementById('bordrokade').src="http://www.dresmo.nl/gif/bord_korte_ani.gif";
}

function rok_kort_terug()
{
document.getElementById('bordrokade').src="http://www.dresmo.nl/gif/bord_rok1.gif";
}




function schaak_optiea()
{
document.getElementById('bordopties').src="http://www.dresmo.nl/gif/bord_schaak_optie1.gif";
}

function schaak_optiea_terug()
{
document.getElementById('bordopties').src="http://www.dresmo.nl/gif/bord_schaak_opties.gif";
}



function schaak_optieb()
{
document.getElementById('bordopties').src="http://www.dresmo.nl/gif/bord_schaak_optie2.gif";
}

function schaak_optieb_terug()
{
document.getElementById('bordopties').src="http://www.dresmo.nl/gif/bord_schaak_opties.gif";
}



function schaak_optiec()
{
document.getElementById('bordopties').src="http://www.dresmo.nl/gif/bord_schaak_optie3.gif";
}

function schaak_optiec_terug()
{
document.getElementById('bordopties').src="http://www.dresmo.nl/gif/bord_schaak_opties.gif";
}



function power_pawn()
{
document.getElementById('bordpowerpawn').src="http://www.dresmo.nl/gif/bord_powerpawn_ani.gif";
}



function goTo(route)
{	
	location = route;
}














