function showUser(str)
{ 


var aant = 0;
  if(str.r1.checked == true ){
     var VW = "WHERE ( rubriek = 'Hotels'";	
     aant++;
	}  
       else
       { var VW = "WHERE ( rubriek = 'LEEG'"; 
       }

  if(str.r3.checked == true){
     VW = VW + " OR rubriek = 'Appartementen'";	
     aant++;

	}
  if(str.r4.checked == true){
     VW = VW + " OR rubriek = 'Woonhuizen'";	
     aant++;

	}
  if(str.r5.checked == true){
     VW = VW + " OR rubriek = 'Zomerhuizen'";	
     aant++;

	}
  if(str.r6.checked == true){
     VW = VW + " OR rubriek = 'Kamerverhuur'";	
     aant++;

	}
  if(str.r8.checked == true){
     VW = VW + " OR rubriek = 'Studio'";	
     aant++;

	}

  if(str.r7.checked == true){
     VW = VW + " OR rubriek = 'Groepsaccommodaties')";	
     aant++;
	} else { VW = VW + ")";}

  if(aant>3) { 
    alert ("Niet meer als 3 rubrieken invullen"); 
  }



if((str.ps.value!="") || (str.ster.value!="")){

  if(str.ps.value!=""){
      if(str.r5.checked == true) { 
		VW = VW + " AND ps >= '" + str.ps.value + "'";
         }
   if(str.ster.value!=""){
		VW = VW + " AND ster >= '" + str.ster.value + "'";
    }

   if(str.hd.value=="ja"){
		VW = VW + " AND hd = 'JA' ";
    } else { VW = VW ; 
	}

   }
  
  if(str.ster.value!=""){
		VW = VW + " AND sterren >= '" + str.ster.value + "'";
   if(str.ps.value!=""){
		VW = VW + " AND ps >= '" + str.ps.value + "'";
    }
   }
}

xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="js/getaccom.php"
url=url+"?q="+VW
url=url+"&ln="+str.lang.value
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)

}function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtHint").innerHTML=xmlHttp.responseText 
 } 
}function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}


 function checkForm(thisform)      {
            if(thisform.email.value==""){
		alert ("Je email is niet ingevuld.");
		thisform.email.focus();
		return false ;
	}
            if(thisform.vraag.value==""){
		alert ("Wel even een vraag invullen !");
		thisform.vraag.focus();
		return false ;
	}

}
