﻿// JScript File
// Functions for handling client callback (AJAX)
// Nick Casey 25/05/2007
    
    function handleAddToFavourites(result, context) 
    {
        var o = result.split(",");
        var resultType = o[0]; 
        var propertyName = o[1]; 
        switch(resultType)
        {
            case "0": //success
                alert(propertyName + " has been added to your favourites");
                break;
            case "1": //already exists
                alert(propertyName + " is already one of your favourites");
                break;
            default:
                break;
        }
    }
    


