function doLoad(page){
	// the timeout value should be the same as in the "refresh" meta-tag
	setTimeout( "refresh('"+page+"')", 2*1000 );  
}

function refresh(sURL){
	window.location.href = sURL;
}

function wijksend(waarde){
	if(waarde == "kaart"){
		location.href = linkprefix + 'locatiekaart/index.php';
	}
	else if(waarde > 0){
		location.href = linkprefix + 'wijkzoeken/index.php?wijkid='+waarde;
	}
}

function basisschoolsend(waarde){
	if(waarde > 0){
		location.href = linkprefix + 'basisschool/index.php?school='+waarde;
	}
}

function bplaatsensend(waarde){
	var opvangsoort;
	
	//Effe loskoppelen
	waarde = waarde.split("|");
	
	//vars toewijzen
	opvangsoort = waarde[1];
	waarde = waarde[0];
	
	/*if(opvangsoort == 'goo'){
		location.href = linkprefix + 'ouders/locatiesgastouders/?actie=locatiedetails&locatieid='+waarde;
	}
	else{	*/	
		if(waarde == "alles"){
			location.href = linkprefix + 'beschikbareplaatsen/';
		}
		else if(waarde > 0){
			location.href = linkprefix + 'locaties' + opvangsoort + '/?actie=locatiedetails&locatieid='+waarde;
		}
	/*}*/
}


function createResponse()
{
  document.getElementById( 'response' ).value = hex_sha1( hex_sha1( document.getElementById( 'password' ).value ) + ":" + document.getElementById( 'challenge' ).value );
  document.getElementById( 'password' ).value = "";
  document.getElementById( 'challenge' ).value = "";
  return true;
}
