var link_nohandler= window.clientInformation ? null : window.undefined;

function link_down() {
    this.onfocus= this.blur;
}

function link_up() {
    this.onfocus= link_nohandler;
}

function link_bind() {
    for (var i= document.links.length; i-->0;) {
        document.links[i].onmousedown= link_down;
        document.links[i].onmouseup= link_up;
    }
}

function addPropertyToFavourites(customerid, propertyid) {
	if ( confirm('Are you sure you wish to add a this property to your favourites?') ) {
		$("#favouriteslist").load(base_url + "includes/ajax.php", { action: 'addPropertyToFavourites', thetable: 'favourites', thecustomerid: customerid, thepropertyid: propertyid });
		return false;
	} else {
		return false;
	}
}