var filename = 'locale/ES'; if(filename == 'Error') window.location.href='php/logout.php'; else{ document.write(""); }