/**
 * General error used for AJAX requests.
 */
var ajax_general_error = 'THERE WAS ERROR PROCESSING YOUR REQUEST\nPLEASE TRY AGAIN';


// Center DOM element to screen found on http://stackoverflow.com/questions/210717/what-is-the-best-way-to-center-a-div-on-the-screen-using-jquery
jQuery.fn.center = function (ops) {
    this.css("position","absolute");
    var height =  ops && ops.height ? ops.height : this.width();
    this.css("top", ( height - this.height() ) / 2+$(window).scrollTop() + "px");
    var width =  ops && ops.width ? ops.width : this.width();
    this.css("left", ( width - this.width() ) / 2+$(window).scrollLeft() + "px");
    return this;
}
