﻿// JavaScript Document
<!--

var content;

function UpdateListing(neworder,newpage,productID,returnlocation) {
	
	try {
	    url = "destination-listing.ashx?recommended=" + productID + "&cpage=" + document.getElementById("ListingCPage").value + "&perpage=" + document.getElementById("ListingRecordsPerPage").value + "&categoryid=" + document.getElementById("ListingCategoryID").value + "&order=" + document.getElementById("ListingOrder").value + "&typeid=" + document.getElementById("ListingTypeID").value + "&selected=" + document.getElementById("ListingSelected").value + "&contentlocation=" + returnlocation + "&newpage=" + newpage + "&neworder=" + neworder
	    content = returnlocation;
    	
	    jQuery(function($) { 
	        $("#loader").show();    
            $("#" + content).load(url);     
        });   
                    
        $().ajaxSend(function(r,s){   
            $("#loader").show();   
        });   
      
        $().ajaxStop(function(r,s){   
            $("#loader").fadeOut("fast"); 
        }); 
    } catch(err) {}
}

function UpdateListing2(neworder,newpage,productID,returnlocation) {
	
	try {
	    url = "destination-listing.ashx?recommended=" + productID + "&cpage=" + document.getElementById("ListingCPage2").value + "&perpage=" + document.getElementById("ListingRecordsPerPage2").value + "&categoryid=" + document.getElementById("ListingCategoryID2").value + "&order=" + document.getElementById("ListingOrder2").value + "&typeid=" + document.getElementById("ListingTypeID2").value + "&selected=" + document.getElementById("ListingSelected2").value + "&contentlocation=" + returnlocation + "&newpage=" + newpage + "&neworder=" + neworder
	    content = returnlocation;
    	
	    jQuery(function($) { 
	        $("#loader").show();     
            $("#" + content).load(url);    
        });   
                    
        $().ajaxSend(function(r,s){   
            $("#loader").show();   
        });   
      
        $().ajaxStop(function(r,s){   
            $("#loader").fadeOut("fast"); 
        }); 
    } catch(err) {}
}

function UpdateListing3(neworder,newpage,productID,returnlocation) {
	
	try {
	    url = "destination-listing.ashx?recommended=" + productID + "&cpage=" + document.getElementById("ListingCPage3").value + "&perpage=" + document.getElementById("ListingRecordsPerPage3").value + "&categoryid=" + document.getElementById("ListingCategoryID3").value + "&order=" + document.getElementById("ListingOrder3").value + "&typeid=" + document.getElementById("ListingTypeID3").value + "&selected=" + document.getElementById("ListingSelected3").value + "&contentlocation=" + returnlocation + "&newpage=" + newpage + "&neworder=" + neworder
	    content = returnlocation;
    	
	    jQuery(function($) { 
	        $("#loader").show();     
            $("#" + content).load(url);   
        });   
                    
        $().ajaxSend(function(r,s){   
            $("#loader").show();   
        });   
      
        $().ajaxStop(function(r,s){   
            $("#loader").fadeOut("fast"); 
        }); 
    } catch(err) {}

}

-->