function onDocumentLoad()
        {
            LoadLatestSearchParams();
        
        
            checkStopPrijs();
        }
        
        <!-- bolt:Extract tag="INCLUDE4" -->


function checkStartPrijs()
{
    if (document.type.startPrijs.selectedIndex > 
        document.type.stopPrijs.selectedIndex)
    {
        if (document.type.startPrijs.selectedIndex == 26)
        {
            document.type.stopPrijs.selectedIndex = 
            26;
        }
        else {
            document.type.stopPrijs.selectedIndex =
            document.type.startPrijs.selectedIndex + 1;
        }
    }
    checkIntervalPrijs(MAX_INTERVAL_PRIJS);
}


function checkStopPrijs()
{
   if (document.type.stopPrijs.selectedIndex < 
        document.type.startPrijs.selectedIndex)
    {
        // first index = min Prijs.
        if (document.type.stopPrijs.selectedIndex == 0) 
        {
            document.type.startPrijs.selectedIndex = 0;
        }
        else 
        {
            document.type.startPrijs.selectedIndex =
            document.type.stopPrijs.selectedIndex - 1;
        }
    }
    checkIntervalPrijs(MAX_INTERVAL_PRIJS);
}



function checkIntervalPrijs()
{
    var selStartIdx = document.type.startPrijs.selectedIndex;
    var selStartPrijs = document.type.startPrijs[selStartIdx].value;

    var selStopIdx = document.type.stopPrijs.selectedIndex;
    var selStopPrijs = document.type.stopPrijs[selStopIdx].value;

    var hadToLimit = false;
    while((selStopPrijs - selStartPrijs) > MAX_INTERVAL_PRIJS)
    {
        selStopIdx--;
        document.type.stopPrijs.selectedIndex = selStopIdx;
        var selStopPrijs = document.type.stopPrijs[selStopIdx].value;
        hadToLimit = true;
    }
    
    if (hadToLimit && !isFirstPPrijsview)
    {
        alert('Te groot bereik.');
    }
    isFirstPPrijsview = false;
}
