Pulling Tractors for sale | USFarmer.com (2024)

Modify Your Search

"; if (hide == false){SearchData += "

";//SearchData += "

";// var TempVar= '/ag-buyers-guide/' + "Images/" + msg.d[count].ListingImage; var TempVar= '/ag-buyers-guide/' + msg.d[count].ListingImage; SearchData += " "; //SearchData += ""; // alt added by Parag Phondba on 20140218var AltTag = msg.d[count].ListingName.replace("'", "'"); SearchData += ""; SearchData += "
"; SearchData += "

"; if (msg.d[count].NoPhotos>1) { //SearchData += "" ; SearchData += msg.d[count].NoPhotos ; SearchData += " Photo(s)";//"; } else { //SearchData += "" ; SearchData += msg.d[count].NoPhotos ; SearchData += " Photo";//"; }SearchData += "

";SearchData += "

";} if (hide == false){SearchData += "

"; } else { SearchData += "

"; }SearchData += "

"; if(msg.d[count].Year == "0") { //SearchData += msg.d[count].ManufacturerName + " - " + msg.d[count].Model ; SearchData += msg.d[count].ListingName } else { //SearchData += msg.d[count].Year + " - " + msg.d[count].ManufacturerName + " - " + msg.d[count].Model ; SearchData += msg.d[count].ListingName }SearchData += "

"; var _desc=msg.d[count].Description; //alert(_desc.length); if(_desc.length>100) { _desc = _desc.substring(0, _desc.indexOf(" ", 100))+"..."; } SearchData += _desc ;SearchData += "

";//SearchData += "

";SearchData += "

";SearchData += (parseFloat(msg.d[count].SalePrice)).formatMoney(2, '.', ',')+ "";SearchData += "" + msg.d[count].CurrencyName + ""; SearchData += ""; SearchData += "" + (parseFloat(msg.d[count].USPrice)).formatMoney(2, '.', ',')+ "";SearchData += "" + msg.d[count].USCurrencyName + "

" ; if (msg.d[count].CurrencyName!=0) { /* SearchData += "

$"; SearchData += (parseFloat(msg.d[count].USPrice)).formatMoney(2, '.', ',') ; SearchData += " " + msg.d[count].USCurrencyName +"

"; SearchData += "
"; */ } var _display="";if(msg.d[count].Dealer_Logo=="") { _display="none"; } else { _display="block"; }//SearchData += "

";SearchData += "Pulling Tractors for sale | USFarmer.com (3)";//SearchData += "

";SearchData += "" + msg.d[count].DealerName +"
";SearchData += "" + msg.d[count].Dealer_City +"
"; SearchData += "" + msg.d[count].Dealer_Phone +"";SearchData += "

"; SearchData +="

"; SearchData += "

"; SearchData += "

"; //alert(msg.d[count].Dealer_Logo);}document.getElementById("results_box").innerHTML = SearchData; }else{document.getElementById("results_box").innerHTML = "No Record Found";} GetSearchString(msg.d[0].TotalRecords); DisplayUSDPrice('chkDisplayUSD');//var listing="";// listing ="

"+ msg.d[0].TotalRecords +" Listings found for, " ;////if (document.getElementById("ddlCategories").selectedIndex>0)////listing += document.getElementById("ddlCategories").options[document.getElementById("ddlCategories").selectedIndex].text ;////if (document.getElementById("ddlEquipment").selectedIndex>0)////listing +=" " + document.getElementById("ddlEquipment").options[document.getElementById("ddlEquipment").selectedIndex].text////if (document.getElementById("ddlManufacturers").selectedIndex>0)////listing +=" " + document.getElementById("ddlManufacturers").options[document.getElementById("ddlManufacturers").selectedIndex].text//listing +=" " + HDSearchString;//listing +="

";//document.getElementById("noRecords").innerHTML =listing;} function GetSearchString(TotalRecords) { var ddlEquipment = document.getElementById("ddlEquipment").value; var ddlCategories = document.getElementById("ddlCategories").value; var ddlManufacturers = document.getElementById("ddlManufacturers").value; var Model = document.getElementById("ctl00_ContentPlaceHolder1Used_ctrlusedSearchResult_txtSearchTerm"); var Dealer_Zip = document.getElementById("ctl00_ContentPlaceHolder1Used_ctrlusedSearchResult_txtZip"); var Modelvalue = ""; if(Model.value == "Keyword or Listing ID"){ Modelvalue = Model.value.replace("Keyword or Listing ID", ""); } else{ Modelvalue = Model.value; } var Dealer_Zipvalue = Dealer_Zip.value.replace("Zip / Postal Code", ""); if(Dealer_Zip.value == "Zip / Postal Code"){ Dealer_Zipvalue = Dealer_Zip.value.replace("Zip / Postal Code", ""); } else{ Dealer_Zipvalue = Dealer_Zip.value; } var data1 = "{'CategoryID':'" + ddlCategories + "','EquipmentTypeId':'" + ddlEquipment + "','ManufacturerID':'" + ddlManufacturers + "'}"; //alert(data1); $.ajax({ type: "POST", url: '/Web-Services/PopulateData.asmx/GetSearchString', async: true, data: data1, contentType: "application/json; charset=utf-8", dataType: "json", success: function (data) { var count = 0; var listing=""; if (data.d.length > 0) { listing =""+ TotalRecords +" Listing(s) found for " ; if(Modelvalue!= "" && Dealer_Zipvalue != "") { //listing += " Keyword : " + Modelvalue + " Dealer Zip : " + Dealer_Zipvalue +" " + data.d[0].SearchString; listing += " Dealer Zip : " + Dealer_Zipvalue +" " + data.d[0].SearchString + ", " + Modelvalue; } else if(Modelvalue!= "") { //listing += " Keyword : " + Modelvalue + " " + data.d[0].SearchString; listing += " " + data.d[0].SearchString + ", " + Modelvalue; } else if(Dealer_Zipvalue!= "") { listing += " Dealer Zip : " + Dealer_Zipvalue + " " + data.d[0].SearchString; } else { listing += " " + data.d[0].SearchString; } listing +=""; } document.getElementById("noRecords").innerHTML =listing; }, error: function (result) { alert(result.toString); } });}function BtSearch_onclick() {Page = 0;Currpage=0; setCookie("Currpage",Currpage,1);//result();}function SearchSubmit(e) {if (e.keyCode == 13) {Page = 0;Currpage=0; setCookie("Currpage",Currpage,1);//result(); return false;}else { return true; }}function btFirst_onclick() {Page = 0;Currpage=0; setCookie("Currpage",Currpage,1);//result();}function btPrevious_onclick() {Page = Page - 1;Currpage= Currpage - 1; if (Currpage < 1) { Currpage = 0; // return; } setCookie("Currpage",Currpage,1); $('#hdnMilesLimit').text(Currpage); $('#hdnRecentlyAdded').text(Currpage); if (Page < 0)Page = 0;//result(); window.location.href = "#map";}function btNext_onclick() {Page = Page + 1;Currpage= Currpage + 1; $('#hdnMilesLimit').text(Currpage); $('#hdnRecentlyAdded').text(Currpage);if (Page > (TotalRec / pageSize))Page = TotalRec / pageSize ; setCookie("Currpage",Currpage,1);//result(); window.location.href = "#map";}function btLast_onclick() {Page = TotalRec / pageSize;Currpage= TotalRec / pageSize;//result();} function CompareSelectedValues() { var MinPrice = document.getElementById("ddlMinPrice").value; var MaxPrice = document.getElementById("ddlMaxPrice").value; var objElement = document.getElementById("ddlMaxPrice"); if (MinPrice != 0 && MaxPrice != 0) { if (Number(MinPrice) > Number(MaxPrice)){ alert('Price From cannot be greater then Price To.'); objElement.selectedIndex = 0; } return false; } } function CompareSelected_Values() { var FromYear = document.getElementById("ddlYearFrom").value; var ToYear = document.getElementById("ddlyearto").value; var objElement = document.getElementById("ddlyearto"); if (FromYear != 0 && ToYear != 0) { if (Number(FromYear) > Number(ToYear)) { alert('From Year cannot be greater then To Year.'); objElement.selectedIndex = 0; } return false; } } function DisplayUSDPrice(chk_id) { if (chk_id == "chkDisplayUSD") { var ChkValue = document.getElementById(chk_id); // alert(ChkValue.checked); if (true) { $(".USProductPrice").show(); $(".USDtext").show(); } else if (ChkValue.checked == false) { $(".USProductPrice").hide(); $(".USDtext").hide(); } } } //Added Search Box Validation 8145 By Deepak function SearchFN() { // alert(CheckValid() + "SearchFN") if (CheckValid()) { // Page_ClientValidate('AddEdit'); $("#dvCategory").css("visibility", 'hidden'); //.hide(); //setCookie("Currpage", 0, 1); //change for bugnet 10011 var strquerystring = getquerystring(); window.location.href="/used-search-result.aspx"+ strquerystring ; return false; //change for bugnet 10011 // return true; } else { // alert(CheckValid() + "SearchFN"); $("#dvCategory").css("visibility", 'visible'); //.show(); //Added by Vijay ProdDefect sheet issue #38 dated on 25 June 15 if(Page_ClientValidate('AddEdit')) { //change for bugnet 10011 var strquerystring = getquerystring(); window.location.href="/used-search-result.aspx"+ strquerystring ; return false; //change for bugnet 10011 //return true; } else { return false; } } //change for bugnet 10011 var strquerystring = getquerystring(); window.location.href="/used-search-result.aspx"+ strquerystring ; return false; //change for bugnet 10011 //return true; //end }//Amit S Validation commented by Deepakfunction CheckValid() { var ddlEquipment = document.getElementById("ddlEquipment").value; var ddlCategories = document.getElementById("ddlCategories").value; var ddlManufacturers = document.getElementById("ddlManufacturers").value; var MinPrice = document.getElementById("ddlMinPrice").value; var MaxPrice = document.getElementById("ddlMaxPrice").value; var FromYear = document.getElementById("ddlYearFrom").value; var ToYear = document.getElementById("ddlyearto").value; var txtSearchTerm = document.getElementById("ctl00_ContentPlaceHolder1Used_ctrlusedSearchResult_txtSearchTerm").value; var ddlProvinceState = document.getElementById("ddlProvinceState").value; //added for bugnet 8145 by deepak var txtZip = document.getElementById("ctl00_ContentPlaceHolder1Used_ctrlusedSearchResult_txtZip").value; var vUserSessionId = document.getElementById("ctl00_ContentPlaceHolder1Used_ctrlusedSearchResult_hdnSessionID").value; //InsertUpdateUserSearchCriteria(vUserSessionId, ddlCategories, ddlEquipment, ddlManufacturers, MinPrice, MaxPrice, FromYear, ToYear, txtSearchTerm, txtZip, "10", "0", "", "", ""); //debugger; try { //alert(FromYear + '----' + ToYear); //if ((ddlEquipment == "0" && ddlCategories == "0" && ddlManufacturers == "0" && ddlDistance == "0" && ddlRecentlyAdd == "0") || (ddlEquipment == "-1" && ddlCategories == "-1" && ddlManufacturers == "-1" && ddlDistance == "-1" && ddlRecentlyAdd == "-1")) { if ((ddlEquipment == "0" && ddlCategories == "0" && ddlManufacturers == "0" && ddlProvinceState == "0") || (ddlEquipment == "-1" && ddlCategories == "-1" && ddlManufacturers == "-1" && ddlProvinceState == "-1")) { // alert("Check_Valid1"); // if (txtSearchTerm == "Keyword" && txtZip == "Zip / Postal Code") { if ((txtSearchTerm.trim() == "Keyword or Listing ID" || txtSearchTerm.trim() == "") && (txtZip.trim() == "Zip / Postal Code" || txtZip.trim() == "")) { //alert('Please enter a Keyword or Listing ID'); // alert(txtSearchTerm); // alert('b'); Page_ClientValidate(); // Page_ClientValidate('AddEdit'); return false; } else { // ValidatorEnable(document.getElementById('rfvValu'), false); // ValidatorEnable(document.getElementById('ctl00_cph1_ctrlHomePageNewProduct_rfvValu1'), false); // Page_ClientValidate(); // return true; ///New code added for Zip 12-sept-2013 if (typeof (ValidZip()) != "undefined") { // alert("Mainif3") if (ValidZip()) { // alert("if3") // ValidatorEnable(document.getElementById('rfvValu'), false); // Page_ClientValidate(''); return true; } else { // alert("else3") // ValidatorEnable(document.getElementById('rexZip'), true); // ValidatorEnable(document.getElementById('rfvValu'), false); //ValidatorEnable(document.getElementById('ctl00_cph1_ctrlHomePageNewProduct_rfvValu1'), false); Page_ClientValidate('AddEdit'); return false; } } else { //alert("Mainelse3") // $('#dvZip').show(); ValidatorEnable(document.getElementById('rfvValu'), false); ValidatorEnable(document.getElementById('rexZip'), false); // Page_ClientValidate(''); // setCookie("Currpage", 0, 1); return true; } ///New code added for Zip 12-sept-2013 } } else if (MinPrice != 0 || MaxPrice != -1) { // alert("2"); if (Number(MinPrice) > Number(MaxPrice)) { alert('Price From cannot be greater then Price To.'); ValidatorEnable(document.getElementById('rexZip'), false); return false; } //New code added on 13-sept-2013 else { //New code added for Zip 12-sept-2013 if (typeof (ValidZip()) != "undefined") { if (ValidZip()) { // alert("if4") // ValidatorEnable(document.getElementById('rfvValu'), false); // ValidatorEnable(document.getElementById('rexZip'), false); // Page_ClientValidate(''); //setCookie("Currpage", 0, 1); return true; } else { // alert("else4") ValidatorEnable(document.getElementById('rfvValu'), false); ValidatorEnable(document.getElementById('rexZip'), true); // Page_ClientValidate('AddEdit'); // setCookie("Currpage", 0, 1); return false; } } else { if (FromYear != 0 || ToYear != 0) { // alert("3FromYEs11r"); if (Number(FromYear) > Number(ToYear)) { alert('From Year cannot be greater then To Year.'); ValidatorEnable(document.getElementById('rexZip'), false); return false; } } //alert("Mainelse4") ValidatorEnable(document.getElementById('rfvValu'), false); ValidatorEnable(document.getElementById('rexZip'), false); // Page_ClientValidate('AddEdit'); // setCookie("Currpage", 0, 1); return true; } //New code added for Zip 12-sept-2013 } //New Code Added on 13-sept-2013 } else if (FromYear != 0 || ToYear != 0) { // alert("3FromYEs11r"); if (Number(FromYear) > Number(ToYear)) { alert('From Year cannot be greater then To Year.'); ValidatorEnable(document.getElementById('rexZip'), false); return false; } else { return true } } //} else if (FromYear != 0 || ToYear != 0) { // alert("3FromYEsr"); if (Number(FromYear) > Number(ToYear)) { alert('From Year cannot be greater then To Year.'); return false; } else { return true } } else { //New ZIp code added 12-sept-2013 if (typeof (ValidZip()) != "undefined") { if (ValidZip()) { ValidatorEnable(document.getElementById('rfvValu'), false); ValidatorEnable(document.getElementById('rexZip'), false); // Page_ClientValidate(''); //setCookie("Currpage", 0, 1); return true; } else { ValidatorEnable(document.getElementById('rfvValu'), false); ValidatorEnable(document.getElementById('rexZip'), true); // Page_ClientValidate(''); // setCookie("Currpage", 0, 1); return false; } } else { //ValidatorEnable(document.getElementById('rfvValu'), false); //ValidatorEnable(document.getElementById('rexZip'), false); // Page_ClientValidate(''); // alert('c'); // setCookie("Currpage", 0, 1);//alert(''); return true; } } } catch (err) { } /* var isValid = false; var ddlEquipment = document.getElementById("ddlEquipment").value; var ddlCategories = document.getElementById("ddlCategories").value; var ddlManufacturers = document.getElementById("ddlManufacturers").value; var ddlProvinceState = document.getElementById("ddlProvinceState").value; //added for bugnet 8145 by deepak var MinPrice = document.getElementById("ddlMinPrice").value; var MaxPrice = document.getElementById("ddlMaxPrice").value; var FromYear = document.getElementById("ddlYearFrom").value; var ToYear = document.getElementById("ddlyearto").value; var txtSearchTerm = document.getElementById("ctl00_ContentPlaceHolder1Used_ctrlusedSearchResult_txtSearchTerm").value; var txtZip = document.getElementById("ctl00_ContentPlaceHolder1Used_ctrlusedSearchResult_txtZip").value; if ((ddlEquipment == "0" && ddlCategories == "0" && ddlManufacturers == "0" && ddlProvinceState == "0") || (ddlEquipment == "-1" && ddlCategories == "-1" && ddlManufacturers == "-1" && ddlProvinceState == "-1")) { if ((txtSearchTerm.trim() == "Keyword or Listing ID" || txtSearchTerm.trim() == "") && (txtZip.trim() == "Zip / Postal Code" || txtZip.trim() == "")) { ValidatorEnable(document.getElementById('rfvValu'), true); isValid = false; } else { ValidatorEnable(document.getElementById('rfvValu'), false); isValid = true; } } else { ValidatorEnable(document.getElementById('rfvValu'), false); isValid = true; } if(isValid = true) { $("[id$='hdnddlCategories']").val(ddlCategories); $("[id$='hdnddlEquipment']").val(ddlEquipment); $("[id$='hdnddlManufacturers']").val(ddlManufacturers); //Added by Deepak for Bugnet Id 8145 $("[id$='hdnddlProvinceState']").val(ddlProvinceState); $("[id$='HdMinPrice']").val(MinPrice); $("[id$='HdMaxPrice']").val(MaxPrice); $("[id$='HdFromYear']").val(FromYear); $("[id$='HdToYear']").val(ToYear); } return isValid;*/ } //Chcek zipcode validation "12-sept-2013" function ValidZip() { var regexObj = { canada: /^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ]( )?\d[ABCEGHJKLMNPRSTVWXYZ]\d$/i, //i for case-insensitive usa: /^\d{5}(-\d{4})?$/ } var regexp = new RegExp(regexObj.canada); var regexpus = new RegExp(regexObj.usa); //var a = "(^\d{5}(-\d{4})?$)|(^[ABCEGHJKLMNPRSTVXY]{1}\d{1}[A-Z]{1} *\d{1}[A-Z]{1}\d{1}$)"; //var re = new RegExp(a); var txtZip = document.getElementById("ctl00_ContentPlaceHolder1Used_ctrlusedSearchResult_txtZip").value; if (txtZip.trim() != "Zip / Postal Code") { if (regexp.test(txtZip.trim()) || regexpus.test(txtZip.trim())) { return true; } else { return false; } } } //Chcek zipcode validation "12-sept-2013"//Amit S Validation function ValidatorEnable(val, enable) { val.enabled = (enable != false); ValidatorValidate(val); ValidatorUpdateIsValid(); }/* comment by Deepak 8145 function SearchFN() { if(CheckValid()) { Page_ClientValidate('AddEdit'); document.getElementById("ddlEquipment") $("#DivrfvValu").hide(); //document.getElementById('ctl00_cph1_ctrlSearchResult_ValidatorCalloutExtender1_popupTable').style.visibility = 'hidden'; //Page_ClientValidate('AddEdit'); Currpage=0; //result(); // alert("1"); } else { // alert("2"); $("#DivrfvValu").show (); Page_ClientValidate('AddEdit'); } return false; } End of comment by Deepak 8145 */ function disable(IsChanged) { //alert(IsChanged); if (IsChanged == 1 && FunctionCount > 0) { $("#loaderdiv").show(); $('#loaderdiv').fadeIn(); $('#loaderdiv').fadeTo("fast", 0.6); $("#loading-overlay").show(); } var ddlEquipment = document.getElementById("ddlEquipment").value; var ddlCategories = document.getElementById("ddlCategories").value; var ddlManufacturers = document.getElementById("ddlManufacturers").value; var ddlProvinceState = document.getElementById("ddlProvinceState").value;//Added for 8145 by Deepak //changed for bugnet 8145 by Deepak if (ddlEquipment == 0 && ddlCategories == 0 && ddlManufacturers == 0 && ddlProvinceState == 0) { document.getElementById("ddlMinPrice").disabled = true; document.getElementById("ddlMaxPrice").disabled = true; document.getElementById("ddlYearFrom").disabled = true; document.getElementById("ddlyearto").disabled = true; } else { document.getElementById("ddlMinPrice").disabled = false; document.getElementById("ddlMaxPrice").disabled = false; document.getElementById("ddlYearFrom").disabled = false; document.getElementById("ddlyearto").disabled = false; } } function GetMinPrice() { var HdMinPrice = document.getElementById("ddlMinPrice").value; document.getElementById("HdMinPrice").value = HdMinPrice; } function GetMaxPrice() { var HdMaxPrice = document.getElementById("ddlMaxPrice").value; document.getElementById("HdMaxPrice").value = HdMaxPrice; } function Get_FromYear() { var HdFromYear = document.getElementById("ddlYearFrom").value; document.getElementById("HdFromYear").value = HdFromYear; } function Get_ToYear() { var HdToYear = document.getElementById("ddlyearto").value; document.getElementById("HdToYear").value = HdToYear; }

Pulling Tractors for sale | USFarmer.com (4)

Save My Search
*Search Name:
Data saved successfully

Save My Search
* Search Name:

You must be logged in to save this search. Please login now or register for a new account.

Your search has been saved.

Pulling Tractors for sale | USFarmer.com (2024)
Top Articles
Latest Posts
Article information

Author: Rev. Leonie Wyman

Last Updated:

Views: 5507

Rating: 4.9 / 5 (59 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Rev. Leonie Wyman

Birthday: 1993-07-01

Address: Suite 763 6272 Lang Bypass, New Xochitlport, VT 72704-3308

Phone: +22014484519944

Job: Banking Officer

Hobby: Sailing, Gaming, Basketball, Calligraphy, Mycology, Astronomy, Juggling

Introduction: My name is Rev. Leonie Wyman, I am a colorful, tasty, splendid, fair, witty, gorgeous, splendid person who loves writing and wants to share my knowledge and understanding with you.