function getSelectionResult(formfield){
//    alert(" - "+formfield.value+" - "+formfield.name+" - "+document.location.href);
    formfield.form.submit();
}
function showSearchInProgress(searchtext){
    document.getElementById("rs_content").innerHTML = searchtext;
}
function drawPriceSearchSelection(defaultcurrency, priceText, resetText){
    if(!window.countrycode || countrycode.length<1){
        countrycode = defaultcurrency;
    }
    priceSelector = "<select name=\"price\" size=\"1\"><option value=\"\" />"+priceText+"</option>";
    selectedPrice = "";
    if (window.location.search != ""){
        fullsearch = window.location.search;
        begin = fullsearch.indexOf("price=")+6;
        end = fullsearch.indexOf("&",begin);
        if(end < begin){ end = fullsearch.length;}
        selectedPrice = fullsearch.substring(begin, end);
        selectedPrice = unescape(selectedPrice);
        selectedPrice = selectedPrice.replace(/\+/g, " ");
    }
    le = currencySelection[countrycode].length;
    for(i=0;i<le;i++){
        priceSelector += "<option ";
        if("- "+selectedPrice == currencySelection[countrycode][i]){
            priceSelector += "selected ";
        }
        tmp = currencySelection[countrycode][i];
        priceSelector += "value=\""+tmp.substring(tmp.indexOf(' ')+1)+"\" />"+tmp+" m&sup2; </option>";
    }
    priceSelector += "<option ";
    if(selectedPrice == "reset"){
        priceSelector += "selected ";
    }
    priceSelector += "value=\"reset\" />"+resetText+"</option></select>";
    document.write(priceSelector);
}