/***************************************************************************
 * @Copyright: CSSJockey - Unique & Practical Web Presence
 * @Website: http://www.cssjockey.com/
 * @Portfolio: http://www.cssjockey.com/portfolio
 * @Contact: http://www.cssjockey.com/get-in-touch
 * @Privacy Policy & Terms of Use: http://www.cssjockey.com/terms-of-use
 ***************************************************************************/
function ajaxLink(url, update){
    $.ajax({
        cache: false,
        type: "GET",
        url: ""+url+"",
        success: function(result){
            $('#'+update).html(result);
        },
        error: function(){
            $('#'+update).html('<span class="error">Error Occured</span>');
        }
    });
}

function ajaxForm(url, dataString, update){
    $.ajax({
        type: "GET",
        url: ""+url+"",
        data: dataString,
        success: function(result){
            $('#'+update).html(result);
        },
        error: function(){
            $('#'+update).html('<span class="error">Error Occured</span>');
        }
    });
}

function ajaxData(url, update){
    $.ajax({
        cache: false,
        type: "GET",
        url: ""+url+"",
        success: function(result){
            $('#'+update).html(result);
        },
        error: function(){
            $('#'+update).html('<span class="error">Error Occured</span>');
	    alert("Error fetching data!");
        }
    });
}
