function NextListingSet() {
		totalListings = document.AForm2.txtTotalListings.value;
		/**Modified for search results display*/
		//thisPgNum = document.AForm2.txtThisPgNum.value;
		thisPgNum = document.AForm2.pg.value;
		/**Modified for search results display***/

		nxPgNum = (thisPgNum-0) + 1;
		noListingsDisplayed = (thisPgNum-0) * 50;
		noListingsRemain = (totalListings-0) - noListingsDisplayed;
		
		//country = document.AForm2.txtCountry.value;
		//region = document.AForm2.txtRegion.value;
		pgName = document.AForm2.txtPageName.value;
		
		if (noListingsRemain > 0){

			//window.location.href="california-commercial-real-estate-for-sale.asp?keywordStr=" + keywordString + "&indId=" + industryId + "&indSegId=" + industrySegmentId + "&country=" + country + "&region=" + region + "&pg=" + nxPgNum;
			//window.location.href="california-commercial-real-estate-for-sale.asp?country=" + country + "&region=" + region + "&pg=" + nxPgNum;
			////window.location.href=pgName+"?country=" + country + "&region=" + region + "&pg=" + nxPgNum;

			/**Modified for search results display*/
			//window.location.href=pgName+"?pg=" + nxPgNum;
			document.AForm2.pg.value = nxPgNum;
			document.AForm2.submit();
			/**Modified for search results display***/
		}
		else{
			alert("There are no more listings.");
		}
}

function PrevListingSet(){
		/**Modified for search results display*/
		//thisPgNum = document.AForm2.txtThisPgNum.value;
		thisPgNum = document.AForm2.pg.value;
		/**Modified for search results display***/
		prevPgNum = (thisPgNum-0) - 1;
		
		//country = document.AForm2.txtCountry.value;
		//region = document.AForm2.txtRegion.value;
		pgName = document.AForm2.txtPageName.value;
				
		if (thisPgNum > 1){
			//window.location.href="california-commercial-real-estate-for-sale.asp?keywordStr=" + keywordString + "&indId=" + industryId + "&indSegId=" + industrySegmentId + "&country=" + country + "&region=" + region + "&pg=" + prevPgNum;
			////window.location.href=pgName+"?country=" + country + "&region=" + region + "&pg=" + prevPgNum;

			/**Modified for search results display*/
			//window.location.href=pgName+"?pg=" + prevPgNum;
			document.AForm2.pg.value = prevPgNum;
			document.AForm2.submit();
			/**Modified for search results display***/
		}
		else{
			alert("There are no previous listings.");
		}
}
