jsLoaded = false; 

function jsLoadedCheck() { 
  if( !jsLoaded )
    document.location.href = document.location.href; 
  else 
    jsLoaded = false; 
}

function body_onload() { 
  init(); 
} 

function jsCheckRadio1(n) {
  document.frm.seltype1[n].checked=true; 
} 

function jsSetFocus1(n) { 
  if (n==0)
    document.frm.pc1.focus(); 
  else if (n==1) 
    document.frm.straat1.focus(); 
  else if (n==2)
    document.frm.poiplaats1.focus(); 
} 

function jsCheckRadio2(n) {
  document.frm.elements["SearchCriteria/SearchType|string"][n].checked=true;
} 

function jsSetFocus2(n) { 
  if (n==0) {
    document.frm.elements["SearchCriteria/ClubName|string"].focus();
  }
  else if (n==1) {
    document.frm.elements["SearchCriteria/AccommodationName|string"].focus();
  }
  else if(n==2) {
    document.frm.elements["pc2"].focus();
  }
  else if(n==3) {
    document.frm.elements["straat2"].focus();
  }
} 

function verifyData() { 
  // either go the Navajo postman or directly to Tensing
  if(document.frm.elements["SearchCriteria/SearchType|string"][2].checked) {
    document.frm.elements["seltype2"].value = '1'; 
    document.frm.action = 'http://knvb.tensingsks.com/tms/scripts/tgigw.dll';
  } 
  else if(document.frm.elements["SearchCriteria/SearchType|string"][3].checked) {    
    document.frm.elements["seltype2"].value = '2';
    document.frm.action = 'http://knvb.tensingsks.com/tms/scripts/tgigw.dll';
  }
} 

function SubmitPage(n) { 
  document.frm.action.value = n;
  document.frm.submit(); 
}

