$(function() {
$.ajaxSetup({
complete:function(XMLHttpRequest,textStatus){
if(textStatus=="parsererror"){
window.location.href = '../login.html';
} else if(textStatus=="error"){
}
}
});
})