function finditfast(setup, pass, usednew) {
    var typetitem = 'New';

    // car type check. if usednew is 0 or 1 its inherent if its 2 we need to check.
    switch ( usednew ) {
    case 0:
        typeitem = 'New';
        break;
    case 1:
        typeitem = 'Used';
        break;
    case 2:
        if ( pass.cartype[0].checked ) {
            typeitem = 'New';
        } else {
            typeitem = 'Used';
        }
        break;
    case 3:
        typeitem = pass.cartype.value;
        break;
    }

    var makeitem = pass.make.options[pass.make.selectedIndex].text;
    if ( makeitem == 'Select a Make' ) makeitem = '';

    var modelitem=pass.model.options[pass.model.selectedIndex].value;

    var pbegin = '';
    var bodyitem = '';

    if ( setup == 1 ) {
        // "Inventory Search"
        pbegin = pass.price.options[pass.price.selectedIndex].value;
        if ( pbegin != '' ) {
            pend = parseFloat(pbegin);
            pend = (pend + 5000);
        }
        bodyitem = pass.bodytype.options[pass.bodytype.selectedIndex].value;
    }

    if ( InventoryUse == 1 ) { //our inventory set up
        var GoToUsed = '/Inventory/';
        var GoToNew = '/Inventory/';
        var param = typeitem;

        if ( makeitem == '' ) {
            param += '.html';
        } else {
            if (modelitem == "") {
                param += '/' + makeitem + '.html';
            } else {
                param += '/' + makeitem + '/' + modelitem + '.html';
            }
        }

        if ( pbegin != '' ) {
            param += '?startPrice=' + pbegin + '&endPrice=' + pend;
        }

        if ( bodyitem != '' ) {
            param += pbegin == '' ? '?' : '&';
            param += 'body=' + bodyset;
        }
    } else { //external
        var GoToUsed = '/Inventory_used.html?';
        var GoToNew = '/Inventory_new.html?';
        var param = 'newused=' + typeitem;

        if ( makeitem != '' ) {
            if ( modelitem == '' ) {
                param += '&make=' + makeitem;
            } else {
                param += '&make=' + makeitem + '&model=' + modelitem;
            }
        }

        if ( pbegin != '' ) {
            param += '&minprice=' + pbegin + '&maxprice=' + pend;
        }

        if ( bodyitem != '' ){
            param += '&bodytype=' + bodyset;
        }
    }

    // finally make the url
    location.href = ( typeitem == 'New' ? GoToNew : GoToUsed ) + param;
}
