function lsearch() {
var frm=document.forms.searchfrm.elements;

if (frm['priceTo'].value=="") {
var priceto=0;
} else {
var priceto=frm['priceTo'].value;
}

if (frm['priceFrom'].value=="") {
var pricefrom=0;
} else {
var pricefrom=frm['priceFrom'].value;
} 


document.location.href="/business-search-results/1/" + encodeURIComponent(frm['business'].value) + "/" + encodeURIComponent(frm['tenure'].value) + "/" + encodeURIComponent(frm['area'].value) + "/" + pricefrom + "/" + priceto + "/" + encodeURIComponent(frm['added'].value) + "/" + frm['sort'].value + "/" + encodeURIComponent(frm['ref'].value) + "/";
//PAGE/BUSINESS/TENURE/AREA/PFROM/PTO/ADDED/SORT/REF

}

function qsearch() {
var frm=document.forms.quicksearchform.elements;

if (frm['priceFromTo'].value=="") {
var pricefrom="0";
var priceto="0";
} else {
var pricefromto=frm['priceFromTo'].value.split("-");
var pricefrom=pricefromto[0];
var priceto=pricefromto[1];
}

document.location.href="/business-search-results/1/" + encodeURIComponent(frm['business'].value) + "/All Tenure/" + encodeURIComponent(frm['area'].value) + "/" + pricefrom + "/" + priceto + "/Anytime/Lowest/";

//document.location.href="/business-search-results-quick/" + frm['business'].value + "/" + frm['area'].value + "/" + frm['priceFromTo'].value + "/";
//PAGE/BUSINESS/TENURE/AREA/PFROM/PTO/ADDED/SORT/REF

}