function change_tri(triorder, itemtoorderby, sesId) {

//refresh window with ordering information provided by function when user clicks on a up or down triangle next to an item in the order bar
window.location.href = '/fr/habitation/results/index.php?' + sesId + '&typ=' + itemtoorderby + '&tri=' + triorder;

}

//template 4 function

function change_tri_temp4(desturl, triorder, itemtoorderby, sesId, currentpage) {

//refresh window with ordering information provided by function when user clicks on a up or down triangle next to an item in the order bar
window.location.href = desturl + '?' + sesId + '&typ=' + itemtoorderby + '&tri=' + triorder + '&act=' + currentpage;

}


//for acheter results

function goto_URL_radio(objectselect, object) {

//object is the select menu value, objectselect is the radio btn value
	
//get value of radio btn picked
//we have 3 options get them, only store the one which isnt empty


if(objectselect[0].checked) {
currentradiovalue_touse = objectselect[0].value;
}
else if(objectselect[1].checked) {
currentradiovalue_touse = objectselect[1].value;
}
else if(objectselect[2].checked) {
currentradiovalue_touse = objectselect[2].value;
}
else {
currentradiovalue_touse = "";
}


//append the radio value to select menu value and refresh page
window.location.href = object.options[object.selectedIndex].value + '&type=' +currentradiovalue_touse ; 

}

