function NextListingSet() {
		totalListings = document.AForm.txtTotalListings.value;
		thisPgNum = document.AForm.txtThisPgNum.value;
		nxPgNum = (thisPgNum-0) + 1;
		noListingsDisplayed = (thisPgNum-0) * 15;
		noListingsRemain = (totalListings-0) - noListingsDisplayed;
		
		keywordString = document.AForm.txtKeywordString.value;
		industryId = document.AForm.txtIndustryId.value;
		industrySegmentId = document.AForm.txtIndustrySegmentId.value;
		country = document.AForm.txtCountry.value;
		region = document.AForm.txtRegion.value;
		
		price = document.AForm.txtPrice.value;
		cashFlow = document.AForm.txtCashFlow.value;
		revenue = document.AForm.txtRevenue.value;
		ascDesc = document.AForm.txtAscDesc.value;
				
		if (noListingsRemain > 0){

			//window.location.href="results.asp?keywordStr=" + keywordString + "&indId=" + industryId + "&indSegId=" + industrySegmentId + "&country=" + country + "&region=" + region + "&pg=" + nxPgNum;
			window.location.href="results.asp?keywordStr=" + keywordString + "&indId=" + industryId + "&indSegId=" + industrySegmentId + "&country=" + country + "&region=" + region + "&p=" + price + "&c=" + cashFlow + "&r=" + revenue + "&o=" + ascDesc + "&pg=" + nxPgNum;
		}
		else{
			alert("There are no more listings.");
		}
}

function PrevListingSet(){
		thisPgNum = document.AForm.txtThisPgNum.value;
		prevPgNum = (thisPgNum-0) - 1;
		keywordString = document.AForm.txtKeywordString.value;
		industryId = document.AForm.txtIndustryId.value;
		industrySegmentId = document.AForm.txtIndustrySegmentId.value;
		country = document.AForm.txtCountry.value;
		region = document.AForm.txtRegion.value;

		price = document.AForm.txtPrice.value;
		cashFlow = document.AForm.txtCashFlow.value;
		revenue = document.AForm.txtRevenue.value;
		ascDesc = document.AForm.txtAscDesc.value;
						
		if (thisPgNum > 1){
			//window.location.href="results.asp?keywordStr=" + keywordString + "&indId=" + industryId + "&indSegId=" + industrySegmentId + "&country=" + country + "&region=" + region + "&pg=" + prevPgNum;
			window.location.href="results.asp?keywordStr=" + keywordString + "&indId=" + industryId + "&indSegId=" + industrySegmentId + "&country=" + country + "&region=" + region + "&p=" + price + "&c=" + cashFlow + "&r=" + revenue + "&o=" + ascDesc + "&pg=" + prevPgNum; 
		}
		else{
			alert("There are no previous listings.");
		}
}
