function checkShowOptie(nr) {
  var vinkje = document.getElementById("vinkje"+nr);
  if (vinkje != null) {
    if (vinkje.style != null) {
      if (vinkje.style != null) {
        vinkje.style.display = "block";
      }
    }
  }
}

function setKosten(val) {
  var kosten = document.getElementById("kosten");
  if (kosten != null) {
    if (kosten.innerHTML != null) {
	  if (val == "1") kosten.innerHTML = "6,25";
	  else if (val == "2") kosten.innerHTML = "9,58";
	  else if (val == "3") kosten.innerHTML = "12,08";
    }
  }
}



function doOfferte(s)
{
  var fo = document.forms["xdataform"];
  if (fo!=null)
  {
    var el = fo.elements["XDATA"];
    if (el!=null) {

      el.value = s;
    
      fo.method = "POST";
      fo.action = "scripts/setsession.asp";

      AjaxRequest.submit(
       fo
       ,{
         'onSuccess':function(req) 
         { 
	    window.location = "/Contact/Offerte-aanvraag.html";           
         }
       }
      );
    }
  }
}
function doOfferteairco(s)
{
  var fo = document.forms["xdataform"];
  if (fo!=null)
  {
    var el = fo.elements["XDATA"];
    if (el!=null) {

      el.value = s;
    
      fo.method = "POST";
      fo.action = "scripts/setsession.asp";

      AjaxRequest.submit(
       fo
       ,{
         'onSuccess':function(req) 
         { 
	    window.location = "/Producten/Klimaat/Offerte-aanvraag-airco.html";           
         }
       }
      );
    }
  }
}

function setSession(s)
{
  var fo = document.forms["xdataform"];
  if (fo!=null)
  {
    var el = fo.elements["XDATA"];
    if (el!=null) {
      el.value = s;
    
      fo.method = "POST";
      fo.action = "scripts/setsession.asp";
      AjaxRequest.submit(
       fo
       ,{
         'onSuccess':function(req) 
         { 
         }
       }
      );
    }
  }
}