function setActiveStyleSheet(title) {
var i, a, main;
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
a.disabled = true;
if(a.getAttribute("title") == title) a.disabled = false;
}
}
}
function delset(){
setActiveStyleSheet=function(){}
}
function world(C){
optAant=C.options.length-1
if(C.selectedIndex===optAant){
optVal=prompt('What country are you from?','')
C.options[optAant].text=optVal
C.options[optAant].value=optVal
}
bO(C.form)
}
preval=''
function tS(str,T)
{
if(T=='lc')regEx = new RegExp("^[A-Å '0-9\. ]*$","i");
if(T=='l')regEx = new RegExp("^[A-Å '\. ]*$","i");
if(T=='c')regEx = new RegExp("^[0-9]*$","i");
if(regEx.test(str.value)){
preval=str.value
if(str.form.verN)bO(str.form)
}
else {
str.value=preval;
}
}
function tD(v){
d=v.value.split('\/')
for(a=0;a<3;a++){
d[a]=d[a]*1
}
d[1]--
if(d[2]<8)d[2]+=2000
if(d[2]<1900)d[2]+=1900
dat=new Date(d[2],d[1],d[0])
if(d[2]>2009||d[1]!=dat.getMonth())dat='NaN'
if(dat!='NaN')preval=dat.getDate()+'/'+(dat.getMonth()+1)+'/'+dat.getFullYear()
else alert('not dd/mm/yyyy format')
v.value=preval
}
function tE(v){
regEx = new RegExp("^[a-z0-9\-_\.]*\@[a-z0-9]*\.[a-z\.]{2,6}$","i");
if(regEx.test(v.value))preval=v.value
else alert('not valid e-mail')
v.value=preval
}
function tU(v){
regEx = new RegExp("^http:\/\/[a-z0-9\-_\.\/]*$","i");
regEx2 = new RegExp("^[a-z0-9\-_\.\/]*$","i");
if(regEx.test(v.value))preval=v.value
else if(regEx2.test(v.value))preval='http:\/\/'+v.value
else alert('not valid URL')
v.value=preval
}
function nav(laag){
document.getElementById('onder').innerHTML='
'+document.getElementById(laag).innerHTML
document.getElementById('onder_print').innerHTML='
'+document.getElementById(laag).innerHTML
if(laag=='location' || laag=='area')load('mapLN')
// if(laag='willkom')load('mapG')
// if(laag='welkom')load('mapD')
}
function test(){
document.getElementById('boven').style.height="20%"
document.getElementById('onder').style.height="75%"
document.getElementById('onder').style.top="22%"
document.getElementById('onder').style.left="8%"
document.getElementById('onder').style.borderTopStyle='solid'
nav('welcome')
test=function(){}
}
window.onload=function(){
if(document.getElementById('boven')){document.getElementById('boven').innerHTML=''
vertraging=setTimeout("setActiveStyleSheet('flashloos')",5000)
}
}
function plan(punt){
open('http://tools.locatienet.com/location/map.asp?config_id=1895&language=english&zoom=5&markertext=GENSB_2007&css=http%3A//www.touwtrekken.be/stijl.css&address='+punt,'plannetje','width=600,height=450')
}
function G_verz(f){
var ajaxRequest; // The variable that makes Ajax possible!
try{
// Opera 8.0+, Firefox, Safari
ajaxRequest = new XMLHttpRequest();
} catch (e){
// Internet Explorer Browsers
try{
ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try{
ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e){
// Something went wrong
alert("Your browser broke!");
}
}
}
// Create a function that will receive data sent from the server
ajaxRequest.onreadystatechange = function(){
if(ajaxRequest.readyState == 4){
document.getElementById('onder').innerHTML='
Gastenboek
laatste 10 berichten
'+ajaxRequest.responseText document.getElementById('gast').innerHTML='Gastenboek
laatste 10 berichten
'+ajaxRequest.responseText document.getElementById('guest').innerHTML='Guestbook
Most recent
'+ajaxRequest.responseText } } var parameters = "naam="+f.naam.value; parameters += "&team="+f.team.value; parameters += "&email="+f.email.value; parameters += "&url="+f.url.value; parameters += "&coment="+f.coment.value; if(f.priv.checked)parameters += "&priv="+f.priv.checked; ajaxRequest.open("POST", "gast.php", true); ajaxRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); ajaxRequest.setRequestHeader("Content-length", parameters.length); ajaxRequest.setRequestHeader("Connection", "close"); ajaxRequest.send(parameters); f.style.display='none' } function toevoegen(c){ var containerdiv = document.getElementById(c); var nieuwe_div = containerdiv.getElementsByTagName('tr')[0].cloneNode(true); containerdiv.appendChild(nieuwe_div); nieuwe_div.getElementsByTagName('input')[0].value=''; nieuwe_div.getElementsByTagName('input')[1].value='dd/mm/yyyy'; } function agecheck(geb,cat){ d=geb.split('\/') j=1*d[2]; if((j>1998||j<1992)&&cat==1){ return false; } } function aktie(f){ fout='false content\n' if(f.verN.value=='')fout+='insert a clubname\n' if(f.contactP.value=='')fout+='insert a contactperson\n' if(f.straat.value=='')fout+='insert a streetname\n' if(f.gemeente.value=='')fout+='insert a village\n' if(f.mail.value=='')fout+='insert an e-mail \n' if(f.land.selectedIndex==0)fout+='select a country \n' for(a=9;a